Function at 0x42cea0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5042a2
mov eax, dword fs:[0]
push eax
sub esp, 0x350
mov eax, dword [0x556620]
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 edi, ecx
push 0x20019
push str.SOFTWAREJustsystemATOKSetupFolder
xorps xmm0, xmm0
lea ecx, [ebp - 0x23c]
push 0x80000002
xor bl, bl
movq qword [ebp - 0x23c], xmm0
call fcn.0040baf0
xor eax, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], ax
push dword [ebp + 8]
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 1
push 0x51936c
push 0x105
push eax
call fcn.00409eb0
add esp, 0x10
test eax, eax
jne 0x42d394
mov dword [ebp - 0x240], 7
mov dword [ebp - 0x244], eax
mov word [ebp - 0x254], ax
cmp word [ebp - 0x21c], ax
je 0x42cf7f
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42cf70
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x254]
call fcn.004073d0
push 4
xor eax, eax
mov byte [ebp - 4], 2
push str.Atok
lea ecx, [ebp - 0x2e4]
mov dword [ebp - 0x2d0], 7
mov dword [ebp - 0x2d4], 0
mov word [ebp - 0x2e4], ax
call fcn.004073d0
lea eax, [ebp - 0x254]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x2e4]
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.0042d400
add esp, 0xc
cmp dword [ebp - 0x2d0], 8
mov byte [ebp - 4], 5
jb 0x42d001
push dword [ebp - 0x2e4]
call fcn.0040823e
add esp, 4
xor eax, eax
mov dword [ebp - 0x2d0], 7
cmp dword [ebp - 0x258], 8
lea ecx, [ebp - 0x234]
mov word [ebp - 0x2e4], ax
lea eax, [ebp - 0x26c]
cmovae eax, dword [ebp - 0x26c]
push ecx
push eax
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x2d4], 0
call fcn.00423870
test eax, eax
jne 0x42d349
cmp dword [ebp - 0x224], eax
je 0x42d349
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42d349
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x42d349
cmp dword [ebp - 0x220], 8
lea ecx, [ebp - 0x234]
mov eax, dword [ebp - 0x224]
cmovae ecx, dword [ebp - 0x234]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x42d0d0
push 0x5c
push 1
lea ecx, [ebp - 0x234]
call fcn.0040de20
push 0x52e3f8
lea ecx, [ebp - 0x284]
call fcn.00407370
push str.ATFSVR
lea ecx, [ebp - 0x2e4]
mov byte [ebp - 4], 6
call fcn.00407370
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 7
push ecx
push eax
lea eax, [ebp - 0x2b4]
push eax
call fcn.0042d400
add esp, 0xc
lea ecx, [ebp - 0x2e4]
mov byte [ebp - 4], 9
call fcn.00408450
lea eax, [ebp - 0x2b4]
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x2fc]
push eax
call fcn.0042fc80
lea ecx, [ebp - 0x284]
mov byte [ebp - 4], 0xa
push ecx
push eax
lea eax, [ebp - 0x32c]
push eax
call fcn.0042d400
add esp, 0x18
push eax
mov ecx, edi
mov byte [ebp - 4], 0xb
call fcn.004a0b50
lea ecx, [ebp - 0x32c]
call fcn.00408450
lea ecx, [ebp - 0x2fc]
mov byte [ebp - 4], 9
call fcn.00408450
push 0x52f4d0
lea ecx, [ebp - 0x344]
call fcn.00407370
mov esi, eax
push str.ATOK
lea ecx, [ebp - 0x32c]
mov byte [ebp - 4], 0xc
call fcn.00407370
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 0xd
push ecx
push eax
lea eax, [ebp - 0x2fc]
push eax
call fcn.0042d400
push esi
push eax
lea eax, [ebp - 0x29c]
mov byte [ebp - 4], 0xe
push eax
call fcn.00441d10
add esp, 0x18
lea ecx, [ebp - 0x2fc]
call fcn.00408450
lea ecx, [ebp - 0x32c]
call fcn.00408450
lea ecx, [ebp - 0x344]
mov byte [ebp - 4], 0x12
call fcn.00408450
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x314]
push eax
call fcn.0042fc80
lea ecx, [ebp - 0x284]
mov byte [ebp - 4], 0x13
push ecx
push eax
lea eax, [ebp - 0x2e4]
push eax
call fcn.0042d400
add esp, 0x18
push eax
mov ecx, edi
mov byte [ebp - 4], 0x14
call fcn.004a0b50
lea ecx, [ebp - 0x2e4]
call fcn.00408450
lea ecx, [ebp - 0x314]
mov byte [ebp - 4], 0x12
call fcn.00408450
push 0x52f4e4
lea ecx, [ebp - 0x35c]
call fcn.00407370
mov esi, eax
push str.ATOK
lea ecx, [ebp - 0x2e4]
mov byte [ebp - 4], 0x15
call fcn.00407370
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 0x16
push ecx
push eax
lea eax, [ebp - 0x314]
push eax
call fcn.0042d400
push esi
push eax
lea eax, [ebp - 0x2cc]
mov byte [ebp - 4], 0x17
push eax
call fcn.00441d10
add esp, 0x18
lea ecx, [ebp - 0x314]
call fcn.00408450
lea ecx, [ebp - 0x2e4]
call fcn.00408450
lea ecx, [ebp - 0x35c]
mov byte [ebp - 4], 0x1b
call fcn.00408450
lea eax, [ebp - 0x2cc]
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x2fc]
push eax
call fcn.0042fc80
lea ecx, [ebp - 0x284]
mov byte [ebp - 4], 0x1c
push ecx
push eax
lea eax, [ebp - 0x344]
push eax
call fcn.0042d400
add esp, 0x18
push eax
mov ecx, edi
mov byte [ebp - 4], 0x1d
call fcn.004a0b50
lea ecx, [ebp - 0x344]
call fcn.00408450
lea ecx, [ebp - 0x2fc]
call fcn.00408450
lea ecx, [ebp - 0x2cc]
mov bl, 1
call fcn.00408450
lea ecx, [ebp - 0x29c]
call fcn.00408450
lea ecx, [ebp - 0x2b4]
call fcn.00408450
lea ecx, [ebp - 0x284]
call fcn.00408450
cmp dword [ebp - 0x258], 8
jb 0x42d360
push dword [ebp - 0x26c]
call fcn.0040823e
add esp, 4
xor eax, eax
mov dword [ebp - 0x258], 7
cmp dword [ebp - 0x240], 8
mov dword [ebp - 0x25c], 0
mov word [ebp - 0x26c], ax
jb 0x42d394
push dword [ebp - 0x254]
call fcn.0040823e
add esp, 4
cmp dword [ebp - 0x220], 8
jb 0x42d3ab
push dword [ebp - 0x234]
call fcn.0040823e
add esp, 4
xor eax, eax
mov dword [ebp - 0x220], 7
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], ax
mov dword [ebp - 4], 0xffffffff
call fcn.0040beb0
mov al, bl
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.00401580
mov esp, ebp
pop ebp
ret 4