Function at 0x408c80
Capabilities:
Get disk size
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x47c510
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
mov eax, dword [ecx + 4]
push edi
xor edi, edi
cmp eax, edi
mov dword [esp + 0x18], ecx
je 0x408f29
mov ecx, dword [ecx + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x24], eax
je 0x408f29
push ebx
push ebp
push esi
call fcn.00476002
mov esi, dword [eax + 4]
mov dword [esp + 0x2c], esi
call fcn.004621d7
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
cmp dword [esi + 0xbc], 8
mov dword [esp + 0x5c], edi
jb 0x408d03
mov esi, dword [esi + 0xa8]
jmp 0x408d09
add esi, 0xa8
cmp esi, edi
jne 0x408d11
xor eax, eax
jmp 0x408d1a
push esi
call fcn.00449da9
add esp, 4
push eax
push esi
lea ecx, [esp + 0x28]
call fcn.00403be0
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x54]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
call fcn.004621d7
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x30], eax
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov byte [esp + 0x5c], 1
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
jmp 0x408d70
mov eax, dword [esp + 0x24]
mov esi, dword [eax + 4]
test esi, esi
je 0x408ea5
mov ecx, dword [eax + 8]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
mov ecx, dword [esp + 0x18]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jae 0x408ea5
mov eax, dword [esp + 0x1c]
cmp dword [eax + esi + 0x18], 8
jb 0x408db4
mov esi, dword [eax + esi + 4]
jmp 0x408db8
lea esi, [eax + esi + 4]
push esi
lea ecx, [esp + 0x18]
call fcn.00406210
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
xor esi, esi
cmp ecx, esi
mov byte [esp + 0x5c], 2
jle 0x408e2f
push 0x7c
push eax
call fcn.0044a7a1
add esp, 8
cmp eax, esi
je 0x408e2f
sub eax, dword [esp + 0x14]
sar eax, 1
cmp eax, 0xffffffff
je 0x408e2f
push eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00405220
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x60], 3
call fcn.00403cc0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x5c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408e2f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
push esi
push 0x80
push 3
push esi
push esi
push SysReAllocStringLen
push eax
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
call ebp
lea ecx, [esp + 0x34]
mov esi, eax
push ecx
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edi, [edi + edx + 0x1388]
mov byte [esp + 0x5c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408e8c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
inc ecx
add eax, 0x1c
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
jmp 0x408d70
mov ecx, dword [esp + 0x40]
xor eax, eax
cmp eax, ecx
jb 0x408ec9
ja 0x408eb7
cmp edi, dword [esp + 0x3c]
jbe 0x408ec9
mov ecx, dword [esp + 0x2c]
push 0x134
call fcn.0040e720
xor bl, bl
jmp 0x408ecb
mov bl, 1
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0x5c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408eee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov dword [esp + 0x5c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408f14
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop esi
pop ebp
mov al, bl
pop ebx
pop edi
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret
mov ecx, dword [esp + 0x48]
mov al, byte [esp + 7]
pop edi
mov dword fs:[0], ecx
add esp, 0x50
ret