Function at 0x1002db95
Capabilities:
Read file on windows

Disassembly:
push 0x30
mov eax, 0x100a0210
call fcn.10094b6a
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.1005f361
push dword [ebp - 0x20]
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
mov edi, eax
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.10084b37
cmp edi, ebx
je 0x1002dc78
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 0x1002dc21
mov eax, esi
lea ecx, [ebp - 0x18]
call fcn.1008495f
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.1008472b
push edi
lea eax, [ebp - 0x20]
push eax
call fcn.1005f361
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.1005ffe4
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push dword [ebp - 0x20]
call fcn.1005ff00
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.10084b37
lea eax, [edi - 0x10]
call fcn.10084b37
mov esi, 0x100bcf90
jmp 0x1002dc9e
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push eax
call fcn.1005f361
lea eax, [ebp - 0x20]
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.1005f4dc
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.10084b37
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.1002b029
mov edi, eax
cmp edi, ebx
jge 0x1002dcf5
mov esi, dword [ebp + 0x10]
push edi
push dword [ebp - 0x14]
push 0x100059e0
push ebx
call fcn.10026695
add esp, 0x10
mov dword [ebp - 0x24], 0x1001af84
mov dword [ebp - 0x20], edi
push 0x100aac60
lea eax, [ebp - 0x24]
push eax
call fcn.1008e3d9
push 2
push ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
call fcn.1002b0b1
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.1002b0b1
mov eax, dword [ebp - 0x34]
add eax, 0xfffffffe
shr eax, 1
jns 0x1002dd3c
push 0x80070057
call fcn.10084aa9
cmp eax, ebx
jne 0x1002dd6f
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 0x1002dd85
call fcn.100845fb
mov edi, eax
jmp 0x1002dd87
push eax
push ebx
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x1002dd43
push 0x8007000e
jmp 0x1002dd37
xor edi, edi
cmp edi, ebx
jge 0x1002dde4
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.100847a7
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], 0x1001af84
mov dword [ebp - 0x38], edi
push 0x100aac60
lea eax, [ebp - 0x3c]
jmp 0x1002dcef
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 0x1002de01
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.10084b37
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.10084b37
mov eax, esi
call fcn.10094c56
ret 0xc