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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4565e8
push 0x44bffc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor eax, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], eax
push eax
push eax
push 0x190
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, eax
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x3c], ebx
lea edi, [ebx*4]
push edi
call fcn.0044c0d4
add esp, 4
mov esi, eax
mov dword [ebp - 0x2c], esi
push esi
push ebx
push 0x191
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
call fcn.0044c0d4
add esp, 4
mov edx, eax
mov dword [ebp - 0x20], edx
mov ecx, edi
xor eax, eax
mov edi, edx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor edi, edi
mov dword [ebp - 0x44], edi
cmp edi, dword [ebp - 0x3c]
jge 0x4084e0
cmp dword [ebp - 0x48], ebx
jne 0x4082b3
lea eax, [ebx*4 + 4]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0044c3bd
add esp, 8
mov dword [ebp - 0x20], eax
inc ebx
mov dword [ebp - 0x50], ebx
lea edi, [esi + edi*4]
mov dword [ebp - 0x34], edi
push 0
mov edx, dword [edi]
push edx
push 0x199
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x4c], eax
mov ecx, eax
and ecx, 0x1f0000
cmp ecx, 0x40000
jae 0x408385
mov ecx, eax
and ecx, 0xff000000
cmp ecx, 0x10000000
je 0x408314
and eax, 0xffff
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x48]
mov dword [edx + ecx*4], eax
inc ecx
mov dword [ebp - 0x48], ecx
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x44], eax
mov edi, eax
jmp 0x40828a
and eax, 0xffff
push eax
call fcn.00432ed0
mov dword [ebp - 0x30], eax
push 0x31
push 0x22e
add eax, 2
push eax
call fcn.00448b60
cmp eax, 2
push 0
push 0
push 0x184
jne 0x40836a
mov eax, dword [0x477450]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x40835c
push eax
call fcn.0044c186
add esp, 4
test esi, esi
je 0x40854d
push esi
jmp 0x408545
mov ecx, dword [0x477450]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x44], eax
mov edi, eax
jmp 0x40828a
mov edx, 0x70000
cmp edx, ecx
sbb eax, eax
inc eax
test eax, eax
je 0x4084d2
push 0x104
call fcn.0044c0d4
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
push esi
mov eax, dword [edi]
push eax
push 0x189
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push 1
push 1
push 3
push 1
push 0x80000000
push esi
call fcn.0044a650
mov edi, eax
mov dword [ebp - 0x54], edi
push esi
call fcn.0044c186
add esp, 4
cmp edi, 0xffffffff
jne 0x4083fa
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x44], eax
mov edi, eax
jmp 0x40828a
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x4c], eax
cmp eax, 0x155
ja 0x408425
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x44], eax
mov edi, eax
jmp 0x40828a
push eax
call fcn.0044c0d4
add esp, 4
mov esi, eax
mov dword [ebp - 0x28], esi
push 0
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x4c]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], esi
lea edi, [esi + 0x155]
mov dword [ebp - 0x40], edi
mov eax, dword [esi + 4]
add eax, ebx
shl eax, 2
mov dword [ebp - 0x4c], eax
lea ecx, [eax*4]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.0044c3bd
add esp, 8
mov dword [ebp - 0x20], eax
add ebx, dword [esi + 4]
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x58]
cmp eax, dword [esi + 4]
jge 0x4084c2
push 3
mov cl, byte [edi + 0x24]
push ecx
mov edx, dword [edi + 0x20]
push edx
call fcn.00432f00
mov dword [ebp - 0x30], eax
test eax, eax
je 0x4084b7
xor ecx, ecx
mov cx, word [eax]
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x20]
mov dword [edx + eax*4], ecx
inc eax
mov dword [ebp - 0x48], eax
add edi, 0x25
mov dword [ebp - 0x40], edi
inc dword [ebp - 0x58]
jmp 0x408487
test esi, esi
je 0x4084cf
push esi
call fcn.0044c186
add esp, 4
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x44], eax
mov edi, eax
jmp 0x40828a
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x48]
mov dword [eax], ecx
test esi, esi
je 0x4084f5
push esi
call fcn.0044c186
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.0044c186
add esp, 4
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8