Function at 0x4092f7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0x48], ecx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x409841
cmp dword [ebp - 4], 0xffffffff
je 0x409841
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 0
lea ecx, [ebp - 8]
push ecx
push 4
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [ebp - 8]
push ecx
push 4
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0xc], 1
jne 0x4093b5
push 0
lea ecx, [ebp - 8]
push ecx
push 4
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], 0
je 0x4093b5
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
shl eax, 2
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x18]
mov dword [ecx + 0x10], edx
push 0
lea eax, [ebp - 8]
push eax
push 4
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0xc], 2
jne 0x409411
push 0
lea eax, [ebp - 8]
push eax
push 4
mov ecx, dword [ebp + 0xc]
add ecx, 4
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp + 0xc]
cmp dword [eax + 4], 0
je 0x409411
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
shl edx, 2
push edx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 0x14], ecx
push 0
lea edx, [ebp - 8]
push edx
push 4
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0xc], 3
jne 0x40946d
push 0
lea edx, [ebp - 8]
push edx
push 4
mov eax, dword [ebp + 0xc]
add eax, 8
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp + 0xc]
cmp dword [edx + 8], 0
je 0x40946d
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
shl ecx, 2
push ecx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x20], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x20]
mov dword [edx + 0x18], eax
push 0
lea ecx, [ebp - 8]
push ecx
push 4
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0xc], 4
jne 0x4094c9
push 0
lea ecx, [ebp - 8]
push ecx
push 4
mov edx, dword [ebp + 0xc]
add edx, 0xc
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0xc], 0
je 0x4094c9
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
shl eax, 2
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x24]
mov dword [ecx + 0x1c], edx
push 0
lea eax, [ebp - 8]
push eax
push 4
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [ebp - 8]
push eax
push 4
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], 0
jmp 0x40950e
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x14]
cmp edx, dword [ecx]
jge 0x4095ca
push 0
lea eax, [ebp - 8]
push eax
push 4
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0xc], 0
je 0x40959a
mov eax, dword [ebp - 0xc]
add eax, 1
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x10]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov dword [edx + eax*4], ecx
mov edx, dword [ebp - 0xc]
add edx, 1
push edx
push 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp - 0x14]
mov eax, dword [ecx + edx*4]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp - 0x14]
mov eax, dword [ecx + edx*4]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x4095c5
push 1
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x10]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x2c]
mov dword [eax + ecx*4], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp - 0x14]
mov eax, dword [ecx + edx*4]
mov byte [eax], 0
jmp 0x409505
mov dword [ebp - 0x14], 0
jmp 0x4095dc
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
cmp eax, dword [edx + 4]
jge 0x409699
push 0
lea ecx, [ebp - 8]
push ecx
push 4
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0xc], 0
je 0x409669
mov ecx, dword [ebp - 0xc]
add ecx, 1
push ecx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x30], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x14]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x30]
mov dword [eax + ecx*4], edx
mov eax, dword [ebp - 0xc]
add eax, 1
push eax
push 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x14]
mov eax, dword [ebp - 0x14]
mov ecx, dword [edx + eax*4]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x14]
mov eax, dword [ebp - 0x14]
mov ecx, dword [edx + eax*4]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x409694
push 1
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x14]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x34]
mov dword [ecx + edx*4], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x14]
mov eax, dword [ebp - 0x14]
mov ecx, dword [edx + eax*4]
mov byte [ecx], 0
jmp 0x4095d3
mov dword [ebp - 0x14], 0
jmp 0x4096ab
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [eax + 8]
jge 0x409768
push 0
lea edx, [ebp - 8]
push edx
push 4
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0xc], 0
je 0x409738
mov edx, dword [ebp - 0xc]
add edx, 1
push edx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x18]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x38]
mov dword [ecx + edx*4], eax
mov ecx, dword [ebp - 0xc]
add ecx, 1
push ecx
push 0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x18]
mov ecx, dword [ebp - 0x14]
mov edx, dword [eax + ecx*4]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x18]
mov ecx, dword [ebp - 0x14]
mov edx, dword [eax + ecx*4]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x409763
push 1
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x18]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x3c]
mov dword [edx + eax*4], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x18]
mov ecx, dword [ebp - 0x14]
mov edx, dword [eax + ecx*4]
mov byte [edx], 0
jmp 0x4096a2
mov dword [ebp - 0x14], 0
jmp 0x40977a
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x14]
cmp edx, dword [ecx + 0xc]
jge 0x409837
push 0
lea eax, [ebp - 8]
push eax
push 4
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0xc], 0
je 0x409807
mov eax, dword [ebp - 0xc]
add eax, 1
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x1c]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x40]
mov dword [edx + eax*4], ecx
mov edx, dword [ebp - 0xc]
add edx, 1
push edx
push 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x1c]
mov edx, dword [ebp - 0x14]
mov eax, dword [ecx + edx*4]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x1c]
mov edx, dword [ebp - 0x14]
mov eax, dword [ecx + edx*4]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x409832
push 1
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x44], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x1c]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x44]
mov dword [eax + ecx*4], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x1c]
mov edx, dword [ebp - 0x14]
mov eax, dword [ecx + edx*4]
mov byte [eax], 0
jmp 0x409771
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret 8