Function at 0x40bd40
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x5d62c9
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x628560]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x58], eax
mov esi, dword [esp + 0x64]
add esi, 0xfffffff0
push esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], esi
call fcn.004052b0
lea ebx, [eax + 0x10]
add esp, 4
mov dword [esp + 0x18], ebx
mov byte [esp + 0x58], 1
mov ebp, dword [0x647fdc]
call fcn.004595f0
test eax, eax
je 0x40c328
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x4c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
je 0x40bde6
push 0
push 0x64
push esi
push edi
call fcn.004fbce0
mov ecx, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x40]
push ecx
push edx
push eax
call fcn.00500d80
mov dword [esp + 0x24], eax
shrd edi, esi, 0x14
shr esi, 0x14
cmp edi, dword [ebp + 0x44]
jae 0x40c324
call fcn.00410db0
test eax, eax
jne 0x40c1c2
mov eax, dword [ebp + 0x48]
test eax, eax
jne 0x40c0ee
mov edi, edi
mov edx, dword [esp + 0x60]
push edx
call fcn.0040cdc0
test eax, eax
je 0x40be10
cmp eax, 1
jne 0x40c1c2
xor esi, esi
cmp dword [ebp + 0x58], esi
jle 0x40be87
mov edi, edi
test esi, esi
jl 0x40c05e
cmp esi, dword [ebp + 0x58]
jge 0x40c05e
mov eax, dword [ebp + 0x54]
lea eax, [eax + esi*4]
push eax
lea ecx, [esp + 0x1c]
call fcn.00404ec0
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x4c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
shrd eax, edx, 0x14
shr edx, 0x14
cmp eax, dword [ebp + 0x44]
ja 0x40becb
add esi, 1
cmp esi, dword [ebp + 0x58]
jl 0x40be30
call fcn.004485b0
mov esi, dword [eax + 8]
test esi, esi
je 0x40c1c2
lea ebx, [eax + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x18
call fcn.004d3feb
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
mov byte [esp + 0x58], 8
je 0x40c063
push eax
mov ecx, esi
call fcn.00448050
mov esi, eax
jmp 0x40c065
push 0x637
lea eax, [esp + 0x20]
push eax
call fcn.00422da0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x34]
push eax
mov byte [esp + 0x64], 2
call fcn.0041c6f0
add esp, 0xc
push 0x6061ec
push eax
lea ecx, [esp + 0x30]
push ecx
mov byte [esp + 0x64], 3
call fcn.00404cc0
add esp, 0xc
lea ecx, [ebp + 0x3c]
push eax
mov byte [esp + 0x5c], 4
call fcn.00404ec0
mov byte [esp + 0x58], 3
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 0x40bf41
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x58], 2
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bf66
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x638
lea ecx, [esp + 0x34]
push ecx
call fcn.00422da0
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x5c], 5
call fcn.00404ec0
mov byte [esp + 0x58], 2
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40bfa9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x34]
push eax
call fcn.0041c6f0
add esp, 0xc
push 0x6061ec
push eax
lea ecx, [esp + 0x38]
mov bl, 6
push ecx
mov byte [esp + 0x64], bl
call fcn.00404cc0
add esp, 0xc
lea ecx, [ebp + 0x40]
push eax
mov byte [esp + 0x5c], 7
call fcn.00404ec0
mov byte [esp + 0x58], bl
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c00b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x58], 2
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c030
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x58], 1
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 0x40c1c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40c1c2
call fcn.004d66ad
xor esi, esi
mov byte [esp + 0x58], 1
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
test al, al
je 0x40c1b6
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
push 0
push 0x62bae4
push 0x62ba68
push 0
push eax
call fcn.004f4036
mov edi, eax
add esp, 0x14
test edi, edi
je 0x40c0d3
cmp byte [edi + 0x2a8], 0
je 0x40c0b5
mov edx, dword [edi]
mov eax, dword [edx + 0x40]
push 0x40
mov ecx, edi
call eax
cmp byte [edi + 0x2a9], 0
je 0x40c0d3
mov edx, dword [edi]
mov eax, dword [edx + 0x40]
push 0x80
mov ecx, edi
mov byte [edi + 0x820], 0
call eax
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
test al, al
jne 0x40c07b
jmp 0x40c1b6
cmp eax, 1
jne 0x40c1c2
call fcn.004485b0
mov esi, dword [eax + 8]
test esi, esi
je 0x40c1c2
lea ebx, [eax + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x18
call fcn.004d3feb
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
mov byte [esp + 0x58], 9
je 0x40c134
push eax
mov ecx, esi
call fcn.00448050
mov esi, eax
jmp 0x40c136
xor esi, esi
mov byte [esp + 0x58], 1
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
test al, al
je 0x40c1b6
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
push 0
push 0x62bae4
push 0x62ba68
push 0
push eax
call fcn.004f4036
mov edi, eax
add esp, 0x14
test edi, edi
je 0x40c1a0
cmp byte [edi + 0x2a8], 0
je 0x40c182
mov edx, dword [edi]
mov eax, dword [edx + 0x40]
push 0x40
mov ecx, edi
call eax
cmp byte [edi + 0x2a9], 0
je 0x40c1a0
mov edx, dword [edi]
mov eax, dword [edx + 0x40]
push 0x80
mov ecx, edi
mov byte [edi + 0x820], 0
call eax
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
test al, al
jne 0x40c148
call fcn.00409f40
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 3
lea ecx, [esp + 0x34]
push ecx
lea ecx, [ebp + 0x3c]
call fcn.00404c40
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5c], 0xa
call fcn.00404ec0
mov byte [esp + 0x58], 1
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c205
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x18]
xor eax, eax
test ebx, ebx
setne al
test eax, eax
jne 0x40c21e
push 0x80004005
call fcn.00404150
mov ecx, dword [esp + 0x64]
push ebx
push ecx
call fcn.004f5185
add esp, 8
test eax, eax
setne al
test al, al
je 0x40c324
call fcn.004485b0
mov esi, dword [eax + 8]
test esi, esi
je 0x40c324
lea ebp, [eax + 0x10]
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x18
call fcn.004d3feb
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
mov byte [esp + 0x58], 0xb
je 0x40c276
push eax
mov ecx, esi
call fcn.00448050
mov edi, eax
jmp 0x40c278
xor edi, edi
mov byte [esp + 0x58], 1
mov edx, dword [edi]
mov eax, dword [edx + 8]
mov ecx, edi
call eax
test al, al
je 0x40c30d
mov edi, edi
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
push 0
push 0x62bae4
push 0x62ba68
push 0
push eax
call fcn.004f4036
mov esi, eax
add esp, 0x14
test esi, esi
je 0x40c2f7
cmp byte [esi + 0x2a8], 0
je 0x40c2d5
mov edx, dword [esi]
mov eax, dword [edx + 0x40]
push 0x40
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x3c]
push 0x10
mov ecx, esi
call eax
cmp byte [esi + 0x2a9], 0
je 0x40c2f7
mov edx, dword [esi]
mov eax, dword [edx + 0x40]
push 0x80
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x3c]
push 0x20
mov ecx, esi
call eax
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
mov edx, dword [edi]
mov eax, dword [edx + 8]
mov ecx, edi
call eax
test al, al
jne 0x40c290
mov eax, edi
call fcn.004480e0
push edi
call fcn.004d401b
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x60]
push ecx
call fcn.004108b0
lea eax, [ebx - 0x10]
mov byte [esp + 0x58], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c353
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x58], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c374
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 8