Function at 0x1001aed0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006f96d
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x100911c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov esi, 1
push dword [ebp + 8]
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x234]
push eax
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x23c], esi
call fcn.1001ae30
push dword [ebp - 0x234]
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or edi, 0xffffffff
test eax, eax
jne 0x1001af4e
xor esi, esi
jmp 0x1001b2c2
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x219]
call fcn.1000cda0
push eax
push dword [ebp + 8]
call fcn.100199c0
mov edx, dword [ebp - 0x224]
add esp, 8
mov byte [ebp - 0x219], al
add edx, 0xfffffff0
mov ecx, edi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x1001af95
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, byte [ebp - 0x219]
test al, al
je 0x1001b1c9
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1004a6f0
add esp, 0xc
cmp dword [0x1009114c], 0
je 0x1001b0a9
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001b09f
xorps xmm0, xmm0
mov dword [ebp - 0x240], 0
lea ecx, [ebp - 0x260]
push ecx
movups xmmword [ebp - 0x260], xmm0
movups xmmword [ebp - 0x250], xmm0
call eax
mov ax, word [ebp - 0x260]
cmp ax, 9
je 0x1001b095
cmp ax, 6
je 0x1001b095
cmp ax, 0xc
je 0x1001b095
push str.IsWow64Process2
push 0x10075140
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x1001b089
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x1001b089
xor eax, eax
mov ecx, 0xaa64
cmp word [ebp - 0x220], cx
mov esi, 1
sete al
mov dword [0x100b95f8], eax
jmp 0x1001b09f
xor eax, eax
mov dword [0x100b95f8], eax
lea esi, [eax + 1]
jmp 0x1001b09f
mov dword [0x100b95f8], 1
mov dword [0x1009114c], 0
cmp dword [0x100b95f8], 0
lea ecx, [ebp - 0x219]
je 0x1001b0cf
lea eax, [ebp - 0x238]
push eax
call fcn.10019b90
mov byte [ebp - 4], 1
mov ecx, 1
jmp 0x1001b0e0
lea eax, [ebp - 0x230]
push eax
call fcn.10019d80
mov ecx, 2
push dword [eax]
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], ecx
push dword [ebp - 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov ecx, dword [ebp - 0x220]
test cl, 2
je 0x1001b138
mov edx, dword [ebp - 0x230]
and ecx, 0xfffffffd
mov dword [ebp - 0x220], ecx
add edx, 0xfffffff0
mov dword [ebp - 0x22c], ecx
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001b138
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x220]
mov dword [ebp - 4], 0
test cl, 1
je 0x1001b161
mov edx, dword [ebp - 0x238]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001b161
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x228]
lea edx, [ebp - 0x218]
lea eax, [edx + 2]
mov dword [ebp - 0x238], eax
lea ecx, [ecx + 4]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1001b180
sub edx, dword [ebp - 0x238]
lea eax, [ebp - 0x218]
sar edx, 1
push edx
push eax
call fcn.10009770
mov ecx, dword [ebp - 0x228]
push 0xa
push str.CCMouseDrv
call fcn.10009770
mov ecx, dword [ebp - 0x228]
push 7
push str.ccmouse
lea ecx, [ecx + 8]
call fcn.10009770
jmp 0x1001b1d1
xor esi, esi
mov dword [ebp - 0x23c], esi
mov eax, dword [ebp - 0x228]
mov dword [eax + 0xc], 0
cmp dword [0x10091150], 0
je 0x1001b2a3
push str.ntdll.dll
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x22c], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x1001b293
push str.RtlGetNtVersionNumbers
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001b262
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x224]
push ecx
lea ecx, [ebp - 0x230]
push ecx
call eax
movzx eax, word [ebp - 0x220]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x22c], 1
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x22c], 0
je 0x1001b293
cmp dword [ebp - 0x230], 5
jne 0x1001b293
mov eax, dword [0x100b95fc]
mov ecx, 1
cmp dword [ebp - 0x224], ecx
cmove eax, ecx
mov dword [0x100b95fc], eax
mov esi, dword [ebp - 0x23c]
mov dword [0x10091150], 0
cmp dword [0x100b95fc], 0
je 0x1001b2c2
call fcn.1001b650
test eax, eax
je 0x1001b2c2
mov eax, dword [ebp - 0x228]
mov dword [eax + 0xc], 1
mov eax, dword [ebp - 0x234]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x1001b2e4
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10030059
mov esp, ebp
pop ebp
ret 0xc