Function at 0x407ff0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xd8
mov esi, ecx
sub esp, 0x1c
movaps xmm0, xmmword [0x40d190]
movups xmmword [esp + 4], xmm0
mov dword [esp], ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.kernel32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x408078
mov edi, eax
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x11]
push 0
push eax
push 5
push ecx
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
push 0
push 0
push 0
push edi
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov eax, dword [ebp - 0x1c]
cmp eax, 2
jb 0x4080a6
cmp byte [ebp - 0x11], 0xff
jne 0x4080a6
cmp byte [ebp - 0x10], 0xfe
jne 0x4080a6
push 0
push 0
push 2
push edi
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov ebx, 0x11
jmp 0x408139
mov ecx, dword fs:[0x18]
xor eax, eax
cmp dword [ecx + 0x34], 5
sete al
add eax, 0x6ad
push 0x30
push 0x40d2c2
push eax
push dword [0x419f58]
call dword [sym.imp.user32.dll_MessageBoxW]
jmp 0x4082cc
mov ebx, 1
cmp eax, 5
jb 0x408139
mov eax, 0x74725c7b
xor eax, dword [ebp - 0x11]
movzx ecx, byte [ebp - 0xd]
xor ecx, 0x66
or ecx, eax
je 0x408134
cmp dword [ebp - 0x11], 0xe011cfd0
jne 0x408139
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [0x419f58]
mov dword [ebp - 0xe4], 0x28
mov dword [ebp - 0xe0], eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xd8], 0x6aa
mov dword [ebp - 0xd4], 0x40d2c2
mov dword [ebp - 0xd0], 0x30
xorps xmm0, xmm0
movups xmmword [ebp - 0xcc], xmm0
lea eax, [ebp - 0xe4]
push eax
call dword [sym.imp.user32.dll_MessageBoxIndirectW]
jmp 0x4082cc
mov ebx, 2
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], dbg._stream_in@16
mov dword [ebp - 0xe4], 0xbc
mov dword [ebp - 0xe0], 8
mov word [ebp - 0xcc], 1
lea eax, [ebp - 0xe4]
push eax
push 0
push 0x447
push dword [0x419f78]
call dword [sym.imp.user32.dll_SendMessageW]
mov dword [ebp - 0x18], ebx
mov dword [0x419258], ebx
call dbg.set_bar_states
xorps xmm0, xmm0
movsd qword [ebp - 0x78], xmm0
xorps xmm0, xmm0
movups xmmword [ebp - 0x88], xmm0
movups xmmword [ebp - 0x98], xmm0
movups xmmword [ebp - 0xa8], xmm0
movups xmmword [ebp - 0xb8], xmm0
movups xmmword [ebp - 0xc8], xmm0
movups xmmword [ebp - 0xd8], xmm0
mov dword [ebp - 0xe4], 0x74
mov dword [ebp - 0xe0], 0x20000007
mov dword [ebp - 0xdc], 0
test byte [0x419258], 2
mov ecx, str.Courier_New
mov eax, str.Times_New_Roman
cmove eax, ecx
xor ecx, ecx
nop word cs:[eax + eax]
movzx edx, word [eax + ecx]
mov word [ebp + ecx - 0xca], dx
add ecx, 2
test dx, dx
jne 0x408200
lea eax, [ebp - 0xe4]
push eax
push 0
push 0x444
push dword [0x419f78]
call dword [sym.imp.user32.dll_SendMessageW]
mov ebx, dword [0x419f58]
push dword [0x419258]
call dbg.reg_formatindex
add esp, 4
push dword [eax*4 + 0x419f60]
push ebx
call dbg.target_device
add esp, 8
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x18]
push 0x449
push dword [0x419f78]
call dword [sym.imp.user32.dll_SendMessageW]
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
push dword [0x419f78]
call dword [sym.imp.user32.dll_SetFocus]
mov ecx, esi
call sym._set_caption
xor eax, eax
nop word cs:[eax + eax]
movzx ecx, word [esi + eax]
mov word [eax + 0x41b3c0], cx
add eax, 2
test cx, cx
jne 0x408290
push 0
push 0
push 0xb9
push dword [0x419f78]
call dword [sym.imp.user32.dll_SendMessageW]
push dword [0x419f58]
push esi
call dbg.registry_set_filelist
add esp, 8
call dbg.update_font_list
add esp, 0xd8
pop esi
pop edi
pop ebx
pop ebp
ret