Function at 0x459b20
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x5d2660
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
mov eax, dword [0x628560]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov eax, dword [0x647fdc]
mov dword [esp + 0x1c], eax
call fcn.004d4cf7
xor ecx, ecx
xor esi, esi
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x459b6b
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 + 0x10], eax
mov dword [esp + 0x48], esi
call fcn.004d4cf7
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x459b99
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 + 0x14], eax
mov byte [esp + 0x48], 1
mov eax, dword [edi + 8]
xor ebx, ebx
xor ebp, ebp
test eax, eax
jle 0x459c25
test esi, esi
jl 0x459e17
cmp esi, eax
jge 0x459e17
mov ecx, dword [edi + 4]
lea eax, [ecx + esi*4]
push eax
lea ecx, [esp + 0x14]
call fcn.00404ec0
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x3c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x459c1b
mov ecx, dword [esp + 0x28]
cmp ecx, ebp
jb 0x459c1b
mov eax, dword [esp + 0x24]
ja 0x459c09
cmp eax, ebx
jbe 0x459c1b
mov ebx, eax
lea eax, [esp + 0x10]
mov ebp, ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00404ec0
mov eax, dword [edi + 8]
add esi, 1
cmp esi, eax
jl 0x459bb9
push 0x637
lea ecx, [esp + 0x1c]
push ecx
call fcn.00422da0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 2
call fcn.00404ec0
mov byte [esp + 0x48], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x459c68
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.0041c6f0
push 0x6061ec
push eax
lea ecx, [esp + 0x2c]
mov bl, 3
push ecx
mov byte [esp + 0x60], bl
call fcn.00404cc0
add esp, 0x18
mov byte [esp + 0x48], 4
mov esi, dword [esp + 0x1c]
lea ecx, [esi + 0x3c]
push eax
call fcn.00404ec0
mov byte [esp + 0x48], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x459ccb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x48], 1
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 0x459cf0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x638
lea ecx, [esp + 0x20]
push ecx
call fcn.00422da0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 5
call fcn.00404ec0
mov byte [esp + 0x48], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x459d33
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.0041c6f0
push 0x6061ec
push eax
lea ecx, [esp + 0x34]
mov bl, 6
push ecx
mov byte [esp + 0x60], bl
call fcn.00404cc0
add esp, 0x18
lea ecx, [esi + 0x40]
push eax
mov byte [esp + 0x4c], 7
call fcn.00404ec0
mov byte [esp + 0x48], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x459d92
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x48], 1
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 0x459db7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x48], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x459ddc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x48], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x459e04
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
jmp fcn.004d66ad