Function at 0x40bc80
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x5d5fd9
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x629560]
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.004053b0
lea ebx, [eax + 0x10]
add esp, 4
mov dword [esp + 0x18], ebx
mov byte [esp + 0x58], 1
mov ebp, dword [0x648fc4]
call fcn.00459490
test eax, eax
je 0x40c268
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 0x40bd26
push 0
push 0x64
push esi
push edi
call fcn.004fba20
mov ecx, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x40]
push ecx
push edx
push eax
call fcn.00500a50
mov dword [esp + 0x24], eax
shrd edi, esi, 0x14
shr esi, 0x14
cmp edi, dword [ebp + 0x44]
jae 0x40c264
call fcn.00410cf0
test eax, eax
jne 0x40c102
mov eax, dword [ebp + 0x48]
test eax, eax
jne 0x40c02e
mov edi, edi
mov edx, dword [esp + 0x60]
push edx
call fcn.0040cd00
test eax, eax
je 0x40bd50
cmp eax, 1
jne 0x40c102
xor esi, esi
cmp dword [ebp + 0x58], esi
jle 0x40bdc7
mov edi, edi
test esi, esi
jl 0x40bf9e
cmp esi, dword [ebp + 0x58]
jge 0x40bf9e
mov eax, dword [ebp + 0x54]
lea eax, [eax + esi*4]
push eax
lea ecx, [esp + 0x1c]
call fcn.00404f90
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 0x40be0b
add esi, 1
cmp esi, dword [ebp + 0x58]
jl 0x40bd70
call fcn.00448330
mov esi, dword [eax + 8]
test esi, esi
je 0x40c102
lea ebx, [eax + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x18
call fcn.004d3c8b
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
mov byte [esp + 0x58], 8
je 0x40bfa3
push eax
mov ecx, esi
call fcn.00447d80
mov esi, eax
jmp 0x40bfa5
push 0x637
lea eax, [esp + 0x20]
push eax
call fcn.00422af0
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.0041c4d0
add esp, 0xc
push 0x60622c
push eax
lea ecx, [esp + 0x30]
push ecx
mov byte [esp + 0x64], 3
call fcn.00404db0
add esp, 0xc
lea ecx, [ebp + 0x3c]
push eax
mov byte [esp + 0x5c], 4
call fcn.00404f90
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 0x40be81
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 0x40bea6
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.00422af0
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x5c], 5
call fcn.00404f90
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 0x40bee9
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.0041c4d0
add esp, 0xc
push 0x60622c
push eax
lea ecx, [esp + 0x38]
mov bl, 6
push ecx
mov byte [esp + 0x64], bl
call fcn.00404db0
add esp, 0xc
lea ecx, [ebp + 0x40]
push eax
mov byte [esp + 0x5c], 7
call fcn.00404f90
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 0x40bf4b
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 0x40bf70
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 0x40c102
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40c102
call fcn.004d633a
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 0x40c0f6
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
push 0
push 0x62cac4
push 0x62ca48
push 0
push eax
call fcn.004f3cd7
mov edi, eax
add esp, 0x14
test edi, edi
je 0x40c013
cmp byte [edi + 0x2a8], 0
je 0x40bff5
mov edx, dword [edi]
mov eax, dword [edx + 0x40]
push 0x40
mov ecx, edi
call eax
cmp byte [edi + 0x2a9], 0
je 0x40c013
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 0x40bfbb
jmp 0x40c0f6
cmp eax, 1
jne 0x40c102
call fcn.00448330
mov esi, dword [eax + 8]
test esi, esi
je 0x40c102
lea ebx, [eax + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x18
call fcn.004d3c8b
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
mov byte [esp + 0x58], 9
je 0x40c074
push eax
mov ecx, esi
call fcn.00447d80
mov esi, eax
jmp 0x40c076
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 0x40c0f6
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
push 0
push 0x62cac4
push 0x62ca48
push 0
push eax
call fcn.004f3cd7
mov edi, eax
add esp, 0x14
test edi, edi
je 0x40c0e0
cmp byte [edi + 0x2a8], 0
je 0x40c0c2
mov edx, dword [edi]
mov eax, dword [edx + 0x40]
push 0x40
mov ecx, edi
call eax
cmp byte [edi + 0x2a9], 0
je 0x40c0e0
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 0x40c088
call fcn.00409e80
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 3
lea ecx, [esp + 0x34]
push ecx
lea ecx, [ebp + 0x3c]
call fcn.00404d30
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5c], 0xa
call fcn.00404f90
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 0x40c145
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 0x40c15e
push 0x80004005
call fcn.00404150
mov ecx, dword [esp + 0x64]
push ebx
push ecx
call fcn.004f4e25
add esp, 8
test eax, eax
setne al
test al, al
je 0x40c264
call fcn.00448330
mov esi, dword [eax + 8]
test esi, esi
je 0x40c264
lea ebp, [eax + 0x10]
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x18
call fcn.004d3c8b
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
mov byte [esp + 0x58], 0xb
je 0x40c1b6
push eax
mov ecx, esi
call fcn.00447d80
mov edi, eax
jmp 0x40c1b8
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 0x40c24d
mov edi, edi
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
push 0
push 0x62cac4
push 0x62ca48
push 0
push eax
call fcn.004f3cd7
mov esi, eax
add esp, 0x14
test esi, esi
je 0x40c237
cmp byte [esi + 0x2a8], 0
je 0x40c215
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 0x40c237
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 0x40c1d0
mov eax, edi
call fcn.00447e10
push edi
call fcn.004d3cb6
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.004107f0
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 0x40c293
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 0x40c2b4
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