Function at 0x1005d43
Capabilities:
Get common file path
Get disk information

Disassembly:
mov eax, 0x100b6a1
call fcn.01006dc8
mov eax, 0x1ff4
call fcn.01006e10
mov eax, dword [0x100d048]
push ebx
push esi
push edi
lea ecx, [ebp - 0x1fd8]
mov dword [ebp - 0x10], eax
call sub.framedyn.dll_public:_void___thiscall_CHString::constructor_void_
xor ebx, ebx
mov dword [ebp - 4], ebx
xor eax, eax
mov edx, 0x81
mov ecx, edx
mov dword [ebp - 0xb18], ebx
lea edi, [ebp - 0xb14]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov ecx, edx
mov dword [ebp - 0xd24], ebx
lea edi, [ebp - 0xd20]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov ecx, 0xfd
lea edi, [ebp - 0x600]
mov dword [ebp - 0x604], ebx
rep stosd dword es:[edi], eax
mov ecx, edx
lea edi, [ebp - 0x808]
mov dword [ebp - 0x80c], ebx
rep stosd dword es:[edi], eax
mov ecx, edx
mov dword [ebp - 0xf30], ebx
lea edi, [ebp - 0xf2c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
mov edx, dword [ebp + 0x10]
xor eax, eax
push 0x7f
mov dword [ebp - 0x113c], ebx
lea edi, [ebp - 0x1138]
rep stosd dword es:[edi], eax
neg edx
pop ecx
sbb edx, edx
stosw word es:[edi], ax
push 0x10
and edx, 0xfffff000
pop esi
add edx, 0x1010
mov dword [ebp - 0x1e20], ebx
xor eax, eax
lea edi, [ebp - 0x1e1c]
rep stosd dword es:[edi], eax
push 0x1f
pop ecx
mov dword [ebp - 0x1c20], 5
mov dword [ebp - 0x1c1c], esi
mov dword [ebp - 0x1c18], ebx
lea edi, [ebp - 0x1c14]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x1fe4], ebx
mov dword [ebp - 0x1fe8], ebx
mov dword [ebp - 0x1fcc], 0x41
mov dword [ebp - 0x1fd0], 1
mov dword [ebp - 0x1ff0], ebx
mov dword [ebp - 0x1ffc], ebx
mov dword [ebp - 0x1ff4], ebx
mov dword [ebp - 0x2000], ebx
mov dword [ebp - 0x1fec], ebx
mov dword [ebp - 0x1b94], ebx
mov dword [ebp - 0x1b90], ebx
mov dword [ebp - 0x1b8c], ebx
push 0x7f
pop ecx
push 0x1f
xor eax, eax
lea edi, [ebp - 0x1b88]
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 0x198c], 0xa
mov dword [ebp - 0x1988], 0x1000
mov dword [ebp - 0x1984], ebx
push 0x7f
lea edi, [ebp - 0x1980]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
pop ecx
mov dword [ebp - 0x1900], ebx
mov dword [ebp - 0x18fc], ebx
mov dword [ebp - 0x18f8], ebx
push 0x1f
xor eax, eax
lea edi, [ebp - 0x18f4]
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 0x16f8], 0xf
mov dword [ebp - 0x16f4], edx
mov dword [ebp - 0x16f0], ebx
lea edi, [ebp - 0x16ec]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x7f
pop ecx
mov dword [ebp - 0x166c], ebx
mov dword [ebp - 0x1668], ebx
mov dword [ebp - 0x1664], ebx
xor eax, eax
push 0x1f
lea edi, [ebp - 0x1660]
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 0x1464], 0x14
mov dword [ebp - 0x1460], esi
mov dword [ebp - 0x145c], ebx
lea edi, [ebp - 0x1458]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x7f
pop ecx
mov dword [ebp - 0x13d8], ebx
mov dword [ebp - 0x13d4], ebx
mov dword [ebp - 0x13d0], ebx
xor eax, eax
lea edi, [ebp - 0x13cc]
rep stosd dword es:[edi], eax
push 0x1f
mov dword [ebp - 0x11d0], 0x32
mov dword [ebp - 0x11cc], 0x80010
mov dword [ebp - 0x11c8], ebx
pop ecx
lea edi, [ebp - 0x11c4]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x3f8
mov dword [ebp - 0x1144], ebx
mov dword [ebp - 0x1140], ebx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
cmp edi, ebx
pop ecx
mov dword [ebp - 0x1fe0], edi
jne 0x1005fdb
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x9c
call fcn.01008098
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call fcn.01007c8b
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call fcn.01007f13
jmp 0x100665b
call fcn.01008db7
cmp eax, ebx
mov dword [ebp - 0x1fc4], eax
jne 0x100601b
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x9c
call fcn.01008098
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call fcn.01007c8b
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call fcn.01007f13
jmp 0x100608d
call fcn.01008db7
cmp eax, ebx
mov dword [ebp - 0x1fc8], eax
jne 0x1006093
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x9c
call fcn.01008098
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call fcn.01007c8b
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call fcn.01007f13
cmp dword [ebp - 0x1fc4], ebx
je 0x1006073
lea eax, [ebp - 0x1fc4]
push eax
call fcn.01008e2b
mov dword [ebp - 0x1fc4], ebx
cmp dword [ebp - 0x1fc8], ebx
je 0x100608d
lea eax, [ebp - 0x1fc8]
push eax
call fcn.01008e2b
mov dword [ebp - 0x1fc8], ebx
push edi
jmp 0x1006655
push 0x45
call fcn.01008098
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push eax
lea eax, [ebp - 0x1e20]
push eax
call edi
push 0xc5
call fcn.01008098
push eax
lea eax, [ebp - 0x1b8c]
push eax
call edi
push 0x47
call fcn.01008098
push eax
lea eax, [ebp - 0x18f8]
push eax
call edi
push 0xbb
call fcn.01008098
push eax
lea eax, [ebp - 0x1664]
push eax
call edi
push 0x4b
call fcn.01008098
push eax
lea eax, [ebp - 0x13d0]
push eax
call edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x1fdc], eax
mov edi, 0x104
lea eax, [ebp - 0xb18]
push edi
push eax
call dword [sym.imp.msvcrt.dll__wgetcwd]
pop ecx
pop ecx
push edi
lea eax, [ebp - 0xd24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x1006153
push 0x9c
call fcn.01008098
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call fcn.01007c8b
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call fcn.01007f13
jmp 0x100661b
lea edi, [ebp - 0x1fc0]
mov dword [ebp - 0x1fd4], 0x1a
mov eax, dword [ebp - 0x1fdc]
test dword [ebp - 0x1fd0], eax
je 0x10061ea
movzx eax, word [ebp - 0x1fcc]
push eax
push 0x1001524
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push edi
mov dword [edi + 8], eax
lea eax, [ebp - 0x604]
push 0x100151c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov eax, 0x104
push eax
lea ecx, [ebp - 0xf30]
push ecx
lea ecx, [ebp - 0x1ff4]
push ecx
lea ecx, [ebp - 0x2000]
push ecx
lea ecx, [ebp - 0x1ffc]
push ecx
push eax
lea eax, [ebp - 0x113c]
push eax
lea eax, [ebp - 0x604]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
inc dword [ebp - 0x1fe8]
mov dword [edi + 0xc], eax
add edi, esi
shl dword [ebp - 0x1fd0], 1
inc dword [ebp - 0x1fcc]
dec dword [ebp - 0x1fd4]
jne 0x1006163
mov eax, dword [0x100d680]
or dword [ebp - 0x1fdc], 0xffffffff
cmp dword [eax], ebx
lea edi, [eax + 8]
mov dword [ebp - 0x1fd0], edi
mov dword [ebp - 0x1fd4], ebx
jbe 0x1006583
mov eax, dword [edi + 4]
cmp dword [ebp - 0x1fdc], eax
je 0x1006242
push eax
mov dword [ebp - 0x1fdc], eax
call fcn.01005506
mov dword [ebp - 0x1fcc], eax
mov word [ebp - 0x20c], bx
test byte [edi + 0x14], 0x80
je 0x1006293
mov eax, dword [edi]
cmp word [eax + 0x28], bx
je 0x1006263
mov ecx, dword [eax + 0x2c]
cmp word [ecx], bx
jne 0x1006263
mov word [eax + 0x28], bx
movzx esi, word [eax + 0x28]
mov eax, dword [eax + 0x2c]
shr esi, 1
cmp eax, ebx
je 0x100628c
push esi
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy]
add esp, 0xc
mov word [ebp + esi*2 - 0x20c], bx
jmp 0x1006293
mov word [ebp - 0x20c], bx
mov eax, dword [0x100dcc0]
cmp eax, ebx
je 0x10062ab
mov ecx, dword [ebp - 0x1fcc]
cmp dword [ecx + 0x44], eax
jne 0x100655b
mov dx, word [edi + 0x12]
mov eax, 0x80
cmp dx, ax
movzx ecx, dx
jb 0x10062be
mov ecx, eax
cmp dx, ax
lea ecx, [ecx + ecx*2]
lea ecx, [ecx*4 + 0x100d070]
jae 0x10062d0
movzx eax, dx
lea eax, [eax + eax*2]
lea eax, [eax*4 + 0x100d078]
inc dword [eax]
cmp word [0x100dbc0], bx
je 0x10062fd
push dword [ecx + 4]
push 0x100dbc0
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x100655b
cmp word [ebp - 0x20c], bx
jne 0x100630e
cmp byte [0x100dcc4], bl
jmp 0x1006370
cmp word [0x100d7c0], bx
je 0x1006376
mov edi, 0x100d7c0
lea eax, [ebp - 0x20c]
push edi
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
test eax, eax
pop ecx
pop ecx
jne 0x1006376
push edi
lea esi, [ebp - 0x20c]
call dword [sym.imp.msvcrt.dll_wcslen]
cmp word [ebp - 0x20c], bx
pop ecx
mov dword [ebp - 0x1ff8], eax
je 0x100655b
push dword [ebp - 0x1ff8]
push edi
push esi
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x100636d
inc esi
inc esi
cmp word [esi], bx
jne 0x1006351
cmp word [esi], bx
je 0x100655b
mov eax, dword [ebp - 0x1fcc]
push dword [eax + 0x44]
push dword [ebp - 0x1fe0]
call fcn.01006836
test eax, eax
je 0x100655b
cmp word [ebp - 0x20c], bx
lea eax, [ebp - 0x20c]
jne 0x10063a6
mov eax, 0x10012d0
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push eax
lea eax, [ebp - 0x604]
push 0x1001514
push eax
call esi
add esp, 0xc
push dword [ebp - 0x1fc8]
call fcn.01008d96
xor edi, edi
inc edi
cmp eax, edi
jne 0x10063ed
push ebx
push edi
lea eax, [ebp - 0x604]
push eax
push dword [ebp - 0x1fc8]
call fcn.010098a7
cmp eax, 0xffffffff
jne 0x100655b
push 0x10012d0
lea eax, [ebp - 0x80c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x1fec]
push eax
lea eax, [ebp - 0xd24]
push eax
lea eax, [ebp - 0xb18]
push eax
push dword [ebp - 0x1fe8]
lea eax, [ebp - 0x1fc0]
push eax
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x604]
push eax
call fcn.010056a4
test eax, eax
jne 0x100646f
cmp dword [ebp - 0x1fec], edi
jne 0x100655b
push dword [ebp - 0x1fc8]
call fcn.01008d96
cmp eax, edi
jne 0x100655b
push ebx
lea eax, [ebp - 0x604]
push eax
push dword [ebp - 0x1fc8]
call fcn.01009100
jmp 0x100655b
push ebx
push dword [ebp - 0x1fc4]
call fcn.010092d4
mov eax, dword [ebp - 0x1fd0]
push dword [eax + 8]
lea eax, [ebp - 0x604]
push 0x1001438
push eax
call esi
mov esi, dword [ebp - 0x1fe4]
add esp, 0xc
push ebx
lea eax, [ebp - 0x604]
push eax
push esi
push dword [ebp - 0x1fc4]
call fcn.01009388
push ebx
push dword [ebp - 0x1fd8]
push esi
push dword [ebp - 0x1fc4]
call fcn.01009388
push ebx
push dword [ebp - 0x1fe0]
push esi
push dword [ebp - 0x1fc4]
call fcn.01009388
mov eax, dword [ebp - 0x1fcc]
add eax, 0x38
push eax
lea eax, [ebp - 0x90c]
push 0x10014e4
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0xc
push 0xfe
lea eax, [ebp - 0x604]
push eax
lea eax, [ebp - 0x90c]
push eax
call fcn.01007555
push ebx
lea eax, [ebp - 0x604]
push eax
push esi
push dword [ebp - 0x1fc4]
call fcn.01009388
cmp dword [ebp + 0x10], ebx
jne 0x1006536
push 0x32
push dword [ebp + 8]
lea eax, [ebp - 0x80c]
push eax
call fcn.01005bd6
push ebx
lea eax, [ebp - 0x80c]
push eax
push dword [ebp - 0x1fe4]
push dword [ebp - 0x1fc4]
call fcn.01009388
inc dword [ebp - 0x1fe4]
mov dword [ebp - 0x1ff0], edi
inc dword [ebp - 0x1fd4]
mov edi, dword [ebp - 0x1fd0]
mov eax, dword [0x100d680]
mov ecx, dword [ebp - 0x1fd4]
add edi, 0x1c
cmp ecx, dword [eax]
mov dword [ebp - 0x1fd0], edi
jb 0x1006225
push 0x100d694
push 0x10012cc
push dword [0x100d690]
call fcn.010055be
cmp dword [ebp + 0xc], 1
jne 0x10065a2
or byte [ebp + 9], 0x10
cmp dword [ebp + 0x10], 1
jne 0x10065b2
mov dword [ebp - 0x11d0], 0x50
cmp dword [ebp - 0x1ff0], ebx
jne 0x10065d2
push 0x51
call fcn.01008098
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push eax
call fcn.01007c8b
jmp 0x100661b
push 0xb7
call fcn.01008098
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push eax
call fcn.01007c8b
push 0xbd
call fcn.01008098
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push eax
call fcn.01007c8b
push dword [ebp - 0x1fc4]
lea eax, [ebp - 0x1e20]
push dword [ebp + 8]
push eax
push 5
call fcn.0100b385
cmp dword [ebp - 0x1fc4], ebx
je 0x1006635
lea eax, [ebp - 0x1fc4]
push eax
call fcn.01008e2b
mov dword [ebp - 0x1fc4], ebx
cmp dword [ebp - 0x1fc8], ebx
je 0x100664f
lea eax, [ebp - 0x1fc8]
push eax
call fcn.01008e2b
mov dword [ebp - 0x1fc8], ebx
push dword [ebp - 0x1fe0]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1fd8]
call sub.framedyn.dll_public:_void___thiscall_CHString::destructor_void_
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.01006b1c
leave
ret 0xc