Function at 0x493540
Capabilities:
Get common file path
Get disk information
Get disk size
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4eff4e
mov eax, dword fs:[0]
push eax
sub esp, 0x3a0
mov eax, dword [0x52b360]
xor eax, esp
mov dword [esp + 0x398], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52b360]
xor eax, esp
push eax
lea eax, [esp + 0x3b4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x3c4]
xor ebx, ebx
lea eax, [esp + 0x2c]
mov dword [esp + 0x3bc], ebx
push eax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x2c], ebx
call fcn.00403c40
push 0x206
lea edx, [esp + 0x1aa]
xor ecx, ecx
push ebx
mov dword [esp + 0x3c4], 1
push edx
mov word [esp + 0x1b0], cx
call fcn.004d1df0
add esp, 0xc
push pe_nt_image_headers32
lea eax, [esp + 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor ecx, ecx
lea eax, [esp + 0xa4]
mov dword [esp + 0xa0], 7
mov dword [esp + 0x9c], ebx
mov word [esp + 0x8c], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x493601
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0xa8]
push edx
lea esi, [esp + 0x90]
call fcn.00401760
mov eax, esi
push eax
mov ecx, 3
xor edx, edx
lea esi, [esp + 0x5c]
mov byte [esp + 0x3c0], 2
call fcn.00408160
push 0xffffffffffffffff
push ebx
push eax
lea eax, [esp + 0x94]
mov byte [esp + 0x3c8], 3
call fcn.00401850
mov byte [esp + 0x3bc], 2
cmp dword [esp + 0x70], 8
jb 0x493674
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.004c8f17
add esp, 4
lea edx, [esp + 0x1a4]
push edx
push 0x103
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
lea edi, [esp + 0x1a4]
cmp word [esp + 0x1a4], bx
je 0x493737
mov ebp, dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov bl, 4
push edi
call ebp
cmp eax, 3
jne 0x49371a
xor eax, eax
mov word [esp + 0x5c], ax
mov eax, edi
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], 0
lea edx, [eax + 2]
jmp 0x4936d0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4936d0
sub eax, edx
sar eax, 1
push eax
push edi
lea esi, [esp + 0x60]
call fcn.00401760
mov ecx, esi
push ecx
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x3c4], bl
call fcn.00403d30
mov byte [esp + 0x3bc], 2
cmp dword [esp + 0x70], 8
jb 0x49371a
mov eax, dword [esp + 0x5c]
push eax
call fcn.004c8f17
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [edi + eax*2 + 2], 0
lea edi, [edi + eax*2 + 2]
jne 0x4936a4
mov ebp, dword [esp + 0x18]
xor ebx, ebx
xor ecx, ecx
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], ebx
mov word [ebp + 4], cx
mov esi, dword [esp + 0x38]
mov dword [esp + 0x28], 1
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
cmp esi, dword [esp + 0x3c]
jbe 0x493766
call fcn.004c96d9
mov ebp, dword [esp + 0x2c]
mov edi, esi
mov dword [esp + 0x50], ebp
add esi, 4
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x3c]
cmp dword [esp + 0x38], esi
jbe 0x493786
call fcn.004c96d9
cmp ebp, ebx
je 0x493790
cmp ebp, dword [esp + 0x2c]
je 0x493795
call fcn.004c96d9
cmp edi, esi
je 0x493920
cmp ebp, ebx
jne 0x493866
call fcn.004c96d9
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x4937b6
call fcn.004c96d9
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x14], 8
mov esi, dword [eax + 0x10]
jb 0x4937c5
mov eax, dword [eax]
mov edx, dword [esp + 0x9c]
cmp edx, esi
jb 0x4937d2
mov edx, esi
cmp dword [esp + 0xa0], 8
mov ecx, dword [esp + 0x8c]
jae 0x4937ea
lea ecx, [esp + 0x8c]
cmp edx, ebx
jbe 0x493807
mov edi, edi
mov bp, word [ecx]
cmp bp, word [eax]
jne 0x49386e
add ecx, 2
add eax, 2
sub edx, 1
jne 0x4937f0
mov ebp, dword [esp + 0x50]
mov eax, dword [esp + 0x9c]
cmp eax, esi
jb 0x493843
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
cmp eax, ebx
jne 0x493843
mov ecx, dword [esp + 0x3c]
sub ecx, dword [esp + 0x38]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
ja 0x4938f7
cmp ebp, ebx
jne 0x493884
call fcn.004c96d9
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x493858
call fcn.004c96d9
mov esi, dword [esp + 0x14]
cmp dword [esi + 0x14], 8
jb 0x493889
mov eax, dword [esi]
jmp 0x49388b
mov eax, dword [ebp]
jmp 0x4937ac
mov dx, bp
cmp dx, word [eax]
sbb eax, eax
and eax, 0xfffffffe
inc eax
cmp eax, ebx
je 0x493803
mov ebp, dword [esp + 0x50]
jmp 0x49381b
mov eax, dword [ebp]
jmp 0x49384e
mov eax, esi
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x78]
push edx
lea ecx, [esp + 0x84]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x4938fb
mov edx, dword [esp + 0x48]
cmp edx, dword [esp + 0x20]
jb 0x4938fb
ja 0x4938be
mov eax, dword [esp + 0x44]
cmp eax, dword [esp + 0x1c]
jbe 0x4938fb
cmp ebp, ebx
jne 0x4938f2
call fcn.004c96d9
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x4938d3
call fcn.004c96d9
mov eax, dword [esp + 0x18]
push 0xffffffffffffffff
push ebx
push edi
call fcn.00401850
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
jmp 0x4938fb
mov eax, dword [ebp]
jmp 0x4938c9
mov esi, dword [esp + 0x14]
cmp ebp, ebx
jne 0x49391b
call fcn.004c96d9
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x493910
call fcn.004c96d9
add edi, 0x1c
add esi, 0x1c
jmp 0x493773
mov eax, dword [ebp]
jmp 0x493906
cmp dword [esp + 0xa0], 8
jb 0x49393a
mov eax, dword [esp + 0x8c]
push eax
call fcn.004c8f17
add esp, 4
mov eax, dword [esp + 0x38]
xor ecx, ecx
mov dword [esp + 0xa0], 7
mov dword [esp + 0x9c], ebx
mov word [esp + 0x8c], cx
cmp eax, ebx
je 0x49397c
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x3c]
push edx
call fcn.00404650
mov eax, dword [esp + 0x3c]
add esp, 4
push eax
call fcn.004c8f17
add esp, 4
mov ecx, dword [esp + 0x2c]
push ecx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
call fcn.004c8f17
mov eax, dword [esp + 0x1c]
add esp, 4
mov ecx, dword [esp + 0x3b4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x398]
xor ecx, esp
call fcn.004c8f08
add esp, 0x3ac
ret