Function at 0x423390
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd95b
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x51c91c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x423735
mov ebx, dword [ebp + 8]
mov ecx, edx
add ebx, 4
mov dword [ebp + 8], ebx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4233d6
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, ebx
call fcn.00404ae0
push 0x4eb8ac
push 0x4f0ae0
mov ecx, ebx
call fcn.00422fd0
mov ecx, dword [ebx]
mov esi, dword [ecx - 0xc]
cmp esi, 1
jg 0x42341a
lea eax, [ecx - 0x10]
push eax
call fcn.00403830
add esp, 4
add eax, 0x10
jmp 0x42344d
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x42342a
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x423436
call fcn.00404320
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
mov eax, dword [ebx]
lea ecx, [ebp + 0xc]
push 1
lea eax, [eax + esi*2]
add eax, 0xfffffffe
push eax
call fcn.004090b0
mov eax, dword [ebp + 0xc]
mov edx, 0x4eb8ac
mov ecx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x42347a
test si, si
je 0x423476
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x42347a
add ecx, 4
add edx, 4
test si, si
jne 0x423454
xor esi, esi
jmp 0x42347f
sbb esi, esi
or esi, 1
or edi, 0xffffffff
lea edx, [eax - 0x10]
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x423499
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, 0x10
mov dword [ebp + 0xc], ecx
test esi, esi
jne 0x423539
mov edx, dword [ebx]
mov ecx, dword [edx - 0xc]
lea eax, [ecx - 1]
test eax, eax
cmovns esi, eax
cmp esi, ecx
jl 0x4234ce
lea eax, [edx - 0x10]
push eax
call fcn.00403830
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp + 0xc], esi
jmp 0x4234f9
mov ecx, dword [edx - 0x10]
test ecx, ecx
je 0x4234de
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x4234ea
call fcn.00404320
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
push esi
push dword [ebx]
lea ecx, [ebp + 0xc]
call fcn.004090b0
mov esi, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0
push eax
mov ecx, ebx
call fcn.00409440
mov ecx, 0x30
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
mov dword [ebp + 0xc], ecx
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x423539
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, 0x30
mov dword [ebp + 0xc], ecx
mov esi, dword [ebp + 8]
mov ebx, ecx
push esi
call fcn.00431d50
add esp, 4
test eax, eax
jne 0x4236f2
push 0x4eb8ac
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.004220d0
mov ecx, dword [ebp + 0xc]
push 0x4eb8bc
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 1
or ecx, 1
push eax
mov dword [ebp - 0x10], ecx
call fcn.004220d0
add esp, 0x18
push dword [eax]
or ebx, 3
mov dword [ebp - 4], 2
mov dword [ebp - 0x10], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4235dc
push 0x4eb8ac
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.004220d0
push str.mctray.exe
push eax
mov ecx, ebx
mov dword [ebp - 4], 3
lea eax, [ebp + 8]
or ecx, 4
push eax
mov dword [ebp - 0x10], ecx
call fcn.004220d0
add esp, 0x18
or ebx, 0xc
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov byte [ebp + 0xf], 0
test eax, eax
je 0x4235e0
mov byte [ebp + 0xf], 1
test bl, 8
je 0x423605
mov edx, dword [ebp + 8]
and ebx, 0xfffffff7
mov dword [ebp - 0x10], ebx
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x423605
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 2
test bl, 4
je 0x423631
mov edx, dword [ebp - 0x14]
and ebx, 0xfffffffb
mov dword [ebp - 0x10], ebx
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x423631
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x18]
and ebx, 0xfffffffd
mov dword [ebp - 4], 1
add edx, 0xfffffff0
mov dword [ebp - 0x10], ebx
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x423658
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1c]
mov eax, edi
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x423679
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp + 0xf], 0
jne 0x4236f2
push 0x4eb8ac
lea eax, [ebp + 8]
push esi
push eax
call fcn.004220d0
push str.McSafeBox
push eax
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 4
push eax
call fcn.004220d0
add esp, 0x18
push eax
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.00409440
mov edx, dword [ebp + 0xc]
mov eax, edi
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4236d1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
mov eax, edi
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4236f2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x4f0ae4
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.004220d0
add esp, 0xc
push eax
mov ecx, 0x51fe98
mov dword [ebp - 4], 6
call fcn.00424eb0
mov edx, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x423735
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8