Function at 0x409aa0
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push 0x104
call fcn.0044c0d4
push 0x104
mov dword [esp + 0x14], eax
call fcn.0044c0d4
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
add esp, 8
mov ebp, eax
mov eax, dword [0x4773cc]
push 0
push 0
push 0xb
push eax
mov dword [esp + 0x20], ebp
call ebx
mov ecx, dword [0x4773cc]
push 0
mov esi, dword [esp + 0x30]
push esi
push 0x199
push ecx
call ebx
mov dword [esp + 0x18], eax
and eax, 0x1f0000
cmp eax, 0x50000
je 0x409b0f
cmp eax, 0x70000
mov dword [esp + 0x2c], 0
jne 0x409b17
mov dword [esp + 0x2c], 1
cmp eax, 0x50000
je 0x409b25
cmp eax, 0x70000
jne 0x409b32
mov edx, dword [0x4773cc]
push esi
push edx
call fcn.004087a0
mov eax, dword [0x4773cc]
push 0
push esi
push 0x182
push eax
call ebx
mov ecx, dword [0x4773cc]
push 0
push 0
push 0xb
push ecx
call ebx
mov edx, dword [0x4773cc]
push 0
push 0
push 0x18b
push edx
call ebx
mov esi, eax
dec esi
js 0x409b9b
mov eax, dword [0x4773cc]
push 0
push esi
push 0x199
push eax
call ebx
and eax, 0x1f0000
cmp eax, 0x50000
je 0x409b8b
cmp eax, 0x70000
jne 0x409b98
mov ecx, dword [0x4773cc]
push esi
push ecx
call fcn.004087a0
dec esi
jns 0x409b68
mov edx, dword [0x4773cc]
push edi
push 0
push 1
push 0xb
push edx
call ebx
mov eax, dword [0x4773cc]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov edx, dword [0x4773cc]
mov ecx, dword [esp + 0x2c]
push ecx
push 0
push 0x180
push edx
call ebx
mov esi, eax
mov eax, dword [0x4773cc]
push 0x40000
push esi
push 0x19a
push eax
mov dword [esp + 0x30], esi
call ebx
mov ecx, dword [0x4773cc]
push esi
push 1
push 0x185
push ecx
call ebx
mov edx, dword [0x4773cc]
push 0
push esi
push 0x19e
push edx
call ebx
mov edi, dword [0x477328]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
mov edi, ebp
mov edx, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x28]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x45a1cc
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [0x477328]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
mov eax, ecx
mov edx, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x30]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push 3
and ecx, 3
push 1
rep movsb byte es:[edi], byte [esi]
mov edi, 0x45a1cc
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x80000000
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x3c]
mov ecx, ebp
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0044a650
mov esi, eax
cmp esi, 0xffffffff
je 0x409de6
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
call fcn.0044c0d4
add esp, 4
lea ecx, [esp + 0x18]
mov ebp, eax
push 0
push ecx
push edi
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
push 1
mov edx, dword [esp + 0x34]
push 2
push 2
push 0x40000000
push edx
call fcn.0044a650
mov esi, eax
lea eax, [esp + 0x18]
push 0
push eax
push edi
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call fcn.0044c186
mov eax, dword [esp + 0x20]
add esp, 4
and eax, 0xff000000
cmp eax, 0x1000000
jne 0x409dd9
mov ecx, dword [esp + 0x28]
mov edx, dword [0x4773dc]
push ecx
push 0xffffffffffffffff
push 0x1a2
push edx
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x409dd9
mov eax, dword [0x4773dc]
push 0xffffffffffffffff
push 0
push 0x185
push eax
call ebx
mov ecx, dword [0x4773dc]
push esi
push 1
push 0x185
push ecx
call ebx
call fcn.0040b410
mov edx, dword [0x4773cc]
push edx
call fcn.0040af20
mov eax, dword [esp + 0x14]
push eax
call fcn.0044c687
add esp, 4
mov eax, dword [esp + 0x30]
pop edi
test eax, eax
je 0x409e00
mov ecx, dword [esp + 0x1c]
mov edx, dword [0x4773cc]
push ecx
push edx
call fcn.00408870
mov eax, dword [0x4773cc]
push 0
push 1
push 0xb
push eax
call ebx
mov ecx, dword [0x4773cc]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, dword [esp + 0xc]
push edx
call fcn.0044c186
mov eax, dword [esp + 0x14]
push eax
call fcn.0044c186
add esp, 8
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0xc