Function at 0x475120
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5bfe80
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x615370]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, ecx
cmp eax, 0x465
jne 0x475213
push eax
mov eax, dword [edi + 0x58]
push eax
call dword [sym.imp.USER32.dll_KillTimer]
lea ecx, [esp + 0x14]
push str.Utils360searchlite.exe
push ecx
call fcn.00516143
add esp, 8
xor ebx, ebx
mov dword [esp + 0x28], ebx
mov edx, dword [0x621148]
mov eax, dword [edx + 0xc]
mov ecx, 0x621148
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
mov byte [esp + 0x28], 1
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4751cd
mov eax, dword [esp + 0x14]
call fcn.00476860
test eax, eax
je 0x4751cd
mov edx, dword [esp + 0x14]
push esi
push edx
mov dword [edi + 0x208], ebx
call fcn.00517f47
add esp, 8
jmp 0x4751e2
mov eax, dword [edi + 0x58]
push ebx
push 0x7530
push 0x466
push eax
call dword [sym.imp.USER32.dll_SetTimer]
lea eax, [esi - 0x10]
mov byte [esp + 0x28], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x475202
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x14]
jmp 0x4752bf
cmp eax, 0x466
jne 0x4752e4
mov ecx, dword [edi + 0x58]
push eax
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
lea edx, [esp + 0x18]
push str.Utils360searchlite.exe
push edx
mov dword [edi + 0x208], 0
call fcn.00516143
add esp, 8
mov ebx, 2
mov dword [esp + 0x28], ebx
mov eax, dword [0x621148]
mov edx, dword [eax + 0xc]
mov ecx, 0x621148
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov byte [esp + 0x28], 3
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x475293
mov eax, dword [esp + 0x18]
call fcn.00476860
test eax, eax
je 0x475293
mov ecx, dword [esp + 0x18]
push esi
push ecx
call fcn.00517f47
add esp, 8
lea eax, [esi - 0x10]
mov byte [esp + 0x28], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4752b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47539e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x47539e
cmp eax, 0x467
jne 0x475328
mov ecx, dword [edi + 0x58]
push eax
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [edi + 0x2fc]
xor ebx, ebx
cmp eax, ebx
je 0x47539e
xor ecx, ecx
cmp eax, dword [edi + 0x184]
jne 0x475313
lea ecx, [ebx + 1]
mov edx, dword [eax + 0x1c8]
push edx
add edi, 0x20c
push edi
call fcn.00489a50
jmp 0x47539e
cmp eax, 0x468
jne 0x475376
mov ebx, dword [edi + 0x2fc]
call fcn.00474f70
test eax, eax
jne 0x47539e
mov eax, dword [edi + 0x58]
push 0x468
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [edi + 0x2fc]
mov esi, dword [ecx + 0x1c8]
call fcn.00489f60
mov edx, dword [edi + 0x140]
mov eax, dword [edx + 0xa4]
lea ecx, [edi + 0x140]
push 0
call eax
jmp 0x47539e
cmp eax, 0x469
jne 0x47539e
mov ecx, dword [edi + 0x58]
push eax
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
call fcn.0048bd70
mov edx, dword [edi + 0x124]
mov eax, dword [edx + 0x10]
lea ecx, [edi + 0x124]
call eax
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4