Function at 0x460320
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59c113
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x60f520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
cmp dword [ebx + 0x24], 0
jne 0x46036f
push 0x14
call fcn.00551c81
add esp, 4
test eax, eax
je 0x46036a
mov ecx, eax
call fcn.0045f620
jmp 0x46036c
xor eax, eax
mov dword [ebx + 0x24], eax
mov ecx, dword [ebx + 0x24]
call fcn.0045f720
mov eax, dword [ebx + 0x24]
mov ecx, dword [eax + 4]
sub ecx, 0x10
call fcn.0040c3c0
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
mov eax, dword [ebx + 0x24]
push 1
mov eax, dword [eax + 8]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.USER32.dll_GetSysColor]
cmp dword [esi - 0xc], 0
mov dword [ebp - 0x20], eax
jne 0x4603e8
cmp dword [ebx + 0x28], eax
je 0x4603e8
mov dword [ebx + 0x28], eax
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x4603e1
mov eax, dword [eax + 0x84]
test eax, eax
je 0x4603cc
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebx + 0x3c]
test ecx, ecx
je 0x4603da
mov eax, dword [ecx]
push 1
call dword [eax + 0x28]
mov dword [ebx + 0x3c], 0
xor bl, bl
jmp 0x46053d
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x460427
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x460420
mov eax, dword [eax + 0x84]
test eax, eax
je 0x46040b
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebx + 0x3c]
test ecx, ecx
je 0x460419
mov eax, dword [ecx]
push 1
call dword [eax + 0x28]
mov dword [ebx + 0x3c], 0
mov bl, 1
jmp 0x46053d
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call edi
push 1
mov dword [ebp - 0x24], eax
call edi
cmp dword [esi - 0xc], 0
mov dword [ebp - 0x28], eax
je 0x4604ff
push esi
push dword [ebx + 0x2c]
call fcn.00551d79
add esp, 8
cmp dword [esi - 0xc], 0
je 0x4604ff
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4604ff
push 0xa8
call fcn.00551c81
add esp, 4
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x46048b
mov ecx, eax
call fcn.004b5be0
jmp 0x46048d
xor eax, eax
push 0
push esi
mov ecx, eax
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0
call fcn.004b61d0
mov ebx, dword [ebp - 0x10]
xor edi, edi
cmp dword [ebx + 0x84], 0
jne 0x4604bd
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 4
jl 0x4604a3
mov edi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
mov eax, dword [edi + 0x84]
test eax, eax
jne 0x4604ef
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 0x28]
push 0
push 0x7d0
push 0x3e9
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetTimer]
xor bl, bl
jmp 0x46053d
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 0x28]
lea eax, [ebp - 0x18]
lea ecx, [ebx + 0x2c]
push eax
call fcn.0040b7d0
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp - 0x24]
push ecx
push ecx
mov dword [ebx + 0x38], ecx
mov edi, esp
mov dword [ebx + 0x30], eax
lea ecx, [esi - 0x10]
mov eax, dword [ebp - 0x28]
mov dword [ebx + 0x34], eax
call fcn.0040c3c0
add eax, 0x10
mov ecx, ebx
mov dword [edi], eax
call fcn.00460ae0
mov bl, al
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46055e
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4