Function at 0x107a90c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
or dword [ebp - 8], 0xffffffff
push ebx
push esi
push edi
mov edi, ecx
cmp byte [edi + 0x2c], 0
jne 0x107ab2e
cmp byte [edi + 0x20], 0
je 0x107a97e
mov eax, dword [edi + 0x14]
test eax, eax
mov ebx, 0x1001eb0
mov esi, ebx
je 0x107a93d
mov esi, eax
push 0x5c
push esi
call dword [sym.imp.msvcrt.dll_wcsrchr]
test eax, eax
pop ecx
pop ecx
je 0x107a954
sub eax, esi
inc eax
inc eax
sar eax, 1
jmp 0x107a957
mov eax, dword [edi + 0x18]
push eax
push esi
lea ecx, [edi + 0x30]
call fcn.0101a274
mov ecx, edi
call fcn.0107a65c
mov esi, eax
test esi, esi
jl 0x107ab3f
mov eax, dword [edi + 0x14]
test eax, eax
jne 0x107a98c
mov dword [ebp - 4], ebx
jmp 0x107a98f
mov eax, dword [edi + 4]
test eax, eax
mov dword [ebp - 4], 0x1001eb0
je 0x107a98f
mov dword [ebp - 4], eax
push 0
push 0x8000080
push 3
push 0
push 1
push SysReAllocString
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 8], ebx
jne 0x107a9be
mov esi, 0x80004005
jmp 0x107ab3f
xor esi, esi
push esi
push esi
push 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push ebx
call esi
test eax, eax
je 0x107a9f6
push 0
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [edi + 0x40]
push eax
push ebx
call esi
test eax, eax
jne 0x107aa20
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x107aa0b
call esi
mov esi, eax
jmp 0x107ab30
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x107ab30
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 8], 0xffffffff
lea ebx, [edi + 0x5c]
push ebx
push 0x101289c
push 1
push 0
push 0x101288c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jl 0x107ab3f
lea eax, [edi + 0x68]
push eax
push 0x10128bc
push 1
push 0
push 0x10128ac
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jl 0x107ab3f
mov eax, dword [edi + 0x68]
mov ecx, dword [eax]
push 0
push dword [ebp - 4]
push 0
push eax
call dword [ecx + 0xc]
mov esi, eax
test esi, esi
jl 0x107ab3f
mov ecx, dword [edi + 0x68]
mov eax, dword [ebx]
mov edx, dword [eax]
push 1
push 0x1012a24
push ecx
push eax
call dword [edx + 0xc]
mov esi, eax
test esi, esi
jl 0x107ab3f
mov ebx, dword [ebx]
mov eax, dword [ebx]
lea ecx, [edi + 0x60]
push ecx
push ebx
call dword [eax + 0x1c]
mov esi, eax
test esi, esi
jl 0x107ab3f
lea ebx, [edi + 0x64]
push ebx
push 0x10128dc
push 1
push 0
push 0x10128cc
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jl 0x107ab3f
mov eax, dword [ebx]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x68]
mov esi, eax
test esi, esi
jl 0x107ab3f
mov eax, dword [ebx]
mov ecx, dword [eax]
push 1
push 0
push 1
push eax
call dword [ecx + 0x18]
mov esi, eax
test esi, esi
jl 0x107ab3f
mov eax, dword [ebx]
mov ecx, dword [eax]
push 1
push 0
push 0x1f8
push eax
call dword [ecx + 0x18]
mov esi, eax
test esi, esi
jl 0x107ab3f
mov ebx, dword [ebx]
mov eax, dword [ebx]
push 1
push 0
push 0x1f6
push ebx
call dword [eax + 0x18]
mov esi, eax
test esi, esi
jl 0x107ab3f
mov byte [edi + 0x2c], 1
xor esi, esi
cmp dword [ebp - 8], 0xffffffff
je 0x107ab3f
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret