Function at 0x410739
Capabilities:
Read file via mapping

Disassembly:
push pe_nt_image_headers32
mov eax, 0x4174ce
call fcn.00414056
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp dword [edi + 0xe8], ebx
je 0x410773
push 0x336
push 0x41c818
push 0x41c840
call fcn.004115c7
push 1
call fcn.0040b45e
add esp, 0x10
lea esi, [edi + 4]
cmp dword [esi + 0x14], 0x10
jb 0x410780
mov eax, dword [esi]
jmp 0x410782
mov eax, esi
push eax
push str.Loading__s_n
push 3
call fcn.00411620
push dword [edi + 0xe4]
mov eax, dword [edi + 0xe0]
push eax
push str.__file_size___I64u_n
push 4
call fcn.00411620
add esp, 0x1c
cmp dword [esi + 0x14], 0x10
jb 0x4107b5
mov eax, dword [esi]
jmp 0x4107b7
mov eax, esi
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00404944
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 4], ebx
call fcn.0040bce2
pop ecx
test al, al
push ebx
setne byte [ebp - 0xe5]
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x2c]
call fcn.00403933
cmp byte [ebp - 0xe5], bl
je 0x410818
push 0x341
push 0x41c880
push 0x41c8a8
call fcn.004115c7
push 1
call fcn.0040b45e
add esp, 0x10
mov eax, dword [edi + 0xe4]
mov ecx, dword [edi + 0xe0]
mov dword [ebp - 0xfc], ecx
cmp eax, ebx
jb 0x410851
ja 0x410834
cmp ecx, ecx
jbe 0x410851
cmp dword [esi + 0x14], 0x10
jb 0x41083c
mov esi, dword [esi]
push eax
push ecx
push esi
push str.File__s_is_too_large___I64u_bytes_:_unable_to_map_it_into_memory_n
call fcn.0041130e
add esp, 0x10
jmp 0x410a9c
push 9
push 0x41c8c4
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
call fcn.00404698
xor eax, eax
inc eax
cmp dword [0x425368], 2
mov dword [ebp - 4], eax
sbb cl, cl
inc cl
movzx ecx, cl
push ecx
push eax
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0xe4]
call fcn.00408916
push ebx
push 1
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 3
call fcn.00403933
cmp dword [esi + 0x14], 0x10
jb 0x4108ab
mov eax, dword [esi]
jmp 0x4108ad
mov eax, esi
push ebx
push 0x8000080
push 3
push ebx
push 7
push accept
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [ebp - 0xec], eax
cmp eax, 0xffffffff
jne 0x410900
cmp dword [esi + 0x14], 0x10
jb 0x4108d7
mov esi, dword [esi]
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push esi
push 0x41c914
call fcn.0041130e
add esp, 0xc
lea ecx, [ebp - 0xe4]
or dword [ebp - 4], 0xffffffff
call fcn.00409159
jmp 0x410a9c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe4]
call fcn.00409159
push 2
push str.__cfmFlags___08x__n
push 5
call fcn.00411620
push 4
push str.__mapAccess___08x__n
push 5
call fcn.00411620
add esp, 0x18
push 8
push str.Map_time
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
call fcn.00404698
cmp dword [0x425368], 2
lea ecx, [ebp - 0xa4]
sbb al, al
inc al
movzx eax, al
push eax
push 1
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 4], 4
call fcn.00408916
push ebx
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 6
call fcn.00403933
push ebx
push ebx
push ebx
push 2
push ebx
push dword [ebp - 0xec]
call dword [sym.imp.kernel32.dll_CreateFileMappingA]
cmp eax, ebx
jne 0x4109ca
cmp dword [esi + 0x14], 0x10
jb 0x41099e
mov esi, dword [esi]
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push esi
push str.Could_not_create_file_mapping___s_:_error__d_n
call fcn.0041130e
add esp, 0xc
push dword [ebp - 0xec]
call dword [sym.imp.kernel32.dll_CloseHandle]
lea ecx, [ebp - 0xa4]
jmp 0x4108f2
mov dword [ebp - 0xf0], eax
push ebx
push ebx
push ebx
push 4
push eax
mov byte [ebp - 4], 7
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov dword [ebp - 0xf4], eax
cmp eax, ebx
jne 0x410a24
cmp dword [esi + 0x14], 0x10
jb 0x4109f2
mov esi, dword [esi]
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push esi
push str.Could_not_map_view_of_file___s_:_error__d_n
call fcn.0041130e
add esp, 0xc
push dword [ebp - 0xec]
call dword [sym.imp.kernel32.dll_CloseHandle]
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 6
call fcn.0040b269
jmp 0x4109bf
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 6
call fcn.0040b269
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa4]
call fcn.00409159
mov eax, dword [ebp - 0xec]
mov dword [edi + 0x24], eax
mov cl, byte [0x425304]
test cl, cl
je 0x410a59
xor eax, eax
jmp 0x410a6a
cmp dword [esi + 0x14], 0x10
jb 0x410a61
mov esi, dword [esi]
push esi
push eax
call fcn.00415407
pop ecx
pop ecx
mov ecx, dword [ebp - 0xfc]
mov dword [edi + 0x28], eax
mov eax, dword [ebp - 0xf4]
push eax
push ecx
push str.__mapped__u_bytes_at_0x_08x_n
push 4
mov dword [edi + 0xe8], eax
mov dword [edi + 0xec], ecx
call fcn.00411620
push edi
call fcn.00410167
add esp, 0x14
call fcn.004140a0
ret