Function at 0x415070
Capabilities:
Get file size
Hide graphical window
Read file on windows

Disassembly:
sub esp, 0x4fc
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov al, byte [esi + 0x20c]
test al, al
jne 0x4150ad
mov eax, dword [esi + 0x68]
push 0x466d80
push ebx
push 0x181
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x4fc
ret 4
mov edi, dword [esp + 0x510]
push 0
push 0
push 3
push 0
push 0
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
jne 0x4150fa
mov ecx, dword [esi + 0x68]
push 0x46739c
push 0
push 0x181
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
or eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x4fc
ret 4
lea edx, [esp + 0x14]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x20]
push 0x104
push eax
push edi
mov ecx, esi
call fcn.00415320
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
push 0x1d
repne scasb al, byte es:[edi]
not ecx
mov dword [esp + 0x20], ecx
mov ecx, esi
call fcn.00412e20
push 5
lea ecx, [esp + 0x20]
lea edi, [esi + 0x54]
push 4
push ecx
mov ecx, edi
call fcn.00401210
mov edx, dword [esp + 0x1c]
push 5
lea eax, [esp + 0x24]
push edx
push eax
mov ecx, edi
call fcn.00401210
push 5
lea ecx, [esp + 0x128]
push 1
push ecx
mov ecx, edi
call fcn.004012d0
mov al, byte [esp + 0x124]
cmp al, 0xff
jne 0x4151a6
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esi + 0x68]
push 0x46737c
push 0
push 0x181
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4fc
ret 4
cmp al, 0xfd
jne 0x4151d7
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x68]
push 0x46665c
push 0
push 0x181
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x4fc
ret 4
cmp al, 1
jne 0x415303
mov ecx, dword [esi + 0x58]
mov ebp, dword [sym.imp.USER32.dll_ShowWindow]
push 1
push ecx
call ebp
mov edx, dword [esi + 4]
push 0x410
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call ebp
mov eax, dword [esi + 4]
push 0x411
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call ebp
push 5
lea ecx, [esp + 0x14]
push 4
push ecx
mov ecx, edi
call fcn.00401210
mov eax, dword [esp + 0x10]
cmp eax, 0x3e8
jbe 0x4152a0
mov ecx, dword [esp + 0x18]
sub eax, 0x3e8
lea edx, [esp + 0x14]
mov dword [esp + 0x10], eax
push 0
push edx
lea eax, [esp + 0x12c]
push 0x3e8
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 0x14]
push 5
lea eax, [esp + 0x128]
push edx
push eax
mov ecx, edi
call fcn.00401210
mov ecx, dword [esp + 0x14]
xor edx, edx
add ebx, ecx
mov ecx, dword [esi + 0x58]
push 0
lea eax, [ebx + ebx*4]
lea eax, [eax + eax*4]
shl eax, 2
div dword [esp + 0x14]
push eax
push 0x402
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x10]
cmp eax, 0x3e8
ja 0x415230
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x14]
push 0
push edx
push eax
lea eax, [esp + 0x130]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 0x14]
push 5
lea eax, [esp + 0x128]
push edx
push eax
mov ecx, edi
call fcn.00401210
mov ecx, dword [esi + 0x58]
push 0
push ecx
call ebp
mov edx, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x410
push edx
call edi
push 1
push eax
call ebp
mov eax, dword [esi + 4]
push 0x411
push eax
call edi
push 1
push eax
call ebp
mov ebp, dword [esp + 0x18]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x4fc
ret 4