Function at 0x1228a76b
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1234bae0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x64
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x54]
call fcn.122ebbc0
mov dword [ebp - 4], 0
push 1
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x70]
call fcn.12289bf9
test eax, eax
jne 0x1228a7e8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.122ebd60
jmp 0x1228a9c2
push 0xffffffffffffffff
lea ecx, [ebp - 0x54]
call fcn.122ec4f0
push 0x1b9
push 0x12394d90
call fcn.1228ca90
add esp, 8
mov byte [ebp - 4], 1
push 0
lea ecx, [ebp - 0x54]
call fcn.122ec540
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0x60], ecx
cmp dword [ebp - 0x60], 0
je 0x1228a833
mov edx, dword [ebp - 0x60]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x24], edx
jmp 0x1228a84d
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.122ec520
mov dword [ebp - 0x5c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x58], eax
push 0x1cb
push 0x12394db0
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x5c]
push ecx
call fcn.1228cb39
add esp, 0x10
lea ecx, [ebp - 0x54]
call fcn.122ec2c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.122ebd60
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp + 8]
jne 0x1228a8ad
mov dword [ebp - 0x1c], 1
jmp 0x1228a9c2
cmp dword [ebp + 0xc], 0
je 0x1228a989
cmp dword [ebp + 0x10], 0
jbe 0x1228a989
mov eax, dword [ebp - 0x24]
and eax, 2
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
push ecx
lea edx, [ebp - 0x68]
push edx
mov ecx, dword [ebp - 0x70]
call fcn.1228a530
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x68]
call fcn.12212010
push eax
mov eax, dword [ebp + 0x10]
push eax
push 0
push 4
call fcn.122c8370
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x1228a91d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.122b5d40
jmp 0x1228a9c2
mov dword [ebp - 0x64], 6
mov ecx, dword [ebp + 0x10]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x64]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x1228a954
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.122b5d40
jmp 0x1228a9c2
mov ecx, dword [ebp + 0x10]
push ecx
push 0
mov edx, dword [ebp - 0x14]
push edx
call fcn.122ca640
add esp, 0xc
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.122cb390
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.122b5d40
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x70]
call fcn.1228a5de
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x1228a9b8
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
xor ecx, ecx
test ecx, ecx
jne 0x1228a7a5
cmp dword [ebp - 0x14], 0
je 0x1228a9d9
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x18], 0
je 0x1228a9f0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc