Function at 0x10044ff9
Capabilities:
Read file via mapping

Disassembly:
mov eax, 0x1006f860
call fcn.10062ad8
sub esp, 0x4c
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x10], esp
push 0x3a
push dword [edi]
call fcn.1000ee8a
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jge 0x10045025
call fcn.10044320
lea eax, [ebp - 0x58]
push esi
push eax
mov ecx, edi
call fcn.1000e8dc
inc esi
lea eax, [ebp - 0x34]
push esi
push eax
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.1000e80c
push 0x3a
mov byte [ebp - 4], 1
push dword [ebp - 0x34]
call fcn.1000ee8a
mov esi, eax
cmp esi, ebx
jge 0x1004505a
call fcn.10044320
lea eax, [ebp - 0x4c]
push esi
push eax
lea ecx, [ebp - 0x34]
call fcn.1000e8dc
inc esi
lea eax, [ebp - 0x40]
push esi
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.1000e80c
push ebx
mov byte [ebp - 4], 3
push dword [ebp - 0x4c]
call fcn.1000f56f
mov esi, eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.1004522e
push dword [eax]
push ebx
push 4
call dword [sym.imp.KERNEL32.DLL_OpenFileMappingA]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x100450b5
xor eax, eax
jmp 0x100450bb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push dword [ebp - 0x28]
cmp eax, ebx
setne byte [ebp + 0xf]
call fcn.1000f3a7
cmp byte [ebp + 0xf], bl
pop ecx
je 0x100450d9
push str.Can_not_open_mapping
call fcn.1004432c
push esi
push ebx
push ebx
push 4
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x18], edi
jne 0x100450fa
push str.MapViewOfFile_error
call fcn.1004432c
cmp word [edi], bx
mov byte [ebp - 4], 5
je 0x1004510d
push str.Incorrect_mapping_data
call fcn.1004432c
shr esi, 1
push 3
lea ecx, [ebp - 0x28]
mov dword [ebp + 0xc], esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call fcn.10002b44
push 1
mov byte [ebp - 4], 6
pop esi
cmp esi, dword [ebp + 0xc]
jae 0x10045163
mov ax, word [edi + esi*2]
cmp ax, bx
jne 0x10045157
push dword [ebp + 0x14]
lea eax, [ebp - 0x28]
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.10044ce4
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], ebx
mov word [eax], bx
jmp 0x10045160
push eax
lea ecx, [ebp - 0x28]
call fcn.10005d02
inc esi
jmp 0x1004512c
cmp dword [ebp - 0x24], ebx
je 0x10045172
push str.data_error
call fcn.1004432c
push dword [ebp - 0x28]
call fcn.1000f3a7
pop ecx
mov dword [ebp - 4], 4
push edi
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
cmp dword [ebp - 0x14], ebx
je 0x10045197
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [ebp + 0xc], ebx
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.1004522e
push dword [eax]
push ebx
push 2
call dword [sym.imp.KERNEL32.DLL_OpenEventA]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x100451c1
xor esi, esi
jmp 0x100451c9
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
push dword [ebp - 0x28]
call fcn.1000f3a7
cmp esi, ebx
pop ecx
jne 0x100451df
lea eax, [ebp + 0xc]
push eax
call fcn.10062560
lea eax, [ebp + 0xc]
push eax
call fcn.100624c0
push dword [ebp - 0x40]
call fcn.1000f3a7
push dword [ebp - 0x4c]
call fcn.1000f3a7
push dword [ebp - 0x34]
call fcn.1000f3a7
push dword [ebp - 0x58]
call fcn.1000f3a7
mov ecx, dword [ebp - 0xc]
add esp, 0x10
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x10