Function at 0x10023540
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010ce63
mov eax, dword fs:[0]
push eax
sub esp, 0x43c
mov eax, dword [0x1015a4dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
call fcn.10005050
mov ecx, eax
test ecx, ecx
je 0x10023a88
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x440], eax
push str.newinstall
lea ecx, [ebp - 0x440]
mov dword [ebp - 4], 0
call fcn.10004440
test al, al
jne 0x100235bb
push 0xa
push str.newinstall
lea ecx, [ebp - 0x440]
call fcn.100059b0
lea eax, [ebp - 0x438]
mov dword [ebp - 4], 1
push eax
call fcn.10010600
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 2
cmovae eax, dword [ebp - 0x438]
push eax
push str.CheckVersion_dir:_s
call fcn.10028b70
add esp, 0xc
or edi, 0xffffffff
cmp dword [ebp - 0x428], 0
jne 0x10023650
mov ebx, 2
mov edx, dword [ebp - 0x424]
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x10023649
mov ecx, dword [ebp - 0x438]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1002363f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10023a92
push edx
push ecx
call fcn.10067ba9
add esp, 8
xor eax, eax
jmp 0x100239d7
cmp dword [ebp - 0x424], 8
lea edx, [ebp - 0x438]
jb 0x1002366d
mov edx, dword [ebp - 0x438]
test edx, edx
jne 0x1002366d
xor ecx, ecx
jmp 0x10023681
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10023672
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, ebx
call fcn.100059b0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10094be0
add esp, 0xc
lea eax, [ebp - 0x438]
cmp dword [ebp - 0x424], 8
cmovae eax, dword [ebp - 0x438]
push str.PCStore.exe
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.10028b70
add esp, 8
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10023600
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.10094be0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
push dword [0x10161978]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.10005050
mov ecx, eax
test ecx, ecx
je 0x10023a97
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x448], eax
mov byte [ebp - 4], 3
call fcn.10005050
mov ecx, eax
test ecx, ecx
je 0x10023aa1
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x43c], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x43c]
call fcn.10004440
test al, al
jne 0x100237a2
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10023780
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x43c]
call fcn.100059b0
lea eax, [ebp - 0x448]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x43c]
push eax
call fcn.10017ae0
mov edx, dword [ebp - 0x43c]
add esp, 8
mov byte [ebp - 4], 3
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100237dd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.10005050
mov ecx, eax
test ecx, ecx
je 0x10023aab
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x444], eax
mov byte [ebp - 4], 6
call fcn.10005050
mov ecx, eax
test ecx, ecx
je 0x10023ab5
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x43c], eax
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x43c]
call fcn.10004440
test al, al
jne 0x10023862
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10023840
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x43c]
call fcn.100059b0
lea eax, [ebp - 0x444]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x43c]
push eax
call fcn.10017ae0
mov edx, dword [ebp - 0x43c]
add esp, 8
mov byte [ebp - 4], 6
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002389d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x444]
lea eax, [ebp - 0x420]
push esi
push eax
push str.CheckVersion_dir_2:_s___s
call fcn.10028b70
add esp, 0xc
cmp dword [esi - 0xc], 0
jne 0x10023907
mov ebx, 2
mov byte [ebp - 4], 3
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100238de
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x448]
mov eax, edi
mov byte [ebp - 4], bl
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10023605
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10023605
mov edi, dword [ebp - 0x448]
push edi
push esi
call fcn.1000f4a0
add esp, 8
lea ecx, [ebp - 0x440]
test eax, eax
jns 0x10023932
push 0
push 0x1011b2a4
call fcn.100059b0
or ebx, 0xffffffff
jmp 0x10023955
jne 0x10023944
push 0
push 0x1011b2a4
call fcn.100059b0
xor ebx, ebx
jmp 0x10023955
push 9
push str.upinstall
mov ebx, 1
call fcn.100059b0
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 0x10023973
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 0x1002398e
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 0x100239d2
mov ecx, dword [ebp - 0x438]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100239c8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10023a92
push edx
push ecx
call fcn.10067ba9
add esp, 8
xor eax, eax
or edi, 0xffffffff
mov esi, dword [ebp - 0x440]
mov word [ebp - 0x438], ax
mov dword [ebp - 0x424], 7
mov dword [ebp - 0x428], 0
cmp dword [esi - 4], 1
jle 0x10023a12
push dword [esi - 0xc]
lea ecx, [ebp - 0x440]
call fcn.10004fa0
mov esi, dword [ebp - 0x440]
call fcn.10023f20
add eax, 0x24
mov dword [ebp - 0x444], eax
test esi, esi
jne 0x10023a28
xor ecx, ecx
jmp 0x10023a45
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10023a30
mov eax, dword [ebp - 0x444]
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, eax
call fcn.100059b0
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x10023a6a
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10067b98
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10004420
call fcn.100b0310
push 0x80004005
call fcn.10004420
push 0x80004005
call fcn.10004420
push 0x80004005
call fcn.10004420
push 0x80004005
call fcn.10004420
int3