Function at 0x12e78340
Capabilities:
Read file via mapping

Disassembly:
mov eax, dword [0x13198f68]
push ebx
xor ebx, ebx
push esi
push edi
mov edi, dword [esp + 0x10]
cmp eax, ebx
mov esi, ecx
je 0x12e78371
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push edi
push ecx
push 0x1311f530
push 0x1311e52c
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x18
cmp dword [esi + 4], ebx
je 0x12e7837e
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
cmp dword [esi + 8], ebx
jne 0x12e7838b
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
cmp dword [esi + 0x148], ebx
je 0x12e7839e
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 0x12e783bb
cmp edi, ebx
jne 0x12e783bb
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 0x12e78466
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.13005d20
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [esi + 0x14c], eax
je 0x12e784d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov ebp, 1
je 0x12e78417
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 0x12e784df
mov eax, dword [esp + 0x18]
test eax, eax
je 0x12e7845b
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 0x12e784fb
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 0x12e78495
push edi
push eax
push 6
call ebp
test eax, eax
mov dword [esi + 0x14c], eax
je 0x12e784e9
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 0x12e784c9
mov ecx, dword [esi + 0x14c]
push eax
push eax
push eax
push 6
push ecx
call edi
mov ebx, eax
test ebx, ebx
je 0x12e784f3
mov dword [esi + 0x148], 1
jmp 0x12e784fb
mov dword [esp + 0x14], 1
jmp 0x12e784fb
mov dword [esp + 0x14], 2
jmp 0x12e784fb
mov dword [esp + 0x14], 3
jmp 0x12e784fb
mov dword [esp + 0x14], 4
mov eax, dword [0x13198f68]
pop ebp
test eax, eax
je 0x12e78529
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esi + 4]
push edx
push eax
push 0x1311f4d8
push 0x1311e52c
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x18
mov eax, dword [esi + 0x148]
test eax, eax
je 0x12e785c9
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x12e78544
cmp dword [ebx], 0
jne 0x12e7859a
mov ecx, dword [0x13198f68]
test ecx, ecx
je 0x12e78566
mov ecx, dword [ebx]
push ecx
push eax
push 0x1311f488
push 0x1311e52c
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 [0x13198f68]
test eax, eax
je 0x12e78609
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx]
push eax
push ecx
push 0x1311f438
push 0x1311e52c
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x14
jmp 0x12e785e4
mov eax, dword [esi + 0x14c]
test eax, eax
je 0x12e785e4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x14c], 0
mov eax, dword [0x13198f68]
test eax, eax
je 0x12e78609
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
push edx
push eax
push 0x1311f3e0
push 0x1311e52c
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x14
mov eax, dword [esi + 0x148]
pop edi
pop esi
pop ebx
ret 8