Function at 0x4073b0
Capabilities:
Check if file exists
Read file via mapping

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437340
push 0x409d24
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x24], 0
push ebx
mov eax, dword [eax + 0xc]
push esi
test eax, eax
push edi
mov dword [ebp - 0x18], esp
je 0x40740f
push eax
call fcn.004073b0
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x40766f
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x64], 0
je 0x40766f
xor eax, eax
jmp 0x4076df
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x1c]
add esi, 0x1c
cmp dword [eax], 0
je 0x407427
mov eax, 1
jmp 0x4076df
push 0
mov dword [eax], 1
mov eax, dword [ebp - 0x1c]
push pe_nt_image_headers32
add eax, 0x50
push 3
push 0
mov dword [ebp - 0x20], eax
push 1
mov eax, dword [esi]
push 0x80000000
add eax, 0x50
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp - 0x20]
cmp eax, 0xffffffff
mov dword [ecx], eax
jne 0x4074d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40748e
push str.File_not_found_in_local_directory_or_search_path.
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.004068d0
add esp, 0xc
mov ecx, dword [esi]
xor eax, eax
mov dword [ecx + 0x48], 1
jmp 0x4076df
cmp eax, 3
jne 0x4074b8
push str.Invalid_path_or_file_name.
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.004068d0
add esp, 0xc
mov ecx, dword [esi]
xor eax, eax
mov dword [ecx + 0x48], 1
jmp 0x4076df
push eax
mov ecx, dword [ebp - 0x1c]
push str.CreateFile___failed___u_.
mov eax, dword [ebp + 8]
push eax
push ecx
call fcn.004068d0
add esp, 0x10
xor eax, eax
jmp 0x4076df
push 0
push 0
push 0
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x407525
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp - 0x1c]
push str.CreateFileMapping___failed___u_.
mov eax, dword [ebp + 8]
push eax
push ecx
call fcn.004068d0
add esp, 0x10
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x20]
xor eax, eax
mov dword [ecx], 0
jmp 0x4076df
mov eax, dword [ebp - 0x1c]
push 0
add eax, 0x54
push 0
push 0
mov ecx, dword [ebp - 0x2c]
push 4
mov dword [ebp - 0x28], eax
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [ebp - 0x28]
test eax, eax
mov dword [ecx], eax
jne 0x407589
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp - 0x1c]
push str.MapViewOfFile___failed___u_.
mov eax, dword [ebp + 8]
push eax
push ecx
call fcn.004068d0
add esp, 0x10
mov ecx, dword [ebp - 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx]
push eax
call esi
mov ecx, dword [ebp - 0x20]
xor eax, eax
mov dword [ecx], 0
jmp 0x4076df
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.00406950
test eax, eax
je 0x407609
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.00406a30
test eax, eax
je 0x407609
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.00406ab0
test eax, eax
je 0x407609
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.00406b80
test eax, eax
je 0x407609
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.00406c50
test eax, eax
je 0x407609
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.00406e50
test eax, eax
je 0x407609
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.004072b0
test eax, eax
je 0x407609
mov dword [ebp - 0x24], 1
jmp 0x407630
mov dword [ebp - 0x24], 0
jmp 0x407630
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx]
push eax
call esi
mov edx, dword [ebp - 0x20]
xor ecx, ecx
mov eax, dword [ebp - 0x28]
mov dword [edx], ecx
mov edx, dword [ebp - 0x1c]
mov dword [eax], ecx
mov dword [edx + 0x58], ecx
mov dword [edx + 0x5c], ecx
mov dword [edx + 0x60], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
push eax
call fcn.00407080
test eax, eax
jne 0x407683
xor eax, eax
jmp 0x4076df
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10], 0xff
jl 0x4076b5
lea esi, [eax + 4]
mov eax, dword [esi]
test eax, eax
je 0x4076a7
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.004067d0
mov dword [esi], 0
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x68], 1
xor eax, eax
jmp 0x4076df
mov eax, dword [ebp + 8]
mov esi, dword [eax + 4]
test esi, esi
je 0x4076dc
xor edi, edi
push esi
mov ecx, dword [ebp - 0x1c]
call fcn.004073b0
test eax, eax
jne 0x4076d6
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x64], edi
jne 0x4076f2
mov esi, dword [esi]
test esi, esi
jne 0x4076c1
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
jmp 0x4076df