Function at 0x421dc0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aac68
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x5036c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x54], ecx
mov edi, dword [ebp + 8]
mov eax, edi
mov byte [ebp - 0x41], 0
cmp dword [edi + 0x14], 8
jb 0x421dfe
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x421ff7
cmp dword [edi + 0x14], 8
mov esi, edi
jb 0x421e17
mov esi, dword [edi]
call fcn.004080e0
mov ecx, eax
test ecx, ecx
je 0x422017
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x48], eax
push esi
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0
call fcn.00407d90
test al, al
jne 0x421e6d
test esi, esi
jne 0x421e4f
xor ecx, ecx
jmp 0x421e63
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x421e54
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x48]
call fcn.00409010
lea eax, [ebp - 0x48]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00459480
add esp, 8
mov edx, dword [ebp - 0x48]
or esi, 0xffffffff
mov byte [ebp - 4], 3
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x421ea5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str..tpi
push dword [ebp - 0x50]
call fcn.00477ea9
add esp, 8
test eax, eax
jne 0x421fdf
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x4c], eax
jb 0x421ed1
mov edi, dword [edi]
cmp eax, 8
jae 0x421ee6
movups xmm0, xmmword [edi]
mov dword [ebp - 0x2c], 7
movups xmmword [ebp - 0x40], xmm0
jmp 0x421f24
mov esi, eax
lea ecx, [ebp - 0x40]
mov eax, SysReAllocString
or esi, 7
cmp esi, eax
cmova esi, eax
lea eax, [esi + 1]
push eax
call fcn.0040a2d0
mov ecx, eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x40], ecx
lea eax, [eax*2 + 2]
push eax
push edi
push ecx
call fcn.004691f0
mov eax, dword [ebp - 0x4c]
add esp, 0xc
mov dword [ebp - 0x2c], esi
or esi, 0xffffffff
mov dword [ebp - 0x30], eax
push 0x10
push str.CreateTrayClient
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.0040a7b0
mov ecx, dword [ebp - 0x54]
lea eax, [ebp - 0x40]
push 1
push 1
push eax
mov byte [ebp - 4], 5
call fcn.00423f10
mov edx, dword [ebp - 0x14]
mov byte [ebp - 0x41], al
cmp edx, 0x10
jb 0x421f97
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x421f8d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422021
push edx
push ecx
call fcn.0043b7c2
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp edx, 8
jb 0x421fdf
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x421fd5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422026
push edx
push ecx
call fcn.0043b7c2
add esp, 8
mov edx, dword [ebp - 0x50]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x421ff7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, byte [ebp - 0x41]
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.0043ba78
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00407b40
call fcn.0046d258
call fcn.0046d258
int3