Function at 0x41ee80
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64934e
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x6dc0b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x18], ecx
mov ebx, dword [esi + 4]
xor ecx, ecx
mov edx, 2
mov dword [ebp - 0x14], ebx
lea eax, [ebx + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00545b74
mov ecx, dword [esi + 4]
mov edi, eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
lea ecx, [ecx*2 + 2]
push ecx
push dword [esi]
push edi
call fcn.005e0850
add esp, 0x10
mov dword [ebp - 4], 0
mov esi, edi
movzx eax, word [edi]
cmp eax, 0x3a
je 0x41ef15
nop
test ax, ax
je 0x41f127
movzx eax, word [esi + 2]
add esi, 2
cmp eax, 0x3a
jne 0x41ef00
sub esi, edi
sar esi, 1
js 0x41f127
lea edx, [edi + 2]
movzx ecx, word [edx + esi*2]
lea edx, [edx + esi*2]
mov eax, edx
cmp ecx, 0x3a
je 0x41ef45
test cx, cx
je 0x41f127
movzx ecx, word [eax + 2]
add eax, 2
cmp ecx, 0x3a
jne 0x41ef30
sub eax, edx
sar eax, 1
js 0x41f127
lea edi, [esi + 1]
add edi, eax
js 0x41f127
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x40]
lea eax, [eax + edi*2]
mov dword [ebp - 0x10], eax
add eax, 2
push eax
call fcn.0049f410
cmp edi, ebx
jae 0x41ef80
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov dword [ebp - 0x24], edi
mov word [eax], cx
jmp 0x41ef83
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
lea eax, [eax + esi*2]
cmp word [eax + 2], 0
lea ecx, [eax + 2]
mov dword [ebp - 0x10], eax
je 0x41f0cf
lea edx, [ebp - 0x14]
call fcn.004a0060
mov ecx, dword [ebp - 0x14]
mov ebx, eax
cmp word [ecx], 0
sete cl
test cl, cl
je 0x41f0cf
lea ecx, [ebx - 2]
cmp ecx, 0x7ffffffe
ja 0x41f0cf
test bl, 1
jne 0x41f0cf
cmp esi, edi
jae 0x41efdd
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov dword [ebp - 0x24], esi
mov word [eax], cx
push dword [ebp - 0x28]
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
jne 0x41f00f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x41f00f
lea ecx, [ebp - 0x10]
mov edi, str.Can_not_open_mapping
call fcn.0041f150
jmp 0x41f0d4
push ebx
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
jne 0x41f038
lea ecx, [ebp - 0x10]
mov edi, str.MapViewOfFile_error
call fcn.0041f150
jmp 0x41f0d4
mov dword [ebp - 0x1c], edi
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 6
call fcn.0049f390
mov byte [ebp - 4], 7
cmp word [edi], 0
je 0x41f058
mov edi, str.Unsupported_Map_data
jmp 0x41f0b1
shr ebx, 1
mov esi, 1
cmp ebx, esi
jbe 0x41f0a2
movzx eax, word [edi + esi*2]
test ax, ax
jne 0x41f094
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x34]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041e860
mov eax, dword [ebp - 0x34]
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0x30], 0
mov word [eax], cx
jmp 0x41f09d
push eax
lea ecx, [ebp - 0x34]
call fcn.00403d00
inc esi
cmp esi, ebx
jb 0x41f063
cmp dword [ebp - 0x30], 0
je 0x41f0af
mov edi, str.Map_data_error
jmp 0x41f0b1
xor edi, edi
push dword [ebp - 0x34]
call fcn.00545b61
add esp, 4
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea ecx, [ebp - 0x10]
call fcn.0041f150
jmp 0x41f0d4
mov edi, str.Unsupported_Map_data_size
mov byte [ebp - 4], 0xa
mov ebx, dword [ebp - 0x40]
push ebx
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov esi, eax
test esi, esi
jne 0x41f0f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41f11c
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x41f107
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x41f11c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x41f11c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call fcn.00545b61
add esp, 4
jmp 0x41f12c
mov edi, str.Incorrect_Map_command
push dword [ebp - 0x28]
call fcn.00545b61
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret