Function at 0x107a901
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 0x107ab23
cmp byte [edi + 0x20], 0
je 0x107a973
mov eax, dword [edi + 0x14]
test eax, eax
mov ebx, 0x1001ea8
mov esi, ebx
je 0x107a932
mov esi, eax
push 0x5c
push esi
call dword [sym.imp.msvcrt.dll_wcsrchr]
test eax, eax
pop ecx
pop ecx
je 0x107a949
sub eax, esi
inc eax
inc eax
sar eax, 1
jmp 0x107a94c
mov eax, dword [edi + 0x18]
push eax
push esi
lea ecx, [edi + 0x30]
call fcn.0101a216
mov ecx, edi
call fcn.0107a651
mov esi, eax
test esi, esi
jl 0x107ab34
mov eax, dword [edi + 0x14]
test eax, eax
jne 0x107a981
mov dword [ebp - 4], ebx
jmp 0x107a984
mov eax, dword [edi + 4]
test eax, eax
mov dword [ebp - 4], 0x1001ea8
je 0x107a984
mov dword [ebp - 4], eax
push 0
push 0x8000080
push 3
push 0
push 1
push 0x80000000
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 8], ebx
jne 0x107a9b3
mov esi, 0x80004005
jmp 0x107ab34
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 0x107a9eb
push 0
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [edi + 0x40]
push eax
push ebx
call esi
test eax, eax
jne 0x107aa15
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x107aa00
call esi
mov esi, eax
jmp 0x107ab25
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x107ab25
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 8], 0xffffffff
lea ebx, [edi + 0x5c]
push ebx
push 0x101282c
push 1
push 0
push 0x101281c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jl 0x107ab34
lea eax, [edi + 0x68]
push eax
push 0x101284c
push 1
push 0
push 0x101283c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jl 0x107ab34
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 0x107ab34
mov ecx, dword [edi + 0x68]
mov eax, dword [ebx]
mov edx, dword [eax]
push 1
push 0x10129b4
push ecx
push eax
call dword [edx + 0xc]
mov esi, eax
test esi, esi
jl 0x107ab34
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 0x107ab34
lea ebx, [edi + 0x64]
push ebx
push 0x101286c
push 1
push 0
push 0x101285c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jl 0x107ab34
mov eax, dword [ebx]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x68]
mov esi, eax
test esi, esi
jl 0x107ab34
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 0x107ab34
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 0x107ab34
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 0x107ab34
mov byte [edi + 0x2c], 1
xor esi, esi
cmp dword [ebp - 8], 0xffffffff
je 0x107ab34
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret