Function at 0x40ff50
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x5c0088
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x617560]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, dword [0x636fb4]
xor ebp, ebp
cmp dword [esi + 0x58], ebp
mov dword [esp + 0x18], ebp
jle 0x41003a
mov ebx, dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test ebp, ebp
jl 0x410188
cmp ebp, dword [esi + 0x58]
jge 0x410188
mov eax, dword [esi + 0x54]
lea eax, [eax + ebp*4]
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00405210
lea edi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x14], edi
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x3c]
push eax
push edi
mov dword [esp + 0x58], 0
call ebx
test eax, eax
je 0x41000a
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
shrd eax, ecx, 0x14
shr ecx, 0x14
cmp eax, dword [esi + 0x44]
ja 0x410052
lea eax, [edi - 0x10]
mov dword [esp + 0x48], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x410022
lea eax, [edi - 0x10]
mov dword [esp + 0x48], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41002e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebp, 1
cmp ebp, dword [esi + 0x58]
jl 0x40ff92
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
mov ebx, 3
push ebx
lea ecx, [esp + 0x20]
lea ebp, [esi + 0x3c]
push ecx
mov ecx, ebp
call fcn.00416da0
push eax
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x54], 1
call fcn.00416e00
add esp, 0xc
push eax
mov ecx, ebp
mov byte [esp + 0x4c], 2
call fcn.00404e20
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 0x4100b1
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 + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4100d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebx
lea ecx, [esp + 0x24]
add esi, 0x40
push ecx
mov ecx, esi
call fcn.00416da0
push eax
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x54], bl
call fcn.00416e00
add esp, 0xc
push eax
mov ecx, esi
mov byte [esp + 0x4c], 4
call fcn.00404e20
mov byte [esp + 0x48], bl
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 0x41012e
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 + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410153
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x18], 1
mov dword [esp + 0x48], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41003a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41003a
jmp fcn.004c788e