Function at 0x429ce0
Capabilities:
Get disk information
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x5cf0d0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov eax, dword [0x628560]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
xor ebp, ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
call fcn.004d4cf7
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x429d2b
push 0x80004005
call fcn.00404150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x5c], ebp
call fcn.004dc97c
push ebp
mov byte [esp + 0x60], 1
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push ebp
call edi
mov esi, eax
test esi, esi
je 0x429df9
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
mov ebp, eax
push 8
push ebp
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push esi
push 0
push ebp
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_HeapSize]
push eax
call edi
mov al, byte [esi]
test al, al
je 0x429de7
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp al, 0x41
je 0x429dd1
cmp al, 0x42
je 0x429dd1
push esi
call edi
cmp eax, 4
je 0x429dd1
push esi
call edi
cmp eax, 5
je 0x429dd1
push esi
call edi
cmp eax, 6
je 0x429dd1
push esi
call edi
test eax, eax
je 0x429dd1
push esi
call edi
cmp eax, 2
je 0x429dd1
mov ecx, dword [esp + 0x44]
push esi
push ecx
lea ecx, [esp + 0x44]
call fcn.004dcc33
push 0
push esi
call fcn.004f432d
add eax, 1
mov esi, eax
mov al, byte [esi]
add esp, 8
test al, al
jne 0x429d93
mov edx, dword [esp + 0x18]
push edx
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x44]
xor esi, esi
test eax, eax
jle 0x429e5d
mov edi, dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test esi, esi
jl 0x429ebe
cmp esi, eax
jge 0x429ebe
mov eax, dword [esp + 0x40]
lea eax, [eax + esi*4]
push eax
lea ecx, [esp + 0x18]
call fcn.00404ec0
mov ebx, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x3c]
push eax
push ebx
call edi
test eax, eax
je 0x429e52
mov ecx, dword [esp + 0x24]
add dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x28]
adc ebp, edx
mov eax, dword [esp + 0x44]
add esi, 1
cmp esi, eax
jl 0x429e09
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x1c]
shrd ecx, edx, 0x1e
shrd eax, ebp, 0x1e
shr ebp, 0x1e
shr edx, 0x1e
test ecx, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x68], ecx
jne 0x429ec3
push eax
mov eax, dword [esp + 0x68]
push str._u_G
push eax
call fcn.004056d0
add esp, 0xc
lea ecx, [esp + 0x3c]
mov byte [esp + 0x5c], 0
call fcn.004dca1a
lea eax, [ebx - 0x10]
mov dword [esp + 0x5c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x429f20
call fcn.004d66ad
fild dword [esp + 0x18]
mov ecx, dword [esp + 0x64]
sub esp, 8
fidiv dword [esp + 0x70]
fstp dword [esp + 0x70]
fld dword [esp + 0x70]
fmul qword [0x610ef0]
fstp dword [esp + 0x70]
fld dword [esp + 0x70]
fstp qword [esp]
push eax
push str._u_G____2.2f____
push ecx
call fcn.004056d0
add esp, 0x14
lea ecx, [esp + 0x3c]
mov byte [esp + 0x5c], 0
call fcn.004dca1a
lea eax, [ebx - 0x10]
mov dword [esp + 0x5c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x429f2c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 0xc