Function at 0x40df60
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x559f38
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x5be9c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x118], edx
mov dword [ebp - 0x114], ecx
mov eax, dword [ebp - 0x118]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040a590
mov dword [ebp - 4], 0
mov edx, 0x3a
mov ecx, dword [ebp - 0x20]
call fcn.00408f90
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jge 0x40dfea
mov ecx, dword [str.Incorrect_Map_command]
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x7c], edx
mov eax, dword [ebp - 0x7c]
push eax
call fcn.004b0c50
add esp, 4
mov eax, dword [ebp - 0x5c]
jmp 0x40e444
mov ecx, dword [ebp - 0x50]
add ecx, 1
mov dword [ebp - 0x84], ecx
mov edx, dword [ebp - 0x84]
mov eax, dword [ebp - 0x20]
lea ecx, [eax + edx*2]
mov edx, 0x3a
call fcn.00408f90
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0
jge 0x40e021
mov dword [ebp - 0x11c], 0xffffffff
jmp 0x40e030
mov ecx, dword [ebp - 0x84]
add ecx, dword [ebp - 0x80]
mov dword [ebp - 0x11c], ecx
mov edx, dword [ebp - 0x11c]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0
jge 0x40e06e
mov eax, dword [str.Incorrect_Map_command]
mov dword [ebp - 0x60], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x88], ecx
mov edx, dword [ebp - 0x88]
push edx
call fcn.004b0c50
add esp, 4
mov eax, dword [ebp - 0x60]
jmp 0x40e444
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x8c]
lea eax, [edx + ecx*2 + 2]
push eax
lea ecx, [ebp - 0x44]
call fcn.0040a520
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x1c]
jae 0x40e0ab
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], edx
xor eax, eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
mov word [edx + ecx*2], ax
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x20]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 0x90], edx
lea edx, [ebp - 0x30]
mov ecx, dword [ebp - 0x90]
call fcn.0040bf30
movzx eax, al
test eax, eax
je 0x40e0ef
cmp dword [ebp - 0x30], 2
jb 0x40e0ef
cmp dword [ebp - 0x30], 0x80000000
ja 0x40e0ef
mov eax, dword [ebp - 0x30]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
je 0x40e129
mov dword [ebp - 0x64], str.Unsupported_Map_data_size
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.0040e4c0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0xa0], edx
mov eax, dword [ebp - 0xa0]
push eax
call fcn.004b0c50
add esp, 4
mov eax, dword [ebp - 0x64]
jmp 0x40e444
mov ecx, dword [ebp - 0x50]
cmp ecx, dword [ebp - 0x1c]
jae 0x40e143
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x1c], edx
xor eax, eax
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x20]
mov word [edx + ecx*2], ax
mov dword [ebp - 0x34], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xa4], eax
mov ecx, dword [ebp - 0xa4]
push ecx
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x40e17d
mov dword [ebp - 0xa8], 0
jmp 0x40e189
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xa8], eax
cmp dword [ebp - 0xa8], 0
je 0x40e1d8
mov dword [ebp - 0x68], str.Can_not_open_mapping
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.0040e460
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.0040e4c0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0xb8], edx
mov eax, dword [ebp - 0xb8]
push eax
call fcn.004b0c50
add esp, 4
mov eax, dword [ebp - 0x68]
jmp 0x40e444
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0xbc], ecx
mov edx, dword [ebp - 0xbc]
push edx
xor eax, eax
push eax
xor eax, eax
xor edx, edx
mov cl, 0x20
call fcn.004dbfe0
push eax
push 4
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x40e252
mov dword [ebp - 0x6c], str.MapViewOfFile_error
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.0040e460
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.0040e4c0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0xcc], edx
mov eax, dword [ebp - 0xcc]
push eax
call fcn.004b0c50
add esp, 4
mov eax, dword [ebp - 0x6c]
jmp 0x40e444
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x4c], ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.0040a490
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
movzx ecx, word [eax]
test ecx, ecx
je 0x40e2e8
mov dword [ebp - 0x70], str.Unsupported_Map_data
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0xd0], edx
mov eax, dword [ebp - 0xd0]
push eax
call fcn.004b0c50
add esp, 4
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.0040e460
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.0040e4c0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0xe0], edx
mov eax, dword [ebp - 0xe0]
push eax
call fcn.004b0c50
add esp, 4
mov eax, dword [ebp - 0x70]
jmp 0x40e444
mov ecx, dword [ebp - 0x30]
shr ecx, 1
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x54], 1
jmp 0x40e302
mov edx, dword [ebp - 0x54]
add edx, 1
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x54]
cmp eax, dword [ebp - 0x48]
jae 0x40e35c
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x10]
mov ax, word [edx + ecx*2]
mov word [ebp - 0x58], ax
movzx ecx, word [ebp - 0x58]
test ecx, ecx
jne 0x40e34d
movzx edx, byte [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
movzx ecx, byte [ebp + 8]
push ecx
lea edx, [ebp - 0x2c]
mov ecx, dword [ebp - 0x114]
call fcn.0040d750
mov dword [ebp - 0x28], 0
xor edx, edx
mov eax, dword [ebp - 0x2c]
mov word [eax], dx
jmp 0x40e35a
movzx ecx, word [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00404660
jmp 0x40e2f9
xor edx, edx
cmp dword [ebp - 0x28], 0
sete dl
movzx eax, dl
test eax, eax
jne 0x40e3d9
mov dword [ebp - 0x74], str.Map_data_error
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0xec], ecx
mov edx, dword [ebp - 0xec]
push edx
call fcn.004b0c50
add esp, 4
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.0040e460
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.0040e4c0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0xfc], ecx
mov edx, dword [ebp - 0xfc]
push edx
call fcn.004b0c50
add esp, 4
mov eax, dword [ebp - 0x74]
jmp 0x40e444
mov dword [ebp - 0x78], 0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x100], eax
mov ecx, dword [ebp - 0x100]
push ecx
call fcn.004b0c50
add esp, 4
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.0040e460
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.0040e4c0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x110]
push ecx
call fcn.004b0c50
add esp, 4
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0xc