Function at 0x40e200
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x5186e9
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5566e0]
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.00405250
lea ebx, [eax + 0x10]
add esp, 4
mov dword [esp + 0x18], ebx
mov byte [esp + 0x58], 1
mov ebp, dword [0x5737f4]
call fcn.00454460
test eax, eax
je 0x40e7f8
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 0x40e2a6
push 0
push 0x64
push esi
push edi
call fcn.004ebca0
mov ecx, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x40]
push ecx
push edx
push eax
call fcn.004f0630
mov dword [esp + 0x24], eax
shrd edi, esi, 0x14
shr esi, 0x14
cmp edi, dword [ebp + 0x44]
jae 0x40e7f4
call fcn.00412cf0
test eax, eax
jne 0x40e690
mov eax, dword [ebp + 0x48]
test eax, eax
jne 0x40e5b5
mov edi, edi
mov edx, dword [esp + 0x60]
push edx
call fcn.0040ef20
test eax, eax
je 0x40e2d0
cmp eax, 1
jne 0x40e690
xor esi, esi
cmp dword [ebp + 0x58], esi
jle 0x40e347
mov edi, edi
test esi, esi
jl 0x40e51e
cmp esi, dword [ebp + 0x58]
jge 0x40e51e
mov eax, dword [ebp + 0x54]
lea eax, [eax + esi*4]
push eax
lea ecx, [esp + 0x1c]
call fcn.00404e60
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 0x40e38b
add esi, 1
cmp esi, dword [ebp + 0x58]
jl 0x40e2f0
call fcn.00445d10
mov esi, dword [eax + 8]
test esi, esi
je 0x40e690
lea ebx, [eax + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x18
call fcn.004c1f9b
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
mov byte [esp + 0x58], 8
je 0x40e523
push eax
mov ecx, esi
call fcn.004457b0
mov esi, eax
jmp 0x40e525
push 0x637
lea eax, [esp + 0x20]
push eax
call fcn.0041c760
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.0041ac70
add esp, 0xc
push 0x52aec4
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.00404e60
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 0x40e401
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 0x40e426
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.0041c760
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x5c], 5
call fcn.00404e60
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 0x40e469
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.0041ac70
add esp, 0xc
push 0x52aec4
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.00404e60
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 0x40e4cb
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 0x40e4f0
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 0x40e690
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40e690
call fcn.004c463b
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 0x40e684
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
push 0
push 0x55908c
push 0x559028
push 0
push eax
call fcn.004e2141
mov edi, eax
add esp, 0x14
test edi, edi
je 0x40e59a
cmp byte [edi + 0x294], 0
je 0x40e57c
mov edx, dword [edi]
mov eax, dword [edx + 0x44]
push 0x40
mov ecx, edi
call eax
mov byte [edi + 0x809], 0
cmp byte [edi + 0x295], 0
je 0x40e59a
mov edx, dword [edi]
mov eax, dword [edx + 0x44]
push 0x80
mov ecx, edi
mov byte [edi + 0x808], 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 0x40e53b
jmp 0x40e684
cmp eax, 1
jne 0x40e690
call fcn.00445d10
mov esi, dword [eax + 8]
test esi, esi
je 0x40e690
lea ebx, [eax + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x18
call fcn.004c1f9b
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
mov byte [esp + 0x58], 9
je 0x40e5fb
push eax
mov ecx, esi
call fcn.004457b0
mov esi, eax
jmp 0x40e5fd
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 0x40e684
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
push 0
push 0x55908c
push 0x559028
push 0
push eax
call fcn.004e2141
mov edi, eax
add esp, 0x14
test edi, edi
je 0x40e66e
cmp byte [edi + 0x294], 0
je 0x40e650
mov edx, dword [edi]
mov eax, dword [edx + 0x44]
push 0x40
mov ecx, edi
call eax
mov byte [edi + 0x809], 0
cmp byte [edi + 0x295], 0
je 0x40e66e
mov edx, dword [edi]
mov eax, dword [edx + 0x44]
push 0x80
mov ecx, edi
mov byte [edi + 0x808], 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 0x40e60f
call fcn.0040b810
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.00404e60
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 0x40e6d3
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 0x40e6ec
push 0x80004005
call fcn.00404150
mov ecx, dword [esp + 0x64]
push ebx
push ecx
call fcn.004e3135
add esp, 8
test eax, eax
setne al
test al, al
je 0x40e7f4
call fcn.00445d10
mov esi, dword [eax + 8]
test esi, esi
je 0x40e7f4
lea ebp, [eax + 0x10]
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x18
call fcn.004c1f9b
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
mov byte [esp + 0x58], 0xb
je 0x40e744
push eax
mov ecx, esi
call fcn.004457b0
mov edi, eax
jmp 0x40e746
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 0x40e7dd
lea esp, [esp]
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
push 0
push 0x55908c
push 0x559028
push 0
push eax
call fcn.004e2141
mov esi, eax
add esp, 0x14
test esi, esi
je 0x40e7c7
cmp byte [esi + 0x294], 0
je 0x40e7a5
mov edx, dword [esi]
mov eax, dword [edx + 0x44]
push 0x40
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x40]
push 0x10
mov ecx, esi
call eax
cmp byte [esi + 0x295], 0
je 0x40e7c7
mov edx, dword [esi]
mov eax, dword [edx + 0x44]
push 0x80
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x40]
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 0x40e760
mov eax, edi
call fcn.00445840
push edi
call fcn.004c1fcb
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x60]
call fcn.004126c0
lea eax, [ebx - 0x10]
mov byte [esp + 0x58], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e822
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 0x40e843
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