Function at 0x12e775f0
Capabilities:
Read file via mapping

Disassembly:
push ecx
mov eax, dword [0x13198f68]
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
mov esi, ecx
je 0x12e77627
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 0x1311f378
push 0x1311e52c
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x1c
cmp dword [esi], ebx
je 0x12e77633
pop esi
xor eax, eax
pop ebx
pop ecx
ret 8
cmp dword [esi + 4], ebx
jne 0x12e77640
pop esi
xor eax, eax
pop ebx
pop ecx
ret 8
cmp dword [esi + 0x144], ebx
je 0x12e77653
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 0x12e77674
cmp eax, ebx
jne 0x12e77674
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 0x12e77720
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.13005d20
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [esi + 0x148], eax
je 0x12e7778f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov ebp, 1
je 0x12e776d1
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 0x12e77799
mov eax, dword [esp + 0x10]
test eax, eax
je 0x12e77715
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 0x12e777b5
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 0x12e7774f
push edi
push eax
push 6
call ebp
test eax, eax
mov dword [esi + 0x148], eax
je 0x12e777a3
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 0x12e77783
mov ecx, dword [esi + 0x148]
push eax
push eax
push eax
push 6
push ecx
call edi
mov ebx, eax
test ebx, ebx
je 0x12e777ad
mov dword [esi + 0x144], 1
jmp 0x12e777b5
mov dword [esp + 0x1c], 1
jmp 0x12e777b5
mov dword [esp + 0x1c], 2
jmp 0x12e777b5
mov dword [esp + 0x1c], 3
jmp 0x12e777b5
mov dword [esp + 0x1c], 4
mov eax, dword [0x13198f68]
pop edi
test eax, eax
pop ebp
je 0x12e777e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esi]
push edx
push eax
push 0x1311f324
push 0x1311e52c
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x18
mov eax, dword [esi + 0x144]
test eax, eax
je 0x12e77883
mov eax, dword [esp + 8]
test eax, eax
jne 0x12e777fe
cmp dword [ebx], 0
jne 0x12e77854
mov ecx, dword [0x13198f68]
test ecx, ecx
je 0x12e77820
mov ecx, dword [ebx]
push ecx
push eax
push 0x1311f2d8
push 0x1311e52c
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 [0x13198f68]
test eax, eax
je 0x12e7789e
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx]
push eax
push ecx
push 0x1311f28c
push 0x1311e52c
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x14
jmp 0x12e7789e
mov eax, dword [esi + 0x148]
test eax, eax
je 0x12e7789e
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, 0x131bb460
call fcn.12e82210
mov eax, dword [0x13198f68]
test eax, eax
je 0x12e778d9
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
push ecx
push edx
push 0x1311f238
push 0x1311e52c
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x14
mov eax, dword [esi + 0x144]
pop esi
pop ebx
pop ecx
ret 8