Function at 0x12e78350
Capabilities:
Read file via mapping

Disassembly:
mov eax, dword [0x13199068]
push ebx
xor ebx, ebx
push esi
push edi
mov edi, dword [esp + 0x10]
cmp eax, ebx
mov esi, ecx
je 0x12e78381
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push edi
push ecx
push str.CRecordMgrEx::InitShareMem_1___d____d____08x_
push str.SHARE
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x18
cmp dword [esi + 4], ebx
je 0x12e7838e
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
cmp dword [esi + 8], ebx
jne 0x12e7839b
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
cmp dword [esi + 0x148], ebx
je 0x12e783ae
pop edi
pop esi
mov eax, 1
pop ebx
ret 8
mov eax, dword [esp + 0x14]
mov dword [esi + 0x144], edi
cmp eax, ebx
jne 0x12e783cb
cmp edi, ebx
jne 0x12e783cb
pop edi
pop esi
mov eax, 1
pop ebx
ret 8
cmp edi, ebx
push ebp
mov dword [esi + 0x148], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
je 0x12e78476
mov eax, dword [esi + 8]
lea edx, [esi + 0x150]
push edx
mov ecx, dword [eax]
add ecx, 0x1c
push ecx
push ebx
push 4
call fcn.13005df0
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [esi + 0x14c], eax
je 0x12e784e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov ebp, 1
je 0x12e78427
mov dword [esp + 0x18], ebp
mov edx, dword [esi + 0x14c]
push 0
push 0
push 0
push 0xf001f
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x12e784ef
mov eax, dword [esp + 0x18]
test eax, eax
je 0x12e7846b
mov eax, dword [esi + 8]
mov edi, ebx
mov ecx, dword [eax]
xor eax, eax
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 + 0x148], ebp
jmp 0x12e7850b
mov ebp, dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
lea edi, [esi + 0x150]
push edi
push ebx
push 0xf001f
call ebp
test eax, eax
mov dword [esi + 0x14c], eax
jne 0x12e784a5
push edi
push eax
push 6
call ebp
test eax, eax
mov dword [esi + 0x14c], eax
je 0x12e784f9
mov eax, dword [esi + 0x14c]
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 0x12e784d9
mov ecx, dword [esi + 0x14c]
push eax
push eax
push eax
push 6
push ecx
call edi
mov ebx, eax
test ebx, ebx
je 0x12e78503
mov dword [esi + 0x148], 1
jmp 0x12e7850b
mov dword [esp + 0x14], 1
jmp 0x12e7850b
mov dword [esp + 0x14], 2
jmp 0x12e7850b
mov dword [esp + 0x14], 3
jmp 0x12e7850b
mov dword [esp + 0x14], 4
mov eax, dword [0x13199068]
pop ebp
test eax, eax
je 0x12e78539
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esi + 4]
push edx
push eax
push str.CRecordMgrEx::InitShareMem_2___d____d__08x_
push str.SHARE
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x18
mov eax, dword [esi + 0x148]
test eax, eax
je 0x12e785d9
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x12e78554
cmp dword [ebx], 0
jne 0x12e785aa
mov ecx, dword [0x13199068]
test ecx, ecx
je 0x12e78576
mov ecx, dword [ebx]
push ecx
push eax
push str.CRecordMgrEx::InitShareMem_3___d____d_
push str.SHARE
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x14
mov edx, dword [esi + 8]
mov eax, dword [edx]
mov dword [ebx], eax
mov ecx, dword [esi + 8]
mov edx, dword [ecx + 4]
mov dword [ebx + 4], edx
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov dword [ebx + 8], ecx
mov edx, dword [esi + 8]
mov eax, dword [edx + 0xc]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi + 8]
mov edx, dword [ecx + 0x10]
mov dword [ebx + 0x10], edx
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x14]
mov dword [ebx + 0x14], ecx
lea edx, [ebx + 0x1c]
mov dword [esi + 8], ebx
mov dword [esi + 0xc], edx
mov eax, dword [0x13199068]
test eax, eax
je 0x12e78619
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx]
push eax
push ecx
push str.CRecordMgrEx::InitShareMem_4___d____d_
push str.SHARE
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x14
jmp 0x12e785f4
mov eax, dword [esi + 0x14c]
test eax, eax
je 0x12e785f4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x14c], 0
mov eax, dword [0x13199068]
test eax, eax
je 0x12e78619
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
push edx
push eax
push str.CRecordMgrEx::InitShareMem_5___08x____08x_
push str.SHARE
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x14
mov eax, dword [esi + 0x148]
pop edi
pop esi
pop ebx
ret 8