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

Disassembly:
push 0xffffffffffffffff
push 0x5c1f58
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.004c5661
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41419b
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.004c5661
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4141cd
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.004cd409
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 0x41429a
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 0x41428c
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp al, 0x41
je 0x414276
cmp al, 0x42
je 0x414276
push esi
call edi
cmp eax, 4
je 0x414276
push esi
call edi
cmp eax, 5
je 0x414276
push esi
call edi
cmp eax, 6
je 0x414276
push esi
call edi
test eax, eax
je 0x414276
push esi
call edi
cmp eax, 2
je 0x414276
mov ecx, dword [esp + 0x4c]
push esi
push ecx
lea ecx, [esp + 0x4c]
call fcn.004cd6c0
push 0
push esi
call fcn.004e4df8
add eax, 1
mov esi, eax
mov al, byte [esi]
add esp, 8
test al, al
jne 0x414238
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 0x41431e
mov ebp, dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov edi, edi
test esi, esi
jl 0x414533
cmp esi, eax
jge 0x414533
mov eax, dword [esp + 0x48]
lea eax, [eax + esi*4]
push eax
lea ecx, [esp + 0x1c]
call fcn.00404e30
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 0x41430f
mov ecx, dword [esp + 0x30]
cmp ecx, ebx
jb 0x41430f
mov eax, dword [esp + 0x2c]
ja 0x4142fd
cmp eax, edi
jbe 0x41430f
lea edx, [esp + 0x18]
mov ebx, ecx
push edx
lea ecx, [esp + 0x20]
mov edi, eax
call fcn.00404e30
mov eax, dword [esp + 0x4c]
add esi, 1
cmp esi, eax
jl 0x4142b0
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.004cd68b
push 0x637
lea eax, [esp + 0x28]
push eax
call fcn.0041c990
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x64], 3
call fcn.00404e30
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 0x414379
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.004165d0
push 0x5f5b00
push eax
lea ecx, [esp + 0x38]
push ecx
mov byte [esp + 0x78], 4
call fcn.00404c80
add esp, 0x18
lea ecx, [ebp + 0x3c]
push eax
mov byte [esp + 0x64], 5
call fcn.00404e30
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 0x4143d8
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 0x4143fd
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.0041c990
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x64], 6
call fcn.00404e30
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 0x414440
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.004165d0
push 0x5f5b00
push eax
lea ecx, [esp + 0x3c]
mov bl, 7
push ecx
mov byte [esp + 0x78], bl
call fcn.00404c80
add esp, 0x18
lea ecx, [ebp + 0x40]
push eax
mov byte [esp + 0x64], 8
call fcn.00404e30
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 0x41449f
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 0x4144c4
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.004cd4a7
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 0x4144f7
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 0x41451f
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.004c700e