Function at 0x4143f0
Capabilities:
Get disk information
Get disk size
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5c2778
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov eax, dword [0x617560]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov ebp, dword [0x636fb4]
mov dword [esp + 0x24], ebp
call fcn.004c5ee1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41443b
push 0x80004005
call fcn.00404150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x60], 0
call fcn.004c5ee1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41446d
push 0x80004005
call fcn.00404150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x60], 1
call fcn.004cdc49
push 0
mov byte [esp + 0x64], 2
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push 0
call edi
mov esi, eax
test esi, esi
je 0x41453a
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
mov ebx, eax
push 8
push ebx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push esi
push 0
push ebx
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.dll_HeapSize]
push eax
call edi
mov al, byte [esi]
test al, al
je 0x41452c
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp al, 0x41
je 0x414516
cmp al, 0x42
je 0x414516
push esi
call edi
cmp eax, 4
je 0x414516
push esi
call edi
cmp eax, 5
je 0x414516
push esi
call edi
cmp eax, 6
je 0x414516
push esi
call edi
test eax, eax
je 0x414516
push esi
call edi
cmp eax, 2
je 0x414516
mov ecx, dword [esp + 0x4c]
push esi
push ecx
lea ecx, [esp + 0x4c]
call fcn.004cdf00
push 0
push esi
call fcn.004e5678
add eax, 1
mov esi, eax
mov al, byte [esi]
add esp, 8
test al, al
jne 0x4144d8
mov edx, dword [esp + 0x20]
push edx
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x4c]
xor edi, edi
xor ebx, ebx
xor esi, esi
test eax, eax
jle 0x4145be
mov ebp, dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov edi, edi
test esi, esi
jl 0x4147d3
cmp esi, eax
jge 0x4147d3
mov eax, dword [esp + 0x48]
lea eax, [eax + esi*4]
push eax
lea ecx, [esp + 0x1c]
call fcn.00404e20
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x44]
push eax
push ecx
call ebp
test eax, eax
je 0x4145af
mov ecx, dword [esp + 0x30]
cmp ecx, ebx
jb 0x4145af
mov eax, dword [esp + 0x2c]
ja 0x41459d
cmp eax, edi
jbe 0x4145af
lea edx, [esp + 0x18]
mov ebx, ecx
push edx
lea ecx, [esp + 0x20]
mov edi, eax
call fcn.00404e20
mov eax, dword [esp + 0x4c]
add esi, 1
cmp esi, eax
jl 0x414550
mov ebp, dword [esp + 0x24]
lea ecx, [ebp + 0x50]
lea edx, [esp + 0x1c]
mov dword [ebp + 0x64], 1
mov eax, dword [ecx + 8]
push edx
push eax
call fcn.004cdecb
push 0x637
lea eax, [esp + 0x28]
push eax
call fcn.0041d1c0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x64], 3
call fcn.00404e20
mov byte [esp + 0x60], 2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414619
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.00416e00
push 0x5f5b20
push eax
lea ecx, [esp + 0x38]
push ecx
mov byte [esp + 0x78], 4
call fcn.00404c70
add esp, 0x18
lea ecx, [ebp + 0x3c]
push eax
mov byte [esp + 0x64], 5
call fcn.00404e20
mov byte [esp + 0x60], 4
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x414678
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x60], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41469d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x638
lea ecx, [esp + 0x2c]
push ecx
call fcn.0041d1c0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x64], 6
call fcn.00404e20
mov byte [esp + 0x60], 2
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4146e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.00416e00
push 0x5f5b20
push eax
lea ecx, [esp + 0x3c]
mov bl, 7
push ecx
mov byte [esp + 0x78], bl
call fcn.00404c70
add esp, 0x18
lea ecx, [ebp + 0x40]
push eax
mov byte [esp + 0x64], 8
call fcn.00404e20
mov byte [esp + 0x60], bl
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41473f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x60], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414764
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x60], 1
call fcn.004cdce7
mov byte [esp + 0x60], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414797
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x60], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4147bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
jmp fcn.004c788e