Function at 0x4091e0
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x8a0
push ebx
push ebp
push esi
push edi
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0xb0]
lea edx, [esp + 0x24]
rep stosd dword es:[edi], eax
mov eax, dword [0x4160dc]
mov edi, dword [esp + 0x8b4]
xor esi, esi
lea ecx, [esp + 0xb0]
push edx
mov dword [esp + 0x5c], 0x81004
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x44], ecx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x34], 0x4131c8
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], 0x413194
mov dword [esp + 0x70], esi
mov dword [esp + 0x28], 0x4c
mov word [esp + 0x62], si
mov word [esp + 0x60], si
mov dword [esp + 0x40], 1
mov dword [esp + 0x3c], esi
mov dword [esp + 0x48], 0x400
mov dword [esp + 0x50], esi
call dword [sym.imp.comdlg32.dll_GetOpenFileNameW]
push esi
push 0x80
push 3
push esi
push 1
lea eax, [esp + 0xc4]
push Ordinal_1
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
push esi
cmp ebx, esi
je 0x409343
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x24]
push 4
push edx
push ebx
call ebp
test eax, eax
je 0x40933b
cmp dword [esp + 0x1c], 0x5a435052
je 0x4092f4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0x41318c
push 0x413178
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8a0
ret
lea eax, [esp + 0x10]
push esi
push eax
lea ecx, [esp + 0x28]
push 4
push ecx
push ebx
call ebp
test eax, eax
je 0x40933b
cmp dword [esp + 0x20], 1
jne 0x40943a
lea edx, [esp + 0x10]
push esi
push edx
lea eax, [esp + 0x20]
push 4
push eax
push ebx
call ebp
test eax, eax
je 0x40933b
lea ecx, [esp + 0x10]
push esi
push ecx
push 0x14
push 0x416080
push ebx
call ebp
test eax, eax
jne 0x40935f
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0x41318c
push 0x413164
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8a0
ret
mov edx, dword [0x412130]
push edx
call fcn.00408cf0
mov eax, dword [0x412130]
push esi
push eax
call fcn.00408d20
mov dword [0x4160ec], eax
mov eax, dword [esp + 0x24]
add esp, 0xc
cmp eax, esi
mov dword [esp + 0x14], esi
jbe 0x4093e3
jmp 0x40938f
xor esi, esi
lea ecx, [esp + 0x10]
push esi
push ecx
lea edx, [esp + 0x78]
push 0x40
push edx
push ebx
call ebp
test eax, eax
je 0x409407
mov eax, dword [0x4160ec]
sub esp, 0x40
mov ecx, 0x10
lea esi, [esp + 0xb0]
mov edi, esp
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00408cb0
mov ecx, dword [esp + 0x5c]
mov edi, dword [esp + 0x8f8]
mov dword [0x4160ec], eax
mov eax, dword [esp + 0x58]
add esp, 0x44
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jb 0x40938d
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0x41315c
push 0x41314c
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8a0
ret
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x412130]
push ecx
call fcn.00408cf0
add esp, 4
push esi
push 0x41318c
push 0x413164
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8a0
ret
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0x41318c
push 0x413138
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8a0
ret