Function at 0x4a99b0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x57a2e0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
call fcn.00418760
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or esi, 0xffffffff
cmp eax, 1
jne 0x4a9a8c
xor edi, edi
lea ebx, [esp + 0x20]
call fcn.004125d0
push eax
lea eax, [esp + 0x18]
push eax
mov ebx, str.kwassist.dll
mov dword [esp + 0x38], edi
call fcn.0041a8a0
mov dword [esp + 0x38], esi
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a9a33
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push ecx
call ebp
test eax, eax
mov eax, dword [esp + 0x14]
jne 0x4a9a71
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], esi
dec esi
test esi, esi
jg 0x4a9a5b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a9a8c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.00418760
cmp eax, 2
jne 0x4a9b81
xor edi, edi
lea ebx, [esp + 0x20]
call fcn.004125d0
push eax
lea ecx, [esp + 0x20]
push ecx
mov ebx, str.kwassist64.dll
mov dword [esp + 0x38], 1
call fcn.0041a8a0
add esp, 8
mov byte [esp + 0x30], 3
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4a9ae4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor edi, edi
lea ebx, [esp + 0x24]
call fcn.004125d0
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ebx, str.kwassistlaunch.exe
mov byte [esp + 0x38], 4
call fcn.0041a8a0
mov byte [esp + 0x38], 3
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 8
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4a9b2b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
push ecx
call ebp
test eax, eax
je 0x4a9bb4
mov edx, dword [esp + 0x18]
push edx
call ebp
test eax, eax
je 0x4a9bb4
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a9b60
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x30], esi
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x4a9b81
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.0040b460
mov eax, dword [eax]
cmp eax, 1
je 0x4a9b9b
cmp eax, 4
je 0x4a9b9b
cmp eax, 5
jne 0x4a9a5b
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a9bd3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x30], esi
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x4a9a5b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret