Function at 0x40b200
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x5c6479
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x617560]
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.00405210
lea ebx, [eax + 0x10]
add esp, 4
mov dword [esp + 0x18], ebx
mov byte [esp + 0x58], 1
mov ebp, dword [0x636fb4]
call fcn.0044f260
test eax, eax
je 0x40b7d8
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 0x40b2a6
push 0
push 0x64
push esi
push edi
call fcn.004ecf70
mov ecx, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x40]
push ecx
push edx
push eax
call fcn.004f1fa0
mov dword [esp + 0x24], eax
shrd edi, esi, 0x14
shr esi, 0x14
cmp edi, dword [ebp + 0x44]
jae 0x40b7d4
call fcn.0040ff50
test eax, eax
jne 0x40b674
mov eax, dword [ebp + 0x48]
test eax, eax
jne 0x40b5a7
mov edi, edi
mov edx, dword [esp + 0x60]
push edx
call fcn.0040c200
test eax, eax
je 0x40b2d0
cmp eax, 1
jne 0x40b674
xor esi, esi
cmp dword [ebp + 0x58], esi
jle 0x40b347
mov edi, edi
test esi, esi
jl 0x40b51e
cmp esi, dword [ebp + 0x58]
jge 0x40b51e
mov eax, dword [ebp + 0x54]
lea eax, [eax + esi*4]
push eax
lea ecx, [esp + 0x1c]
call fcn.00404e20
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 0x40b38b
add esi, 1
cmp esi, dword [ebp + 0x58]
jl 0x40b2f0
call fcn.00442750
mov esi, dword [eax + 8]
test esi, esi
je 0x40b674
lea ebx, [eax + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x18
call fcn.004c51db
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
mov byte [esp + 0x58], 8
je 0x40b523
push eax
mov ecx, esi
call fcn.004421f0
mov esi, eax
jmp 0x40b525
push 0x637
lea eax, [esp + 0x20]
push eax
call fcn.0041d1c0
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.00416e00
add esp, 0xc
push 0x5f5b20
push eax
lea ecx, [esp + 0x30]
push ecx
mov byte [esp + 0x64], 3
call fcn.00404c70
add esp, 0xc
lea ecx, [ebp + 0x3c]
push eax
mov byte [esp + 0x5c], 4
call fcn.00404e20
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 0x40b401
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 0x40b426
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.0041d1c0
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x5c], 5
call fcn.00404e20
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 0x40b469
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.00416e00
add esp, 0xc
push 0x5f5b20
push eax
lea ecx, [esp + 0x38]
mov bl, 6
push ecx
mov byte [esp + 0x64], bl
call fcn.00404c70
add esp, 0xc
lea ecx, [ebp + 0x40]
push eax
mov byte [esp + 0x5c], 7
call fcn.00404e20
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 0x40b4cb
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 0x40b4f0
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 0x40b674
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40b674
call fcn.004c788e
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 0x40b668
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
push 0
push 0x61aa94
push 0x61aa44
push 0
push eax
call fcn.004e5381
mov edi, eax
add esp, 0x14
test edi, edi
je 0x40b58c
cmp byte [edi + 0x2a8], 0
je 0x40b575
mov edx, dword [edi]
mov eax, dword [edx + 0x40]
push 0x40
mov ecx, edi
call eax
cmp byte [edi + 0x2a9], 0
je 0x40b58c
mov edx, dword [edi]
mov eax, dword [edx + 0x40]
push 0x80
mov ecx, edi
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 0x40b53b
jmp 0x40b668
cmp eax, 1
jne 0x40b674
call fcn.00442750
mov esi, dword [eax + 8]
test esi, esi
je 0x40b674
lea ebx, [eax + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x18
call fcn.004c51db
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
mov byte [esp + 0x58], 9
je 0x40b5ed
push eax
mov ecx, esi
call fcn.004421f0
mov esi, eax
jmp 0x40b5ef
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 0x40b668
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
push 0
push 0x61aa94
push 0x61aa44
push 0
push eax
call fcn.004e5381
mov edi, eax
add esp, 0x14
test edi, edi
je 0x40b652
cmp byte [edi + 0x2a8], 0
je 0x40b63b
mov edx, dword [edi]
mov eax, dword [edx + 0x40]
push 0x40
mov ecx, edi
call eax
cmp byte [edi + 0x2a9], 0
je 0x40b652
mov edx, dword [edi]
mov eax, dword [edx + 0x40]
push 0x80
mov ecx, edi
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 0x40b601
call fcn.00408930
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 3
lea ecx, [esp + 0x34]
push ecx
lea ecx, [ebp + 0x3c]
call fcn.00404bf0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5c], 0xa
call fcn.00404e20
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 0x40b6b7
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 0x40b6d0
push 0x80004005
call fcn.00404150
mov ecx, dword [esp + 0x64]
push ebx
push ecx
call fcn.004e64c5
add esp, 8
test eax, eax
setne al
test al, al
je 0x40b7d4
call fcn.00442750
mov esi, dword [eax + 8]
test esi, esi
je 0x40b7d4
lea ebp, [eax + 0x10]
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x18
call fcn.004c51db
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
mov byte [esp + 0x58], 0xb
je 0x40b728
push eax
mov ecx, esi
call fcn.004421f0
mov edi, eax
jmp 0x40b72a
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 0x40b7bd
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
push 0
push 0x61aa94
push 0x61aa44
push 0
push eax
call fcn.004e5381
mov esi, eax
add esp, 0x14
test esi, esi
je 0x40b7a7
cmp byte [esi + 0x2a8], 0
je 0x40b785
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 0x40b7a7
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 0x40b740
mov eax, edi
call fcn.00442280
push edi
call fcn.004c5206
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.0040fa50
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 0x40b803
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 0x40b824
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