Function at 0x408920
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0xf4
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
cmp eax, 0xffffffff
je 0x408b70
mov edi, eax
lea eax, [ebp - 0xe0]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
lea eax, [ebp - 0xd9]
mov dword [esp + 8], 5
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_ReadFile]
mov esi, dword [sym.imp.kernel32.dll_SetFilePointer]
sub esp, 0x14
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], edi
call esi
mov eax, dword [ebp - 0xe0]
sub esp, 0x10
cmp eax, 1
jbe 0x408b60
cmp byte [ebp - 0xd9], 0xff
je 0x408bb8
cmp eax, 4
jbe 0x408b60
cmp dword [ebp - 0xd9], 0x74725c7b
je 0x408bf8
cmp dword [ebp - 0xd9], 0xe011cfd0
mov dword [ebp - 0xe4], 1
je 0x408c14
mov eax, 1
mov dword [ebp - 0xd4], edi
mov esi, dword [sym.imp.user32.dll_SendMessageW]
mov word [ebp - 0xb0], ax
lea eax, [ebp - 0xc8]
mov dword [esp + 0xc], eax
mov eax, dword [0x420704]
mov dword [ebp - 0xcc], 0x406a00
mov dword [ebp - 0xc8], 0xbc
mov dword [ebp - 0xc4], 8
mov dword [esp + 8], 0
mov dword [esp + 4], 0x447
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0xe4]
sub esp, 0x10
mov dword [0x410284], eax
call fcn.00407c10
call fcn.00405ff0
mov eax, dword [0x410284]
mov dword [esp], eax
call fcn.00405d60
mov eax, dword [eax*4 + 0x4206f0]
mov dword [esp + 4], eax
mov eax, dword [0x420708]
mov dword [esp], eax
call fcn.00402f40
lea eax, [ebp - 0xd4]
mov dword [esp + 4], 0x449
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xe4]
mov dword [esp + 8], eax
mov eax, dword [0x420704]
mov dword [esp], eax
call esi
sub esp, 0x10
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [0x420704]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.user32.dll_SetFocus]
mov eax, ebx
sub esp, 4
call fcn.00407a70
xor eax, eax
movzx edx, word [ebx + eax]
add eax, 2
mov word [eax + 0x4204de], dx
test dx, dx
jne 0x408b00
mov eax, dword [0x420704]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xb9
mov dword [esp], eax
call esi
mov eax, dword [0x420708]
sub esp, 0x10
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00405b60
call fcn.00407750
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0xe4], 1
jmp 0x408a1a
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 5
mov dword [esp + 0xc], 0x30
sete al
mov dword [esp + 8], 0x412cf8
movzx eax, al
add eax, 0x6ad
mov dword [esp + 4], eax
mov eax, dword [0x420708]
mov dword [esp], eax
call dword [sym.imp.user32.dll_MessageBoxW]
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp byte [ebp - 0xd8], 0xfe
jne 0x4089e7
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 2
mov dword [esp], edi
call esi
mov dword [ebp - 0xe4], 0x11
sub esp, 0x10
jmp 0x408a1a
cmp byte [ebp - 0xd5], 0x66
jne 0x408a00
mov dword [ebp - 0xe4], 2
jmp 0x408a1a
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [0x420708]
mov dword [ebp - 0xc8], 0x28
sub esp, 4
mov dword [ebp - 0xc4], eax
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov dword [ebp - 0xbc], 0x6aa
mov dword [ebp - 0xc0], eax
sub esp, 4
lea eax, [ebp - 0xc8]
mov dword [ebp - 0xb8], 0x412cf8
mov dword [ebp - 0xb4], 0x30
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0
mov dword [esp], eax
call dword [sym.imp.user32.dll_MessageBoxIndirectW]
sub esp, 4
jmp 0x408b4e