Function at 0x1002a8ec
Capabilities:
Read file on windows

Disassembly:
push 0x30
mov eax, 0x1009229f
call fcn.100871aa
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.100580f9
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.1007924a
cmp dword [ebp - 0x18], ebx
je 0x1002a9d1
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 0x1002a97c
mov eax, esi
lea ecx, [ebp - 0x18]
call fcn.10079066
mov edi, dword [ebp - 0x18]
push esi
push edi
push dword [0x100b8448]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
or eax, 0xffffffff
lea esi, [ebp - 0x18]
call fcn.10078e28
push edi
lea eax, [ebp - 0x20]
push eax
call fcn.100580f9
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 4
call fcn.10058d2e
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push dword [ebp - 0x20]
call fcn.10058c46
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.1007924a
lea eax, [edi - 0x10]
call fcn.1007924a
xor esi, esi
inc esi
jmp 0x1002a9f7
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push eax
call fcn.100580f9
lea eax, [ebp - 0x20]
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.10058274
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.1007924a
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.100280e5
mov edi, eax
cmp edi, ebx
jge 0x1002aa4d
mov esi, dword [ebp + 0x10]
push edi
push dword [ebp - 0x14]
push 0x10005f40
push ebx
call fcn.10023a0d
add esp, 0x10
mov dword [ebp - 0x24], 0x100187ac
mov dword [ebp - 0x20], edi
push 0x1009c200
lea eax, [ebp - 0x24]
push eax
call fcn.10081847
push 2
push ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
call fcn.10028171
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.10028171
mov eax, dword [ebp - 0x34]
add eax, 0xfffffffe
shr eax, 1
jns 0x1002aa93
push 0x80070057
call fcn.100791b8
cmp eax, ebx
jne 0x1002aaca
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 0x1002aae2
call fcn.10078cf4
mov edi, eax
jmp 0x1002aae4
push eax
push ebx
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
cmp eax, ebx
jne 0x1002aa9c
push 0x8007000e
jmp 0x1002aa8e
xor edi, edi
cmp edi, ebx
jge 0x1002ab44
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.10078ea6
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], 0x100187ac
mov dword [ebp - 0x38], edi
push 0x1009c200
lea eax, [ebp - 0x3c]
jmp 0x1002aa47
cmp dword [ebp - 0x1c], ebx
je 0x1002ab52
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.1007924a
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.1007924a
mov eax, dword [ebp + 8]
call fcn.10087296
ret 0xc