Function at 0x420620
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e9e13
mov eax, dword fs:[0]
push eax
sub esp, 0x45c
mov eax, dword [0x5315d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x464], eax
call fcn.00404ec0
mov ecx, eax
test ecx, ecx
je 0x420c6c
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x460], eax
push str.__fromnewinstall
lea ecx, [ebp - 0x460]
mov dword [ebp - 4], 0
call fcn.004042b0
test al, al
jne 0x4206a2
push 0x11
push str.__fromnewinstall
lea ecx, [ebp - 0x460]
call fcn.00405820
xor eax, eax
mov dword [ebp - 4], 1
mov byte [ebp - 0x459], 0
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
lea eax, [ebp - 0x454]
mov byte [ebp - 4], 2
push eax
call fcn.00410d50
mov edi, eax
add esp, 4
lea eax, [ebp - 0x438]
lea esi, [edi + 4]
cmp eax, esi
je 0x420774
mov edx, dword [ebp - 0x424]
cmp edx, 8
jb 0x420733
mov ecx, dword [ebp - 0x438]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x420729
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x420c76
push edx
push ecx
call fcn.004654b9
add esp, 8
mov dword [ebp - 0x428], 0
xor eax, eax
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x438], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x428], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov al, byte [edi]
mov edx, dword [ebp - 0x43c]
mov byte [ebp - 0x459], al
cmp edx, 8
jb 0x4207bc
mov ecx, dword [ebp - 0x450]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4207b2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x420c7b
push edx
push ecx
call fcn.004654b9
add esp, 8
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push eax
push str.CheckVersion_dir:_s
call fcn.004257f0
add esp, 8
or esi, 0xffffffff
cmp dword [ebp - 0x428], 0
je 0x420bc3
cmp byte [ebp - 0x459], 0
jne 0x420bc3
cmp dword [ebp - 0x424], 8
lea edx, [ebp - 0x438]
jb 0x420818
mov edx, dword [ebp - 0x438]
test edx, edx
jne 0x420818
xor ecx, ecx
jmp 0x42082f
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x420820
sub ecx, edi
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x464]
push edx
call fcn.00405820
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00471c10
add esp, 0xc
lea eax, [ebp - 0x438]
cmp dword [ebp - 0x424], 8
cmovae eax, dword [ebp - 0x438]
push 0x4f5b6c
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x218]
push eax
push str.CheckVersion_dir_1:_s
call fcn.004257f0
add esp, 8
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x420bc3
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00471c10
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
push dword [0x537490]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.00404ec0
mov ecx, eax
test ecx, ecx
je 0x420c80
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x468], eax
mov byte [ebp - 4], 3
call fcn.00404ec0
mov ecx, eax
test ecx, ecx
je 0x420c8a
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x458], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x458]
call fcn.004042b0
test al, al
jne 0x420957
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x420935
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x458]
call fcn.00405820
lea eax, [ebp - 0x468]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x458]
push eax
call fcn.00416460
mov edx, dword [ebp - 0x458]
add esp, 8
mov byte [ebp - 4], 3
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x420992
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00404ec0
mov ecx, eax
test ecx, ecx
je 0x420c94
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x464], eax
mov byte [ebp - 4], 6
call fcn.00404ec0
mov ecx, eax
test ecx, ecx
je 0x420c9e
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x458], eax
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x458]
call fcn.004042b0
test al, al
jne 0x420a19
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4209f7
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x458]
call fcn.00405820
lea eax, [ebp - 0x464]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x458]
push eax
call fcn.00416460
mov edx, dword [ebp - 0x458]
add esp, 8
mov byte [ebp - 4], 6
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x420a54
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x464]
lea eax, [ebp - 0x420]
push esi
push eax
push str.CheckVersion_dir_2:_s___s
call fcn.004257f0
add esp, 0xc
cmp dword [esi - 0xc], 0
jne 0x420ac2
lea edx, [esi - 0x10]
mov byte [ebp - 4], 3
or esi, 0xffffffff
mov edi, 2
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x420a98
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x468]
mov eax, esi
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x420bc8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x420bc8
mov edi, dword [ebp - 0x468]
push edi
push esi
call fcn.0040f730
add esp, 8
lea ecx, [ebp - 0x460]
test eax, eax
jns 0x420af3
push 0
push 0x4f6244
call fcn.00405820
or eax, 0xffffffff
mov dword [ebp - 0x458], eax
jmp 0x420b21
jne 0x420b0b
push 0
push 0x4f6244
call fcn.00405820
xor eax, eax
mov dword [ebp - 0x458], eax
jmp 0x420b21
push 0x10
push str.__fromupinstall
mov dword [ebp - 0x458], 1
call fcn.00405820
lea edx, [esi - 0x10]
mov byte [ebp - 4], 3
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x420b3f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x420b5a
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x424]
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x420b9e
mov ecx, dword [ebp - 0x438]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x420b94
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x420ca8
push edx
push ecx
call fcn.004654b9
add esp, 8
mov edi, dword [ebp - 0x458]
xor eax, eax
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
jmp 0x420bd7
mov edi, 2
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 1
call fcn.0040e790
mov esi, dword [ebp - 0x460]
cmp dword [esi - 4], 1
jle 0x420bf7
push dword [esi - 0xc]
lea ecx, [ebp - 0x460]
call fcn.00404e10
mov esi, dword [ebp - 0x460]
call fcn.00421090
add eax, 0x3c
mov dword [ebp - 0x464], eax
test esi, esi
jne 0x420c0d
xor ecx, ecx
jmp 0x420c27
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x420c12
mov eax, dword [ebp - 0x464]
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, eax
call fcn.00405820
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x420c4f
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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.004654a8
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404290
call fcn.0048d320
call fcn.0048d320
push 0x80004005
call fcn.00404290
push 0x80004005
call fcn.00404290
push 0x80004005
call fcn.00404290
push 0x80004005
call fcn.00404290
call fcn.0048d320
int3