Function at 0x408a90
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x54
push ebx
mov ebx, dword [esp + 0x5c]
push ebp
push esi
push 0x64
lea eax, [ebx + 0x58]
push 0
push eax
call sub.msvcrt.dll_memset
mov ecx, dword [esp + 0x74]
add esp, 0xc
xor esi, esi
push esi
push esi
push 3
push esi
push 3
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x408db7
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
lea edi, [ebx + 0x44]
mov esi, eax
call fcn.00465e10
mov eax, dword [edi]
push 0
lea edx, [esp + 0x70]
push edx
push esi
push eax
push ebp
mov dword [esp + 0x80], 0
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push ebp
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edi, dword [edi]
xor ecx, ecx
cmp esi, 0x10
mov dword [ebx + 0xb4], edi
mov dword [ebx + 0xb8], esi
lea eax, [ebx + 0x54]
jb 0x408b3c
test eax, eax
je 0x408b37
mov ecx, dword [edi]
mov dword [eax], ecx
mov edx, dword [edi + 4]
mov dword [eax + 4], edx
mov ecx, dword [edi + 8]
mov dword [eax + 8], ecx
mov edx, dword [edi + 0xc]
mov dword [eax + 0xc], edx
mov ecx, 0x10
lea eax, [ecx + 4]
cmp eax, esi
ja 0x408b45
mov ecx, eax
lea edx, [ecx + 8]
cmp edx, esi
lea eax, [ebx + 0x64]
ja 0x408b61
test eax, eax
je 0x408b5f
mov ebp, dword [edi + ecx]
mov dword [eax], ebp
mov ecx, dword [edi + ecx + 4]
mov dword [eax + 4], ecx
mov ecx, edx
lea eax, [ecx + 4]
cmp eax, esi
ja 0x408b6a
mov ecx, eax
lea eax, [ecx + 4]
cmp eax, esi
ja 0x408b73
mov ecx, eax
lea edx, [ecx + 4]
cmp edx, esi
lea eax, [ebx + 0x70]
ja 0x408b98
test eax, eax
je 0x408b86
mov ecx, dword [edi + ecx]
mov dword [eax], ecx
mov ecx, edx
lea edx, [edi + ecx]
mov dword [ebx + 0x6c], edx
mov eax, dword [eax]
add eax, ecx
cmp eax, esi
ja 0x408b98
mov ecx, eax
lea eax, [ecx + 4]
xor edx, edx
cmp eax, esi
ja 0x408ba6
mov edx, dword [edi + ecx]
mov ecx, eax
mov eax, 0xaaaaaaab
mul edx
shr edx, 3
mov dword [esp + 0x14], 0
je 0x408dab
mov dword [esp + 0x6c], edx
lea edx, [ecx + 4]
xor ebp, ebp
xor eax, eax
cmp edx, esi
ja 0x408bd2
mov ebp, dword [edi + ecx]
mov ecx, edx
lea edx, [ecx + 4]
cmp edx, esi
ja 0x408bde
mov eax, dword [edi + ecx]
mov ecx, edx
lea edx, [ecx + 4]
cmp edx, esi
ja 0x408be7
mov ecx, edx
cmp ebp, 3
jne 0x408bf0
mov dword [esp + 0x14], eax
sub dword [esp + 0x6c], 1
jne 0x408bc2
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x408dab
lea ecx, [eax + 8]
cmp ecx, esi
ja 0x408c0c
mov eax, ecx
lea ecx, [eax + 4]
xor edx, edx
cmp ecx, esi
ja 0x408c1a
mov edx, dword [edi + eax]
mov eax, ecx
cmp edx, 7
mov dword [ebx + 0x80], edx
lea ecx, [eax + 0x1e]
je 0x408c2b
lea ecx, [eax + 0xa]
cmp ecx, esi
ja 0x408c31
mov eax, ecx
lea ecx, [eax + 4]
xor edx, edx
cmp ecx, esi
ja 0x408c3f
mov edx, dword [edi + eax]
mov eax, ecx
lea ecx, [eax + 1]
cmp ecx, esi
ja 0x408c48
mov eax, ecx
lea ecx, [eax + 4]
cmp ecx, esi
ja 0x408c51
mov eax, ecx
sub edx, 5
cmp esi, eax
lea ecx, [eax + 0x10]
lea ebp, [edi + eax]
mov dword [ebx + 0x7c], ecx
mov dword [esp + 0x6c], edx
jbe 0x408c69
sub esi, eax
jmp 0x408c6b
xor esi, esi
cmp esi, edx
jb 0x408da4
mov esi, 0x48d184
mov dword [esp + 0x14], 0
call fcn.00475470
mov eax, dword [0x48d188]
test eax, eax
je 0x408da4
push 0xf0000000
push 0x18
push 0
push 0
lea edx, [esp + 0x24]
push edx
call eax
test eax, eax
je 0x408da4
mov ecx, 8
mov byte [esp + 0x18], cl
mov dword [esp + 0x1c], 0x6610
mov byte [esp + 0x19], 2
mov dword [esp + 0x20], 0x20
lea esi, [ebx + 4]
lea edi, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x14]
mov esi, 0x48d184
mov dword [esp + 0x10], 0
call fcn.00475470
mov eax, dword [0x48d1ac]
test eax, eax
je 0x408da0
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0x2c
lea edx, [esp + 0x28]
push edx
push edi
call eax
mov edi, eax
test edi, edi
je 0x408d78
mov eax, dword [esp + 0x10]
test eax, eax
je 0x408d78
lea ecx, [esp + 0x6c]
push ecx
push ebp
push eax
mov eax, esi
call fcn.004755d0
mov ebx, dword [esp + 0x10]
mov edi, eax
call fcn.00475470
mov eax, dword [0x48d1b0]
test eax, eax
je 0x408d3c
push ebx
call eax
mov eax, dword [esp + 0x6c]
cmp eax, 0x10
jbe 0x408d78
test ebp, ebp
je 0x408d78
mov ecx, dword [esp + 0x68]
mov byte [eax + ebp], 0
mov edx, dword [esp + 0x6c]
mov byte [edx + ebp + 1], 0
mov eax, dword [esp + 0x6c]
mov byte [eax + ebp + 2], 0
mov edx, dword [esp + 0x6c]
add ebp, 0x10
add edx, 0xfffffff0
mov dword [ecx + 0x74], ebp
mov dword [ecx + 0x78], edx
call fcn.00408a20
mov ebx, dword [esp + 0x14]
mov esi, 0x48d184
call fcn.00475470
mov eax, dword [0x48d18c]
test eax, eax
je 0x408d94
push 0
push ebx
call eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
xor edi, edi
jmp 0x408d78
mov dword [ebx + 0x50], 0xffffffec
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x54
ret 8
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8