Function at 0x10011f14
Capabilities:
Read file on windows

Disassembly:
push 0x34
mov eax, 0x100405a2
call fcn.1003efaa
mov dword [ebp - 0x14], edx
mov ebx, ecx
mov dword [ebp - 0x38], ebx
and dword [ebp - 0x30], 0
mov dword [ebp - 4], 1
call fcn.1002d823
push eax
lea ecx, [ebp - 0x10]
call fcn.1003e175
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
push dword [ebp + 8]
call fcn.10027aaa
push dword [ebp - 0x1c]
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
mov ecx, dword [ebp - 0x1c]
mov esi, eax
add ecx, 0xfffffff0
call fcn.1002d9fa
test esi, esi
je 0x1001202b
call fcn.1002d823
push eax
lea ecx, [ebp - 0x18]
call fcn.1003e175
mov byte [ebp - 4], 3
xor ecx, ecx
mov edi, dword [ebp - 0x18]
inc ecx
mov esi, 0x104
mov eax, dword [edi - 8]
sub ecx, dword [edi - 4]
sub eax, esi
or eax, ecx
jge 0x10011fa3
push esi
lea ecx, [ebp - 0x18]
call fcn.1003e175
mov edi, dword [ebp - 0x18]
push esi
push edi
push dword [0x1004c820]
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.1003e175
push edi
lea ecx, [ebp - 0x1c]
call fcn.10027aaa
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.1002714a
mov esi, dword [ebp - 0x10]
xor ecx, ecx
mov eax, dword [ebp + 8]
inc ecx
mov dword [ebp - 0x20], eax
mov edx, 0x104
mov eax, dword [ebp - 0x1c]
sub ecx, dword [esi - 4]
mov dword [ebp - 0x28], eax
mov eax, dword [esi - 8]
sub eax, edx
or eax, ecx
jge 0x10011fff
push edx
lea ecx, [ebp - 0x10]
call fcn.1003e175
mov esi, dword [ebp - 0x10]
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push esi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.1003e175
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.1002d9fa
lea ecx, [edi - 0x10]
call fcn.1002d9fa
jmp 0x10012054
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.10027aaa
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x10]
call fcn.1003e175
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.1002d9fa
mov esi, dword [ebp - 0x10]
and dword [ebp - 0x24], 0
and dword [ebp - 0x20], 0
push ecx
push 0
push 0x80
push 3
push 1
push SysReAllocStringLen
push esi
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 6
call fcn.1003e175
mov edi, eax
test edi, edi
jns 0x100120b9
mov ecx, dword [ebp - 0x14]
push edi
push esi
push 0x100065c8
push 0
push ecx
push 0x100065a8
lea ecx, [ebp - 0x28]
call fcn.1003e175
push eax
call fcn.1000ff0c
add esp, 0x18
push edi
lea ecx, [ebp - 0x2c]
call fcn.1003e175
push 0x10048a68
mov eax, ecx
push eax
call fcn.1003e175
mov edi, dword [ebp - 0x24]
lea eax, [ebp - 0x28]
push 2
xor ecx, ecx
push eax
push ecx
push edi
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
call dword [sym.imp.kernel32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x100120dc
call fcn.1002cf84
push 1
xor ecx, ecx
lea eax, [ebp - 0x3c]
push eax
push ecx
push edi
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
call dword [sym.imp.kernel32.dll_SetFilePointer]
and dword [ebp - 0x28], 0
push 2
pop ecx
push 0
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x28]
push eax
push ecx
push edi
mov dword [ebp - 0x2c], ecx
call dword [sym.imp.kernel32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x10012117
call fcn.1002cf84
mov ecx, dword [ebp - 0x40]
lea eax, [ecx - 2]
shr eax, 1
jne 0x10012126
and dword [ebx], 0
jmp 0x10012142
push eax
push 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov dword [ebx], eax
test eax, eax
jne 0x1001213f
push 0x8007000e
call fcn.1003e175
mov ecx, dword [ebp - 0x40]
and dword [ebp - 0x34], 0
lea eax, [ecx - 2]
push 0
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x30], 1
push ecx
push eax
push dword [ebx]
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x1001216d
call fcn.1002cf84
mov ebx, eax
jmp 0x1001216f
xor ebx, ebx
test ebx, ebx
jns 0x100121d1
lea ecx, [ebp - 0x1c]
call fcn.1002d8da
push esi
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 7
push 0x10006630
push eax
call fcn.1003e175
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.10026eec
mov ecx, dword [ebp - 0x14]
mov edi, eax
push edi
push 0
mov ecx, dword [ecx]
mov esi, dword [ecx + 4]
mov ecx, esi
call dword [0x1004d3bc]
mov ecx, dword [ebp - 0x14]
call esi
mov ecx, dword [ebp - 0x14]
push edi
push 7
mov eax, dword [ecx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1004d3bc]
mov ecx, dword [ebp - 0x14]
call esi
push ebx
jmp 0x100120a4
test edi, edi
je 0x100121dc
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
lea ecx, [esi - 0x10]
call fcn.1002d9fa
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.1002d9fa
mov eax, dword [ebp - 0x38]
call fcn.1003ef84
ret 4