Function at 0x1002ddf9
Capabilities:
Read file on windows

Disassembly:
push 0x30
mov eax, 0x1009cfb0
call fcn.1009220a
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], ebx
mov eax, dword [0x100b8f90]
mov esi, 0x100b8f90
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.1005e2c8
push dword [ebp - 0x20]
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
mov edi, eax
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.10082afb
cmp edi, ebx
je 0x1002dedc
mov eax, dword [0x100b8f90]
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 0x1002de85
mov eax, esi
lea ecx, [ebp - 0x18]
call fcn.10082950
mov edi, dword [ebp - 0x18]
push esi
push edi
push dword [0x100c2a20]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
or eax, 0xffffffff
lea esi, [ebp - 0x18]
call fcn.10082749
push edi
lea eax, [ebp - 0x20]
push eax
call fcn.1005e2c8
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.1005ee9c
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push dword [ebp - 0x20]
call fcn.1005edc7
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.10082afb
lea eax, [edi - 0x10]
call fcn.10082afb
mov esi, 0x100b8f90
jmp 0x1002df02
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push eax
call fcn.1005e2c8
lea eax, [ebp - 0x20]
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.1005e434
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.10082afb
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.1002b3ee
mov edi, eax
cmp edi, ebx
jge 0x1002df59
mov esi, dword [ebp + 0x10]
push edi
push dword [ebp - 0x14]
push 0x10005a10
push ebx
call fcn.10026c05
add esp, 0x10
mov dword [ebp - 0x24], 0x1001b2f4
mov dword [ebp - 0x20], edi
push 0x100a7388
lea eax, [ebp - 0x24]
push eax
call fcn.1008bda4
push 2
push ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
call fcn.1002b46c
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.1002b46c
mov eax, dword [ebp - 0x34]
add eax, 0xfffffffe
shr eax, 1
jns 0x1002dfa0
push 0x80070057
call fcn.10082a7c
cmp eax, ebx
jne 0x1002dfd3
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 0x1002dfe9
call fcn.10082637
mov edi, eax
jmp 0x1002dfeb
push eax
push ebx
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x1002dfa7
push 0x8007000e
jmp 0x1002df9b
xor edi, edi
cmp edi, ebx
jge 0x1002e048
mov eax, dword [0x100b8f90]
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 0x10005a78
push eax
call fcn.100827bb
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], 0x1001b2f4
mov dword [ebp - 0x38], edi
push 0x100a7388
lea eax, [ebp - 0x3c]
jmp 0x1002df53
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 0x1002e065
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.10082afb
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.10082afb
mov eax, esi
call fcn.100922e2
ret 0xc