Function at 0x10001b30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1001a18b
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100210c4]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
lea ebx, [esp + 0x14]
call fcn.10002080
mov dword [esp + 0x50], 0
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
je 0x10001d11
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10001d0d
mov eax, 3
mov word [esp + 0x24], ax
xor eax, eax
mov dword [esp + 0x2c], eax
mov byte [esp + 0x50], 1
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x30]
push 0x1001d46c
lea ecx, [esp + 0x38]
mov ebp, eax
call fcn.100012c0
mov byte [esp + 0x50], 2
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], esi
mov dword [ecx + 4], edi
mov dword [ecx + 8], ebp
mov dword [ecx + 0xc], ebx
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
push 3
mov dword [ecx + 0xc], eax
call dword [0x10022bec]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
add esp, 0x24
lea ecx, [esp + 0x34]
push ecx
call esi
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x54], 0
call esi
mov eax, dword [esp + 0x14]
push 0x5c
push eax
call fcn.1000cd99
add esp, 8
test eax, eax
jne 0x10001c28
or eax, 0xffffffff
jmp 0x10001c2e
sub eax, dword [esp + 0x14]
sar eax, 1
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.10003ab0
push 0xb
push str.AppHub.dll
lea ecx, [esp + 0x20]
mov byte [esp + 0x58], 3
call fcn.100040b0
push 0x30
call fcn.1000cf0f
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
mov byte [esp + 0x50], 4
mov ebx, dword [esp + 0x18]
test esi, esi
je 0x10001c95
push 0x10003490
push ecx
lea eax, [ebx - 0x10]
mov dword [esp + 0x28], esp
mov edi, esp
push eax
call fcn.10004530
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [edi], eax
call fcn.1000b360
jmp 0x10001c97
xor eax, eax
mov byte [esp + 0x50], 3
mov dword [0x10022c14], eax
call fcn.10001d50
call fcn.100053d0
call fcn.10003e90
lea eax, [ebx - 0x10]
mov byte [esp + 0x50], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10001cd1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x50], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10001d37
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x50], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10001d35
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret