Function at 0x1002a8cc
Capabilities:
Read file on windows

Disassembly:
push 0x30
mov eax, 0x10091fd9
call fcn.10086e1a
xor ebx, ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
inc esi
mov dword [ebp - 4], esi
mov eax, dword [0x100aee70]
mov edi, 0x100aee70
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push eax
call fcn.1005833e
push dword [ebp - 0x20]
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.10078f0e
cmp dword [ebp - 0x18], ebx
je 0x1002a9b1
mov eax, dword [0x100aee70]
mov ecx, edi
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 3
mov eax, dword [edi - 8]
mov ecx, esi
sub ecx, dword [edi - 4]
mov esi, 0x104
sub eax, esi
or eax, ecx
jge 0x1002a95c
mov eax, esi
lea ecx, [ebp - 0x18]
call fcn.10078d3a
mov edi, dword [ebp - 0x18]
push esi
push edi
push dword [0x100b83a8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
or eax, 0xffffffff
lea esi, [ebp - 0x18]
call fcn.10078afc
push edi
lea eax, [ebp - 0x20]
push eax
call fcn.1005833e
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 4
call fcn.10058f73
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push dword [ebp - 0x20]
call fcn.10058e8b
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.10078f0e
lea eax, [edi - 0x10]
call fcn.10078f0e
xor esi, esi
inc esi
jmp 0x1002a9d7
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push eax
call fcn.1005833e
lea eax, [ebp - 0x20]
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.100584b9
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.10078f0e
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
push ebx
push 0x80
push 3
push esi
push SysReAllocStringLen
mov byte [ebp - 4], 6
push dword [ebp - 0x14]
lea edi, [ebp - 0x1c]
call fcn.1002809d
mov edi, eax
cmp edi, ebx
jge 0x1002aa2d
mov esi, dword [ebp + 0x10]
push edi
push dword [ebp - 0x14]
push 0x10005f40
push ebx
call fcn.100239ad
add esp, 0x10
mov dword [ebp - 0x24], 0x100187cc
mov dword [ebp - 0x20], edi
push 0x1009be00
lea eax, [ebp - 0x24]
push eax
call fcn.100814aa
push 2
push ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
call fcn.10028129
push esi
lea eax, [ebp - 0x30]
push eax
push ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push ebx
mov dword [ebp - 0x34], eax
push 2
lea eax, [ebp - 0x1c]
push eax
call fcn.10028129
mov eax, dword [ebp - 0x34]
add eax, 0xfffffffe
shr eax, 1
jns 0x1002aa73
push 0x80070057
call fcn.10078e8c
cmp eax, ebx
jne 0x1002aaaa
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
push ebx
lea edx, [ebp - 0x2c]
push edx
add eax, 0xfffffffe
push eax
push ecx
push dword [ebp - 0x1c]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
jne 0x1002aac2
call fcn.100789c8
mov edi, eax
jmp 0x1002aac4
push eax
push ebx
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
cmp eax, ebx
jne 0x1002aa7c
push 0x8007000e
jmp 0x1002aa6e
xor edi, edi
cmp edi, ebx
jge 0x1002ab24
mov eax, dword [0x100aee70]
mov ecx, 0x100aee70
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 7
push dword [ebp - 0x14]
lea eax, [ebp - 0x20]
push 0x10005fa8
push eax
call fcn.10078b7a
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
add esp, 0xc
push dword [ebp - 0x20]
mov ecx, esi
push ebx
call dword [eax + 4]
push dword [ebp - 0x20]
mov eax, dword [esi]
push 7
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 0x3c], 0x100187cc
mov dword [ebp - 0x38], edi
push 0x1009be00
lea eax, [ebp - 0x3c]
jmp 0x1002aa27
cmp dword [ebp - 0x1c], ebx
je 0x1002ab32
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.10078f0e
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.10078f0e
mov eax, dword [ebp + 8]
call fcn.10086f06
ret 0xc