Function at 0x4088f0
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x10c
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 0x408b20
mov edi, eax
mov dword [esp + 0x10], 0
lea eax, [esp + 0x28]
mov dword [esp + 8], 5
mov dword [esp + 0xc], eax
lea eax, [esp + 0x2f]
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
sub esp, 0x10
mov eax, dword [esp + 0x28]
cmp eax, 1
jbe 0x408b10
cmp byte [esp + 0x2f], 0xff
je 0x408b68
cmp eax, 4
jbe 0x408b10
cmp dword [esp + 0x2f], 0x74725c7b
je 0x408ba0
cmp dword [esp + 0x2f], 0xe011cfd0
mov ebp, 1
je 0x408bb5
mov eax, 0xbc
mov edx, 8
mov dword [esp + 0x34], edi
mov esi, dword [sym.imp.user32.dll_SendMessageW]
mov dword [esp + 0x40], eax
mov eax, 1
mov word [esp + 0x58], ax
lea eax, [esp + 0x40]
mov dword [esp + 0xc], eax
mov eax, dword [0x41c724]
mov dword [esp + 0x44], edx
mov dword [esp + 0x3c], 0x406a80
mov dword [esp + 8], 0
mov dword [esp + 4], 0x447
mov dword [esp], eax
call esi
mov dword [0x40f284], ebp
sub esp, 0x10
call fcn.00407cc0
call fcn.00405ff0
mov eax, dword [0x40f284]
mov dword [esp], eax
call fcn.00405d70
mov eax, dword [eax*4 + 0x41c710]
mov dword [esp + 4], eax
mov eax, dword [0x41c728]
mov dword [esp], eax
call fcn.00402f90
lea eax, [esp + 0x34]
mov dword [esp + 8], ebp
mov dword [esp + 0xc], eax
mov eax, dword [0x41c724]
mov dword [esp + 4], 0x449
mov dword [esp], eax
call esi
sub esp, 0x10
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [0x41c724]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.user32.dll_SetFocus]
mov eax, ebx
sub esp, 4
call fcn.00407b20
xor eax, eax
lea esi, [esi]
lea esi, [esi]
movzx edx, word [ebx + eax]
add eax, 2
mov word [eax + 0x41c4fe], dx
test dx, dx
jne 0x408ab0
mov eax, dword [0x41c724]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xb9
mov dword [esp], eax
call esi
mov eax, dword [0x41c728]
sub esp, 0x10
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00405b70
call fcn.00407810
add esp, 0x10c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebp, 1
jmp 0x4089d7
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 5
mov dword [esp + 0xc], 0x30
mov dword [esp + 8], 0x410d78
sete al
movzx eax, al
add eax, 0x6ad
mov dword [esp + 4], eax
mov eax, dword [0x41c728]
mov dword [esp], eax
call dword [sym.imp.user32.dll_MessageBoxW]
sub esp, 0x10
add esp, 0x10c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp byte [esp + 0x30], 0xfe
jne 0x4089ad
mov dword [esp + 0xc], 0
mov ebp, 0x11
mov dword [esp + 8], 0
mov dword [esp + 4], 2
mov dword [esp], edi
call esi
sub esp, 0x10
jmp 0x4089d7
cmp byte [esp + 0x33], 0x66
mov ebp, 2
jne 0x4089c4
jmp 0x4089d7
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [0x41c728]
sub esp, 4
mov dword [esp + 0x40], 0x28
mov dword [esp], 0
mov dword [esp + 0x44], eax
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0x48], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x4c], 0x6aa
mov dword [esp + 0x50], 0x410d78
mov dword [esp + 0x54], 0x30
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp], eax
call dword [sym.imp.user32.dll_MessageBoxIndirectW]
sub esp, 4
jmp 0x408afe