Function at 0x41ada0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b9f50
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x621d30]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov eax, dword [ebx]
nop
movzx ecx, word [eax]
cmp ecx, 0x3a
jne 0x41adec
sub eax, dword [ebx]
sar eax, 1
mov edi, eax
test edi, edi
jns 0x41adf6
mov eax, str.Incorrect_command_line
call fcn.0041a990
test cx, cx
je 0x41ade2
add eax, 2
jmp 0x41add0
mov ecx, edi
lea esi, [ebp - 0x5c]
mov eax, ebx
call fcn.0041d0c0
lea eax, [edi + 1]
lea esi, [ebp - 0x38]
mov edx, ebx
mov dword [ebp - 4], 0
call fcn.00419a10
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x38]
mov eax, edx
nop
movzx ecx, word [eax]
cmp ecx, 0x3a
jne 0x41ae3c
sub eax, edx
sar eax, 1
mov edi, eax
test edi, edi
jns 0x41ae46
mov eax, str.Incorrect_command_line
call fcn.0041a990
test cx, cx
je 0x41ae32
add eax, 2
jmp 0x41ae20
mov ecx, edi
lea esi, [ebp - 0x50]
lea eax, [ebp - 0x38]
call fcn.0041d0c0
lea eax, [edi + 1]
lea esi, [ebp - 0x44]
lea edx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.00419a10
mov eax, dword [ebp - 0x50]
push 0
push eax
call fcn.004331a0
add esp, 8
mov esi, eax
mov dword [ebp - 0x1c], edx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x5c]
push ecx
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov edi, eax
mov dword [ebp - 0x18], edi
test edi, edi
jne 0x41aea7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x41aea7
mov eax, str.Can_not_open_mapping
call fcn.0041a990
push esi
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
test ebx, ebx
jne 0x41aec8
mov eax, str.MapViewOfFile_error
call fcn.0041a990
mov byte [ebp - 4], 5
cmp word [ebx], 0
je 0x41aedc
mov eax, str.Incorrect_mapping_data
call fcn.0041a990
shr esi, 1
mov dword [ebp - 0x14], esi
lea esi, [ebp - 0x2c]
call fcn.00406460
mov byte [ebp - 4], 6
mov edi, 1
cmp edi, dword [ebp - 0x14]
jae 0x41af34
movzx eax, word [ebx + edi*2]
test ax, ax
jne 0x41af28
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edx
push eax
mov eax, dword [ebp + 0x10]
lea esi, [ebp - 0x2c]
call fcn.0041aab0
mov edx, dword [ebp - 0x2c]
xor ecx, ecx
add esp, 8
mov dword [ebp - 0x28], 0
mov word [edx], cx
inc edi
jmp 0x41aef2
push eax
lea eax, [ebp - 0x2c]
call fcn.0040b500
inc edi
jmp 0x41aef2
cmp dword [ebp - 0x28], 0
je 0x41af44
mov eax, str.data_error
call fcn.0041a990
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00489718
add esp, 4
push ebx
mov dword [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41af70
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x44]
push ecx
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
jne 0x41af91
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41afae
lea eax, [ebp - 0x18]
call fcn.004455f0
test esi, esi
je 0x41afae
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x41afae
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x44]
push edx
call fcn.00489718
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x50]
add esp, 4
push eax
call fcn.00489718
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x38]
add esp, 4
push ecx
call fcn.00489718
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x5c]
add esp, 4
push edx
call fcn.00489718
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret