Function at 0x13247a84
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x16
push 0
push 0
dec ecx
jne 0x13247a8c
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x13248fe2
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 0x38], eax
xor eax, eax
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x15], 0
xor edx, edx
push ebp
push 0x13248f3e
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x7c]
mov edx, 0x13248ff4
call fcn.13144e30
mov eax, dword [ebp - 0x7c]
call fcn.1314a074
test al, al
je 0x13247af0
lea eax, [ebp - 0xc]
mov edx, 0x13249008
call fcn.13144cc0
jmp 0x13247af8
lea eax, [ebp - 0xc]
call fcn.131b42a0
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0xc]
call fcn.131450c8
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x13248f34
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 0x28], eax
xor edx, edx
push ebp
push 0x13248f2d
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [ebp - 0x28], 0x1c
jbe 0x13248f16
push 0
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x2c]
push eax
push 2
push 0
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x13248f16
mov eax, dword [ebp - 0x28]
push eax
push 0
push 0
push 4
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x24], eax
xor edx, edx
push ebp
push 0x13248f0f
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [ebp - 0x24], 0
je 0x13248eef
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_CloseHandle
xor edx, edx
push ebp
push 0x13248ee5
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, 0x1c
call fcn.13142f14
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x28]
sub ebx, 0x1c
mov eax, dword [ebp - 0x24]
cdq
push edx
push eax
mov eax, ebx
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [ebp - 0x34]
mov ecx, 0x1c
call fcn.13143104
mov eax, dword [ebp - 0x34]
cmp dword [eax], 0x532231b
jne 0x13248e40
mov eax, dword [ebp - 0x34]
cmp dword [eax + 4], 0
jbe 0x13248e40
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 4]
push eax
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x13148848]
call fcn.131462b8
add esp, 4
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 4]
mov ebx, dword [ebp - 0x28]
sub ebx, ecx
mov eax, dword [ebp - 0x34]
sub ebx, dword [eax + 8]
mov eax, dword [ebp - 0x34]
sub ebx, dword [eax + 0xc]
mov eax, dword [ebp - 0x34]
sub ebx, dword [eax + 0x10]
mov eax, dword [ebp - 0x34]
sub ebx, dword [eax + 0x14]
mov eax, dword [ebp - 0x34]
sub ebx, dword [eax + 0x18]
sub ebx, 0x1c
mov eax, dword [ebp - 0x24]
cdq
push edx
push eax
mov eax, ebx
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [ebp - 4]
call fcn.13143104
push 0xffb4
mov ecx, dword [0x132ac6e4]
mov dl, 1
mov eax, dword [0x131c67a4]
call fcn.131c6ae8
mov dword [ebp - 0x48], eax
xor eax, eax
push ebp
push 0x13247ce0
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, dword [ebp - 0x48]
call fcn.131c6bd4
mov eax, 0xc8
call fcn.13142f14
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 4]
call fcn.131460fc
mov edx, dword [ebp - 4]
lea eax, [edx + eax - 0xc8]
mov edx, dword [ebp - 0x38]
mov ecx, 0xc8
call fcn.13143104
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x13247ce7
mov eax, dword [ebp - 0x48]
call fcn.13143d08
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x13248eef
push 0
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x13148848]
call fcn.131462b8
add esp, 4
push 0
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x13148848]
call fcn.131462b8
add esp, 4
cmp dword [ebp - 0x38], 0
je 0x13248e90
mov edx, 0xc8
mov eax, dword [ebp - 0x38]
call fcn.13142f30
cmp dword [ebp - 0x34], 0
je 0x13248ea3
mov edx, 0x1c
mov eax, dword [ebp - 0x34]
call fcn.13142f30
cmp dword [ebp - 0x3c], 0
je 0x13248eb6
mov edx, 0x270
mov eax, dword [ebp - 0x3c]
call fcn.13142f30
cmp dword [ebp - 0x30], 0
je 0x13248ec4
lea eax, [ebp - 0x30]
call fcn.131b4284
mov eax, dword [0x132acc20]
cmp dword [eax], 0
je 0x13248ee4
mov eax, dword [0x132acc20]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x132acc20]
call fcn.131b4284
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x13248f16
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x13248f34
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x13248f94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x13248fe9
lea eax, [ebp - 0xa8]
mov edx, 7
call fcn.13144c4c
lea eax, [ebp - 0x88]
mov edx, 4
call fcn.13144c4c
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.13144c4c
lea eax, [ebp - 8]
mov edx, dword [0x13148848]
mov ecx, 2
call fcn.131458e0
ret