Function at 0x100a79a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x50], 0
jne 0x100a79b6
mov ecx, edi
call fcn.100a9880
test byte [edi + 0x270], 0x80
je 0x100a79cc
cmp dword [edi + 0x54], 0
jne 0x100a79cc
mov ecx, edi
call fcn.100a97a0
mov eax, dword [ebp + 0xc]
cmp eax, 0x3e7
jle 0x100a7c6e
cmp eax, 0x3e8
je 0x100a7a1a
cmp eax, 0x7d0
jne 0x100a7c6e
cmp word [ebp + 0x18], 2
je 0x100a7a21
push dword [ebp + 0x20]
mov eax, dword [edi + 0x44]
push dword [ebp + 0x1c]
push 0xea
push 0xea
push 0x3fa
push eax
mov eax, dword [eax + 0x44]
call eax
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0x24
cmp word [ebp + 0x18], 2
jne 0x100a7a3c
mov eax, dword [ebp + 0x20]
mov ecx, 0x16
pop edi
pop esi
pop ebx
mov word [eax], cx
mov dword [eax + 8], 1
xor eax, eax
pop ebp
ret 0x24
mov ebx, dword [ebp + 0x1c]
mov ecx, dword [ebx + 8]
mov eax, ecx
mov edx, dword [ebx]
add eax, eax
cmp dword [edx + eax*8 - 8], 5
jne 0x100a7a81
mov esi, dword [ebp + 0x20]
mov eax, 0x16
push 0
mov word [esi], ax
mov ecx, dword [ebx + 8]
mov eax, dword [ebx]
add ecx, ecx
push dword [eax + ecx*8 - 0x18]
push 0x111
push dword [edi + 0x50]
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
mov dword [esi + 8], eax
xor eax, eax
pop esi
pop ebx
pop ebp
ret 0x24
add ecx, ecx
cmp dword [edx + ecx*8 - 8], 6
jne 0x100a7c49
mov edi, dword [ebp + 0x20]
push edi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, dword [ebx + 8]
mov eax, dword [ebx]
add ecx, ecx
mov edx, dword [eax + ecx*8 - 0x18]
test edx, edx
je 0x100a7a11
mov eax, dword [eax + ecx*8 - 0x28]
sub eax, 0
je 0x100a7abd
sub eax, 1
jne 0x100a7a11
push 0x101715c0
push edx
call fcn.1014a2b6
mov esi, eax
add esp, 8
test esi, esi
je 0x100a7a11
push 2
mov eax, 8
push 0
push esi
mov word [edi], ax
call fcn.1014a119
push esi
call fcn.10149d5e
push 0
push 0
push esi
mov dword [ebp + 8], eax
call fcn.1014a119
mov eax, dword [ebp + 8]
add esp, 0x1c
cmp eax, 1
jl 0x100a7a11
add eax, 2
push eax
push 0
mov dword [ebp + 0x18], eax
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
push dword [ebp + 0x18]
add edi, 8
push 0
push eax
mov dword [edi], eax
call fcn.10145be0
mov eax, dword [ebp + 8]
push esi
push eax
push 1
push dword [edi]
call fcn.1014a4b0
push esi
call fcn.10149ddf
mov ecx, dword [ebx + 8]
add esp, 0x20
mov eax, dword [ebx]
add ecx, ecx
mov edx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp dword [eax + ecx*8 - 0x38], 1
jne 0x100a7bc9
push 0
push 0
push 0xffffffffffffffff
push dword [edi]
push 0
push 0xfde9
call edx
mov esi, eax
xor ebx, ebx
mov ecx, 2
lea eax, [esi + 1]
mul ecx
seto bl
neg ebx
or ebx, eax
push ebx
call fcn.10143dbb
push ebx
mov edi, eax
push 0
push edi
call fcn.10145be0
mov ebx, dword [ebp + 0x20]
add esp, 0x10
mov eax, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
push edi
push 0xffffffffffffffff
push dword [ebx + 8]
push 0
push 0xfde9
call eax
push dword [ebp + 0x18]
push 0
push dword [ebx + 8]
call fcn.10145be0
add esp, 0xc
push edi
lea edi, [ebx + 8]
push edi
call dword [sym.imp.OLEAUT32.dll_SysAllocStringLen]
mov ebx, dword [ebp + 0x1c]
mov edx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [ebx + 8]
mov eax, dword [ebx]
add ecx, ecx
cmp dword [eax + ecx*8 - 0x38], 2
jne 0x100a7a11
push 0
push 0
push 0xffffffffffffffff
push dword [edi]
push 0
push 0
call edx
mov esi, eax
xor ebx, ebx
mov ecx, 2
lea eax, [esi + 1]
mul ecx
seto bl
neg ebx
or ebx, eax
push ebx
call fcn.10143dbb
push ebx
mov edi, eax
push 0
push edi
call fcn.10145be0
mov eax, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
add esp, 0x10
push esi
mov esi, dword [ebp + 0x20]
push edi
push 0xffffffffffffffff
add esi, 8
push dword [esi]
push 0
push 0
call eax
push dword [ebp + 0x18]
push 0
push dword [esi]
call fcn.10145be0
add esp, 0xc
push edi
push esi
call dword [sym.imp.OLEAUT32.dll_SysAllocStringLen]
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0x24
push dword [ebp + 0x20]
mov eax, dword [edi + 0x44]
push ebx
push 0xe9
push 0xe9
push 0x3fa
push eax
mov eax, dword [eax + 0x44]
call eax
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0x24
sub eax, 0xfa
je 0x100a7a11
sub eax, 0x14
jne 0x100a7c8e
mov eax, dword [ebp + 0x1c]
mov ecx, 1
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov word [eax], cx
pop edi
pop esi
mov eax, 0x80004001
pop ebx
pop ebp
ret 0x24