Function at 0x10026f61
Capabilities:
Check if file exists

Disassembly:
push 0x38
mov eax, 0x1017beff
call fcn.10145d80
mov esi, ecx
mov dword [ebp - 0x24], esi
xor edi, edi
mov dword [ebp - 0x14], edi
lea eax, [esi + 0xc]
xor ebx, ebx
inc ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x24], edi
jne 0x10027336
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
call fcn.10007ade
push 0x2d
push 0x5c
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.1002655d
push 0x101a2d34
lea ecx, [ebp - 0x28]
call fcn.1001107f
push dword [ebp - 0x28]
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp eax, edi
mov dword [esi + 0x24], eax
je 0x1002732e
mov dword [ebp - 0x10], edi
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp + 0x10], esp
push eax
mov byte [ebp - 4], 3
call fcn.10007ade
mov ecx, esi
call fcn.10025c75
cmp eax, edi
je 0x10027311
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1002714b
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call fcn.10126d24
test eax, eax
pop ecx
pop ecx
jne 0x1002714b
cmp dword [ebp - 0x10], edi
je 0x1002714b
push 0x101a2c54
lea ecx, [ebp - 0x1c]
call fcn.10005f82
push 0x101a2d30
lea ecx, [ebp - 0x1c]
call fcn.1002612e
push dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
call fcn.10014a82
mov dword [ebp - 0x2c], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
lea edx, [ebp - 0x2c]
push edx
push dword [ebp - 0x1c]
mov byte [ebp - 4], 5
push eax
call dword [ecx + 0x94]
cmp dword [ebp - 0x2c], edi
je 0x10027078
mov dword [ebp - 0x18], ebx
jmp 0x10027128
push dword [ebp + 0xc]
lea ecx, [ebp - 0x30]
call fcn.10005f82
mov dword [ebp - 0x20], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
push eax
mov byte [ebp - 4], 7
call dword [ecx + 0xb4]
push edi
push dword [ebp - 0x30]
push dword [ebp - 0x20]
call fcn.10126e98
add esp, 0xc
test eax, eax
jne 0x100270ea
push dword [ebp + 8]
lea ecx, [ebp - 0x44]
mov word [ebp - 0x44], di
call fcn.10014b08
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x44]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
mov byte [ebp - 4], 8
mov dword [ebp - 0x14], ebx
movsd dword es:[edi], dword [esi]
call dword [ecx + pe_nt_image_headers32]
mov esi, dword [ebp - 0x24]
xor ebx, ebx
inc ebx
xor edi, edi
test eax, eax
mov byte [ebp + 0x13], bl
je 0x100270ee
mov byte [ebp + 0x13], 0
test byte [ebp - 0x14], 1
mov dword [ebp - 4], 7
je 0x10027105
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp byte [ebp + 0x13], 0
je 0x1002710e
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp - 0x20]
cmp eax, edi
mov byte [ebp - 4], 6
je 0x1002711f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x30]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x2c]
cmp eax, edi
mov byte [ebp - 4], 4
je 0x10027139
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x1c]
mov byte [ebp - 4], 3
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x100272d9
lea eax, [ebp - 0x10]
push eax
push 0x101a05bc
push ebx
push edi
push 0x101bef38
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x100272f6
cmp dword [ebp - 0x10], edi
je 0x100272f6
mov dword [ebp - 0x20], edi
mov esi, dword [ebp - 0x10]
push str.version1.0_encodinggbk
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 9
call fcn.10005f82
mov ebx, eax
push 0x101a2cec
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0xa
call fcn.10005f82
mov ebx, dword [ebx]
mov eax, dword [eax]
mov ecx, dword [esi]
lea edx, [ebp - 0x20]
push edx
push ebx
push eax
push esi
mov byte [ebp - 4], 0xb
call dword [ecx + 0xd0]
push dword [ebp + 0x10]
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call ebx
push dword [ebp - 0x30]
mov byte [ebp - 4], 9
call ebx
cmp dword [ebp - 0x20], edi
je 0x100272c5
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push edi
push dword [ebp - 0x20]
push eax
call dword [ecx + 0x54]
mov dword [ebp - 0x1c], edi
push 0x101a2c54
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0xc
call fcn.10005f82
mov eax, dword [eax]
lea ecx, [ebp - 0x1c]
push ecx
push eax
push dword [ebp - 0x10]
mov byte [ebp - 4], 0xd
call fcn.10126b28
add esp, 0xc
push dword [ebp + 0x10]
mov byte [ebp - 4], 0xc
call ebx
cmp dword [ebp - 0x1c], edi
je 0x1002727d
push dword [ebp + 0xc]
lea ecx, [ebp - 0x30]
call fcn.10005f82
mov eax, dword [eax]
push edi
push eax
push dword [ebp - 0x1c]
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x14], 2
call fcn.10126b28
add esp, 0xc
test eax, eax
jne 0x1002727d
push dword [ebp + 8]
lea ecx, [ebp - 0x44]
mov word [ebp - 0x44], di
call fcn.10014b08
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x44]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
mov dword [ebp - 4], 0xf
mov dword [ebp - 0x14], 6
movsd dword es:[edi], dword [esi]
call dword [ecx + pe_nt_image_headers32]
xor edi, edi
test eax, eax
mov byte [ebp + 0x13], 1
je 0x10027281
mov byte [ebp + 0x13], 0
test byte [ebp - 0x14], 4
je 0x10027295
and dword [ebp - 0x14], 0xfffffffb
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test byte [ebp - 0x14], 2
mov dword [ebp - 4], 0xc
je 0x100272a7
push dword [ebp - 0x30]
call ebx
cmp byte [ebp + 0x13], 0
je 0x100272b4
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x1c]
cmp eax, edi
mov byte [ebp - 4], 9
je 0x100272c5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x20]
cmp eax, edi
mov byte [ebp - 4], 3
je 0x100272d6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [ebp - 0x24]
cmp dword [ebp - 0x18], edi
je 0x100272f6
lea eax, [ebp + 8]
push eax
lea ecx, [esi + 4]
call fcn.10007845
lea eax, [ebp + 0xc]
push eax
lea ecx, [esi + 8]
call fcn.10007845
push ecx
lea eax, [esi + 4]
mov ecx, esp
mov dword [ebp + 0x10], esp
push eax
call fcn.10007ade
mov ecx, esi
call fcn.10025cc0
cmp dword [ebp - 0x18], edi
jne 0x1002731d
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x24], edi
mov eax, dword [ebp - 0x10]
cmp eax, edi
mov byte [ebp - 4], 2
je 0x1002732e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x28]
call fcn.10003b75
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp + 8]
call fcn.10003b75
lea ecx, [ebp + 0xc]
call fcn.10003b75
mov eax, dword [ebp - 0x18]
call fcn.10145e58
ret 0xc