Function at 0x12e77600
Capabilities:
Read file via mapping

Disassembly:
push ecx
mov eax, dword [0x13199068]
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
mov esi, ecx
je 0x12e77637
mov eax, dword [esi + 0x144]
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
push str.CRecordMgr::InitShareMem_1___d____d____08x____d_
push str.SHARE
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x1c
cmp dword [esi], ebx
je 0x12e77643
pop esi
xor eax, eax
pop ebx
pop ecx
ret 8
cmp dword [esi + 4], ebx
jne 0x12e77650
pop esi
xor eax, eax
pop ebx
pop ecx
ret 8
cmp dword [esi + 0x144], ebx
je 0x12e77663
pop esi
mov eax, 1
pop ebx
pop ecx
ret 8
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cmp ecx, ebx
mov dword [esi + 0x140], eax
jne 0x12e77684
cmp eax, ebx
jne 0x12e77684
pop esi
mov eax, 1
pop ebx
pop ecx
ret 8
push ebp
cmp eax, ebx
push edi
mov dword [esi + 0x144], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], ebx
je 0x12e77730
mov edx, dword [esi + 4]
lea ecx, [esi + 0x14c]
push ecx
mov eax, dword [edx]
add eax, 0x1c
push eax
push ebx
push 4
call fcn.13005df0
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [esi + 0x148], eax
je 0x12e7779f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov ebp, 1
je 0x12e776e1
mov dword [esp + 0x10], ebp
mov ecx, dword [esi + 0x148]
push 0
push 0
push 0
push 0xf001f
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x12e777a9
mov eax, dword [esp + 0x10]
test eax, eax
je 0x12e77725
mov edx, dword [esi + 4]
xor eax, eax
mov edi, ebx
mov ecx, dword [edx]
add ecx, 0x1c
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov dword [esi + 0x144], ebp
jmp 0x12e777c5
mov ebp, dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
lea edi, [esi + 0x14c]
push edi
push ebx
push 0xf001f
call ebp
test eax, eax
mov dword [esi + 0x148], eax
jne 0x12e7775f
push edi
push eax
push 6
call ebp
test eax, eax
mov dword [esi + 0x148], eax
je 0x12e777b3
mov eax, dword [esi + 0x148]
mov edi, dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push 0
push 0
push 0
push 0xf001f
push eax
call edi
mov ebx, eax
test ebx, ebx
jne 0x12e77793
mov ecx, dword [esi + 0x148]
push eax
push eax
push eax
push 6
push ecx
call edi
mov ebx, eax
test ebx, ebx
je 0x12e777bd
mov dword [esi + 0x144], 1
jmp 0x12e777c5
mov dword [esp + 0x1c], 1
jmp 0x12e777c5
mov dword [esp + 0x1c], 2
jmp 0x12e777c5
mov dword [esp + 0x1c], 3
jmp 0x12e777c5
mov dword [esp + 0x1c], 4
mov eax, dword [0x13199068]
pop edi
test eax, eax
pop ebp
je 0x12e777f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esi]
push edx
push eax
push str.CRecordMgr::InitShareMem_2___d____d__08x_
push str.SHARE
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x18
mov eax, dword [esi + 0x144]
test eax, eax
je 0x12e77893
mov eax, dword [esp + 8]
test eax, eax
jne 0x12e7780e
cmp dword [ebx], 0
jne 0x12e77864
mov ecx, dword [0x13199068]
test ecx, ecx
je 0x12e77830
mov ecx, dword [ebx]
push ecx
push eax
push str.CRecordMgr::InitShareMem_3___d____d_
push str.SHARE
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x14
mov edx, dword [esi + 4]
mov eax, dword [edx]
mov dword [ebx], eax
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 4]
mov dword [ebx + 4], edx
mov eax, dword [esi + 4]
mov ecx, dword [eax + 8]
mov dword [ebx + 8], ecx
mov edx, dword [esi + 4]
mov eax, dword [edx + 0xc]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 0x10]
mov dword [ebx + 0x10], edx
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x14]
mov dword [ebx + 0x14], ecx
lea edx, [ebx + 0x1c]
mov dword [esi + 4], ebx
mov dword [esi + 8], edx
mov eax, dword [0x13199068]
test eax, eax
je 0x12e778ae
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx]
push eax
push ecx
push str.CRecordMgr::InitShareMem_4___d____d_
push str.SHARE
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x14
jmp 0x12e778ae
mov eax, dword [esi + 0x148]
test eax, eax
je 0x12e778ae
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x148], 0
mov edx, dword [esi + 0x144]
mov eax, dword [esp + 0x10]
push edx
push eax
mov ecx, 0x131bb560
call fcn.12e82220
mov eax, dword [0x13199068]
test eax, eax
je 0x12e778e9
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
push ecx
push edx
push str.CRecordMgr::InitShareMem_5___08x____08x_
push str.SHARE
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x14
mov eax, dword [esi + 0x144]
pop esi
pop ebx
pop ecx
ret 8