Function at 0x4599c0
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x5d2350
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
mov eax, dword [0x629560]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov eax, dword [0x648fc4]
mov dword [esp + 0x1c], eax
call fcn.004d4991
xor ecx, ecx
xor esi, esi
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x459a0b
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.004d4991
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x459a39
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 0x459ac5
test esi, esi
jl 0x459cb7
cmp esi, eax
jge 0x459cb7
mov ecx, dword [edi + 4]
lea eax, [ecx + esi*4]
push eax
lea ecx, [esp + 0x14]
call fcn.00404f90
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 0x459abb
mov ecx, dword [esp + 0x28]
cmp ecx, ebp
jb 0x459abb
mov eax, dword [esp + 0x24]
ja 0x459aa9
cmp eax, ebx
jbe 0x459abb
mov ebx, eax
lea eax, [esp + 0x10]
mov ebp, ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00404f90
mov eax, dword [edi + 8]
add esi, 1
cmp esi, eax
jl 0x459a59
push 0x637
lea ecx, [esp + 0x1c]
push ecx
call fcn.00422af0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 2
call fcn.00404f90
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 0x459b08
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.0041c4d0
push 0x60622c
push eax
lea ecx, [esp + 0x2c]
mov bl, 3
push ecx
mov byte [esp + 0x60], bl
call fcn.00404db0
add esp, 0x18
mov byte [esp + 0x48], 4
mov esi, dword [esp + 0x1c]
lea ecx, [esi + 0x3c]
push eax
call fcn.00404f90
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 0x459b6b
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 0x459b90
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.00422af0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 5
call fcn.00404f90
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 0x459bd3
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.0041c4d0
push 0x60622c
push eax
lea ecx, [esp + 0x34]
mov bl, 6
push ecx
mov byte [esp + 0x60], bl
call fcn.00404db0
add esp, 0x18
lea ecx, [esi + 0x40]
push eax
mov byte [esp + 0x4c], 7
call fcn.00404f90
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 0x459c32
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 0x459c57
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 0x459c7c
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 0x459ca4
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.004d633a