Function at 0x1002dbd4
Capabilities:
Read file on windows

Disassembly:
push 0x30
mov eax, 0x100a01a0
call fcn.10094bba
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], ebx
mov eax, dword [0x100bcf90]
mov esi, 0x100bcf90
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push eax
call fcn.1005f448
push dword [ebp - 0x20]
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
mov edi, eax
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.10084c29
cmp edi, ebx
je 0x1002dcb7
mov eax, dword [0x100bcf90]
mov ecx, esi
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x18], edi
xor ecx, ecx
mov byte [ebp - 4], 2
mov eax, dword [edi - 8]
inc ecx
sub ecx, dword [edi - 4]
mov esi, 0x104
sub eax, esi
or eax, ecx
jge 0x1002dc60
mov eax, esi
lea ecx, [ebp - 0x18]
call fcn.10084a51
mov edi, dword [ebp - 0x18]
push esi
push edi
push dword [0x100c67a0]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
or eax, 0xffffffff
lea esi, [ebp - 0x18]
call fcn.1008481d
push edi
lea eax, [ebp - 0x20]
push eax
call fcn.1005f448
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.100600cb
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push dword [ebp - 0x20]
call fcn.1005ffe7
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.10084c29
lea eax, [edi - 0x10]
call fcn.10084c29
mov esi, 0x100bcf90
jmp 0x1002dcdd
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push eax
call fcn.1005f448
lea eax, [ebp - 0x20]
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.1005f5c3
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.10084c29
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
push ebx
push 0x80
push 3
push 1
push SysReAllocStringLen
mov byte [ebp - 4], 5
push dword [ebp - 0x14]
lea edi, [ebp - 0x1c]
call fcn.1002b057
mov edi, eax
cmp edi, ebx
jge 0x1002dd34
mov esi, dword [ebp + 0x10]
push edi
push dword [ebp - 0x14]
push 0x100059e0
push ebx
call fcn.100266c3
add esp, 0x10
mov dword [ebp - 0x24], 0x1001afac
mov dword [ebp - 0x20], edi
push 0x100aacb8
lea eax, [ebp - 0x24]
push eax
call fcn.1008e427
push 2
push ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
call fcn.1002b0df
push 1
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.1002b0df
mov eax, dword [ebp - 0x34]
add eax, 0xfffffffe
shr eax, 1
jns 0x1002dd7b
push 0x80070057
call fcn.10084b9b
cmp eax, ebx
jne 0x1002ddae
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x34]
push ebx
lea ecx, [ebp - 0x28]
push ecx
add eax, 0xfffffffe
push eax
push dword [ebp - 0x20]
mov dword [ebp - 0x28], ebx
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
jne 0x1002ddc4
call fcn.100846ed
mov edi, eax
jmp 0x1002ddc6
push eax
push ebx
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x1002dd82
push 0x8007000e
jmp 0x1002dd76
xor edi, edi
cmp edi, ebx
jge 0x1002de23
mov eax, dword [0x100bcf90]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [ebp - 4], 7
push dword [ebp - 0x14]
lea eax, [ebp + 8]
push 0x10005a48
push eax
call fcn.10084899
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
add esp, 0xc
push dword [ebp + 8]
mov ecx, esi
push ebx
call dword [eax + 4]
push dword [ebp + 8]
mov eax, dword [esi]
push 7
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 0x3c], 0x1001afac
mov dword [ebp - 0x38], edi
push 0x100aacb8
lea eax, [ebp - 0x3c]
jmp 0x1002dd2e
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp + 8]
push ebx
mov dword [esi], eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp - 0x1c], ebx
je 0x1002de40
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.10084c29
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.10084c29
mov eax, esi
call fcn.10094ca6
ret 0xc