Function at 0x421d30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aa408
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x5026c4]
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 0x421d6e
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x421f67
cmp dword [edi + 0x14], 8
mov esi, edi
jb 0x421d87
mov esi, dword [edi]
call fcn.00408030
mov ecx, eax
test ecx, ecx
je 0x421f87
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.00407ce0
test al, al
jne 0x421ddd
test esi, esi
jne 0x421dbf
xor ecx, ecx
jmp 0x421dd3
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x421dc4
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x48]
call fcn.00408f60
lea eax, [ebp - 0x48]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.004591f0
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 0x421e15
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str..tpi
push dword [ebp - 0x50]
call fcn.00477be9
add esp, 8
test eax, eax
jne 0x421f4f
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 0x421e41
mov edi, dword [edi]
cmp eax, 8
jae 0x421e56
movups xmm0, xmmword [edi]
mov dword [ebp - 0x2c], 7
movups xmmword [ebp - 0x40], xmm0
jmp 0x421e94
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.0040a220
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.00468f40
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.0040a700
mov ecx, dword [ebp - 0x54]
lea eax, [ebp - 0x40]
push 1
push 1
push eax
mov byte [ebp - 4], 5
call fcn.00423e90
mov edx, dword [ebp - 0x14]
mov byte [ebp - 0x41], al
cmp edx, 0x10
jb 0x421f07
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x421efd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421f91
push edx
push ecx
call fcn.0043b702
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 0x421f4f
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x421f45
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421f96
push edx
push ecx
call fcn.0043b702
add esp, 8
mov edx, dword [ebp - 0x50]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x421f67
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.0043b9b8
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00407a90
call fcn.0046cf98
call fcn.0046cf98
int3