Function at 0x41084f
Capabilities:
Read file via mapping

Disassembly:
mov eax, 0x425a48
call fcn.00423b10
sub esp, 0x54
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov byte [ebp - 0x11], dl
mov dword [ebp - 0x1c], ecx
mov ecx, dword [edi]
mov dx, 0x3a
mov dword [ebp - 0x10], esp
call fcn.00408303
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jge 0x410883
call fcn.0040f8d4
lea eax, [ebp - 0x60]
push esi
push eax
mov ecx, edi
call fcn.004077fd
inc esi
lea eax, [ebp - 0x3c]
push esi
push eax
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.00407739
mov ecx, dword [ebp - 0x3c]
mov dx, 0x3a
mov byte [ebp - 4], 1
call fcn.00408303
mov esi, eax
cmp esi, ebx
jge 0x4108ba
call fcn.0040f8d4
lea eax, [ebp - 0x54]
push esi
push eax
lea ecx, [ebp - 0x3c]
call fcn.004077fd
inc esi
lea eax, [ebp - 0x48]
push esi
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.00407739
mov ecx, dword [ebp - 0x54]
xor edx, edx
mov byte [ebp - 4], 3
call fcn.00408816
mov esi, eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x18], ebx
lea edx, [ebp - 0x60]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 4
call fcn.0040c5ab
push dword [eax]
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x410914
xor eax, eax
jmp 0x41091a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x30]
cmp eax, ebx
setne byte [ebp + 0xb]
call fcn.00407e81
cmp byte [ebp + 0xb], bl
pop ecx
je 0x410938
mov ecx, str.Can_not_open_mapping
call fcn.0040f8df
push esi
push ebx
push ebx
push 4
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x20], edi
jne 0x410959
mov ecx, str.MapViewOfFile_error
call fcn.0040f8df
cmp word [edi], bx
mov byte [ebp - 4], 5
je 0x41096c
mov ecx, str.Incorrect_mapping_data
call fcn.0040f8df
shr esi, 1
lea ecx, [ebp - 0x30]
mov dword [ebp + 8], esi
call fcn.00402f1e
push 1
mov byte [ebp - 4], 6
pop esi
cmp esi, dword [ebp + 8]
jae 0x4109ba
mov ax, word [edi + esi*2]
cmp ax, bx
jne 0x4109ae
push dword [ebp + 0x10]
mov dl, byte [ebp - 0x11]
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x30]
push dword [ebp + 0xc]
push eax
call fcn.004103b2
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], ebx
mov word [eax], bx
jmp 0x4109b7
push eax
lea ecx, [ebp - 0x30]
call fcn.00405ce0
inc esi
jmp 0x410980
cmp dword [ebp - 0x2c], ebx
je 0x4109c9
mov ecx, str.data_error
call fcn.0040f8df
push dword [ebp - 0x30]
call fcn.00407e81
pop ecx
mov dword [ebp - 4], 4
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 0x18], ebx
je 0x4109ee
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 8], ebx
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 8
call fcn.0040c5ab
push dword [eax]
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventA]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x410a16
xor esi, esi
jmp 0x410a1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push dword [ebp - 0x30]
call fcn.00407e81
cmp esi, ebx
pop ecx
jne 0x410a33
lea ecx, [ebp + 8]
call fcn.00423980
lea ecx, [ebp + 8]
call fcn.00423910
push dword [ebp - 0x48]
call fcn.00407e81
push dword [ebp - 0x54]
call fcn.00407e81
push dword [ebp - 0x3c]
call fcn.00407e81
push dword [ebp - 0x60]
call fcn.00407e81
mov ecx, dword [ebp - 0xc]
add esp, 0x10
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0xc