Function at 0x40af60
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x5c5bf9
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.00405220
lea ebx, [eax + 0x10]
add esp, 4
mov dword [esp + 0x18], ebx
mov byte [esp + 0x58], 1
mov ebp, dword [0x636fb4]
call fcn.0044e9e0
test eax, eax
je 0x40b538
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 0x40b006
push 0
push 0x64
push esi
push edi
call fcn.004ec6f0
mov ecx, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x40]
push ecx
push edx
push eax
call fcn.004f1720
mov dword [esp + 0x24], eax
shrd edi, esi, 0x14
shr esi, 0x14
cmp edi, dword [ebp + 0x44]
jae 0x40b534
call fcn.0040fcb0
test eax, eax
jne 0x40b3d4
mov eax, dword [ebp + 0x48]
test eax, eax
jne 0x40b307
mov edi, edi
mov edx, dword [esp + 0x60]
push edx
call fcn.0040bf60
test eax, eax
je 0x40b030
cmp eax, 1
jne 0x40b3d4
xor esi, esi
cmp dword [ebp + 0x58], esi
jle 0x40b0a7
mov edi, edi
test esi, esi
jl 0x40b27e
cmp esi, dword [ebp + 0x58]
jge 0x40b27e
mov eax, dword [ebp + 0x54]
lea eax, [eax + esi*4]
push eax
lea ecx, [esp + 0x1c]
call fcn.00404e30
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 0x40b0eb
add esi, 1
cmp esi, dword [ebp + 0x58]
jl 0x40b050
call fcn.00441ee0
mov esi, dword [eax + 8]
test esi, esi
je 0x40b3d4
lea ebx, [eax + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x18
call fcn.004c495b
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
mov byte [esp + 0x58], 8
je 0x40b283
push eax
mov ecx, esi
call fcn.00441980
mov esi, eax
jmp 0x40b285
push 0x637
lea eax, [esp + 0x20]
push eax
call fcn.0041c990
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.004165d0
add esp, 0xc
push 0x5f5b00
push eax
lea ecx, [esp + 0x30]
push ecx
mov byte [esp + 0x64], 3
call fcn.00404c80
add esp, 0xc
lea ecx, [ebp + 0x3c]
push eax
mov byte [esp + 0x5c], 4
call fcn.00404e30
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 0x40b161
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 0x40b186
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.0041c990
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x5c], 5
call fcn.00404e30
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 0x40b1c9
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.004165d0
add esp, 0xc
push 0x5f5b00
push eax
lea ecx, [esp + 0x38]
mov bl, 6
push ecx
mov byte [esp + 0x64], bl
call fcn.00404c80
add esp, 0xc
lea ecx, [ebp + 0x40]
push eax
mov byte [esp + 0x5c], 7
call fcn.00404e30
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 0x40b22b
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 0x40b250
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 0x40b3d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40b3d4
call fcn.004c700e
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 0x40b3c8
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.004e4b01
mov edi, eax
add esp, 0x14
test edi, edi
je 0x40b2ec
cmp byte [edi + 0x2a8], 0
je 0x40b2d5
mov edx, dword [edi]
mov eax, dword [edx + 0x40]
push 0x40
mov ecx, edi
call eax
cmp byte [edi + 0x2a9], 0
je 0x40b2ec
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 0x40b29b
jmp 0x40b3c8
cmp eax, 1
jne 0x40b3d4
call fcn.00441ee0
mov esi, dword [eax + 8]
test esi, esi
je 0x40b3d4
lea ebx, [eax + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x18
call fcn.004c495b
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
mov byte [esp + 0x58], 9
je 0x40b34d
push eax
mov ecx, esi
call fcn.00441980
mov esi, eax
jmp 0x40b34f
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 0x40b3c8
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.004e4b01
mov edi, eax
add esp, 0x14
test edi, edi
je 0x40b3b2
cmp byte [edi + 0x2a8], 0
je 0x40b39b
mov edx, dword [edi]
mov eax, dword [edx + 0x40]
push 0x40
mov ecx, edi
call eax
cmp byte [edi + 0x2a9], 0
je 0x40b3b2
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 0x40b361
call fcn.00408670
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 3
lea ecx, [esp + 0x34]
push ecx
lea ecx, [ebp + 0x3c]
call fcn.00404c00
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5c], 0xa
call fcn.00404e30
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 0x40b417
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 0x40b430
push 0x80004005
call fcn.00404150
mov ecx, dword [esp + 0x64]
push ebx
push ecx
call fcn.004e5c45
add esp, 8
test eax, eax
setne al
test al, al
je 0x40b534
call fcn.00441ee0
mov esi, dword [eax + 8]
test esi, esi
je 0x40b534
lea ebp, [eax + 0x10]
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x18
call fcn.004c495b
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
mov byte [esp + 0x58], 0xb
je 0x40b488
push eax
mov ecx, esi
call fcn.00441980
mov edi, eax
jmp 0x40b48a
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 0x40b51d
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.004e4b01
mov esi, eax
add esp, 0x14
test esi, esi
je 0x40b507
cmp byte [esi + 0x2a8], 0
je 0x40b4e5
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 0x40b507
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 0x40b4a0
mov eax, edi
call fcn.00441a10
push edi
call fcn.004c4986
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.0040f7b0
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 0x40b563
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 0x40b584
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