Function at 0x40c7e9
Capabilities:
Read file via mapping

Disassembly:
mov eax, 0x434780
call fcn.004336f0
sub esp, 0x34
push ebx
push esi
mov dword [ebp - 0x18], ecx
push edi
push edx
lea ecx, [ebp - 0x28]
call fcn.00402978
mov ecx, dword [ebp - 0x28]
xor ebx, ebx
mov dx, 0x3a
mov dword [ebp - 4], ebx
call fcn.00401f4f
mov esi, eax
cmp esi, ebx
jge 0x40c827
mov esi, dword [str.Incorrect_Map_command]
jmp 0x40c9e8
mov eax, dword [ebp - 0x28]
mov dx, 0x3a
lea ecx, [eax + esi*2 + 2]
call fcn.00401f4f
cmp eax, ebx
jl 0x40c81c
lea edi, [eax + esi + 1]
cmp edi, ebx
jl 0x40c81c
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x40]
lea eax, [eax + edi*2 + 2]
push eax
call fcn.004028e8
cmp edi, dword [ebp - 0x24]
jae 0x40c862
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], edi
mov word [eax + edi*2], bx
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x14]
lea ecx, [eax + esi*2 + 2]
call fcn.0040b963
test al, al
je 0x40c9d7
cmp dword [ebp - 0x14], 2
jb 0x40c9d7
cmp dword [ebp - 0x14], 0x80000000
ja 0x40c9d7
test byte [ebp - 0x14], 1
jne 0x40c9d7
cmp esi, dword [ebp - 0x24]
jae 0x40c8a9
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], esi
mov word [eax + esi*2], bx
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x28]
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
cmp eax, ebx
mov dword [ebp - 0x10], eax
jne 0x40c8df
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x40c8df
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0040ca04
mov esi, str.Can_not_open_mapping
jmp 0x40c9dc
push dword [ebp - 0x14]
push ebx
push ebx
push 4
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
cmp esi, ebx
jne 0x40c90b
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0040ca04
mov esi, str.MapViewOfFile_error
jmp 0x40c9dc
mov dword [ebp - 0x1c], esi
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.004028a5
cmp word [esi], bx
mov byte [ebp - 4], 4
je 0x40c949
push dword [ebp - 0x34]
call fcn.00401a79
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0040ca04
mov esi, str.Unsupported_Map_data
jmp 0x40c9dc
mov eax, dword [ebp - 0x14]
shr eax, 1
cmp eax, 1
jbe 0x40c992
lea edi, [esi + 2]
lea ebx, [eax - 1]
mov ax, word [edi]
test ax, ax
jne 0x40c982
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x34]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040c30e
mov eax, dword [ebp - 0x34]
and dword [ebp - 0x30], 0
and word [eax], 0
jmp 0x40c98b
push eax
lea ecx, [ebp - 0x34]
call fcn.00401089
inc edi
inc edi
dec ebx
jne 0x40c959
xor ebx, ebx
cmp dword [ebp - 0x30], ebx
push dword [ebp - 0x34]
je 0x40c9ba
call fcn.00401a79
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0040ca04
mov esi, str.Map_data_error
jmp 0x40c9dc
call fcn.00401a79
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0040ca04
xor esi, esi
jmp 0x40c9dc
mov esi, str.Unsupported_Map_data_size
and byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.0040ca2c
push dword [ebp - 0x28]
call fcn.00401a79
pop ecx
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc