Function at 0x422a30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e0f72
mov eax, dword fs:[0]
push eax
sub esp, 0x384
mov eax, dword [0x5256a8]
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
push 0x20019
push str.SOFTWAREJustsystemATOKSetupFolder
mov esi, ecx
push 0x80000002
lea ecx, [ebp - 0x390]
xor bl, bl
call fcn.0040a670
xor edi, edi
xor eax, eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], edi
mov word [ebp - 0x238], ax
mov ecx, dword [ebp + 8]
push ecx
push 0x4ea4b4
lea edx, [ebp - 0x21c]
push 0x105
push edx
mov byte [ebp - 4], 1
call fcn.00408a40
add esp, 0x10
test eax, eax
jne 0x422f12
mov word [ebp - 0x270], ax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x25c], 7
mov dword [ebp - 0x260], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x422ae3
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x270]
call fcn.00406030
push 4
xor edx, edx
push str.Atok
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 2
mov dword [ebp - 0x240], 7
mov dword [ebp - 0x244], edi
mov word [ebp - 0x254], dx
call fcn.00406030
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebp - 0x254]
push ecx
lea edx, [ebp - 0x28c]
push edx
mov byte [ebp - 4], 3
call fcn.00422f80
add esp, 0xc
cmp dword [ebp - 0x240], 8
mov byte [ebp - 4], 5
jb 0x422b71
mov eax, dword [ebp - 0x254]
push eax
call fcn.00406cf9
add esp, 4
mov eax, dword [ebp - 0x28c]
xor ecx, ecx
cmp dword [ebp - 0x278], 8
mov dword [ebp - 0x240], 7
mov dword [ebp - 0x244], edi
mov word [ebp - 0x254], cx
jae 0x422b9f
lea eax, [ebp - 0x28c]
lea edx, [ebp - 0x238]
push edx
push eax
lea ecx, [ebp - 0x390]
call fcn.00422fd0
test eax, eax
jne 0x422eb1
cmp dword [ebp - 0x228], edi
je 0x422eb1
cmp dword [ebp - 0x224], 8
mov eax, dword [ebp - 0x238]
jae 0x422bdb
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x422eb1
cmp dword [ebp - 0x224], 8
mov eax, dword [ebp - 0x238]
jae 0x422bff
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x422eb1
mov eax, dword [ebp - 0x228]
dec eax
push eax
lea ecx, [ebp - 0x238]
call fcn.00432b40
cmp word [eax], 0x5c
je 0x422c36
push 0x5c
push 1
lea ecx, [ebp - 0x238]
call fcn.0040c8a0
push 0x502040
lea ecx, [ebp - 0x2c4]
call fcn.00408770
push str.ATFSVR
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 6
call fcn.00408770
lea ecx, [ebp - 0x270]
push ecx
push eax
lea edx, [ebp - 0x36c]
push edx
mov byte [ebp - 4], 7
call fcn.00422f80
add esp, 0xc
mov bl, 9
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], bl
call fcn.00409fe0
lea eax, [ebp - 0x36c]
push eax
lea ecx, [ebp - 0x238]
push ecx
lea edx, [ebp - 0x2a8]
push edx
call fcn.004209e0
lea ecx, [ebp - 0x2c4]
push ecx
push eax
lea edx, [ebp - 0x2fc]
push edx
mov byte [ebp - 4], 0xa
call fcn.00422f80
add esp, 0x18
push eax
mov ecx, esi
mov byte [ebp - 4], 0xb
call fcn.0047e4b0
lea ecx, [ebp - 0x2fc]
call fcn.00409fe0
lea ecx, [ebp - 0x2a8]
mov byte [ebp - 4], bl
call fcn.00409fe0
push 0x5035ec
lea ecx, [ebp - 0x2e0]
call fcn.00408770
mov edi, eax
push str.ATOK
lea ecx, [ebp - 0x2fc]
mov byte [ebp - 4], 0xc
call fcn.00408770
lea ecx, [ebp - 0x270]
push ecx
push eax
lea edx, [ebp - 0x2a8]
push edx
mov byte [ebp - 4], 0xd
call fcn.00422f80
push edi
push eax
lea eax, [ebp - 0x334]
push eax
mov byte [ebp - 4], 0xe
call fcn.0047f4c0
add esp, 0x18
lea ecx, [ebp - 0x2a8]
call fcn.00409fe0
lea ecx, [ebp - 0x2fc]
call fcn.00409fe0
mov bl, 0x12
lea ecx, [ebp - 0x2e0]
mov byte [ebp - 4], bl
call fcn.00409fe0
lea ecx, [ebp - 0x334]
push ecx
lea edx, [ebp - 0x238]
push edx
lea eax, [ebp - 0x318]
push eax
call fcn.004209e0
lea ecx, [ebp - 0x2c4]
push ecx
push eax
lea edx, [ebp - 0x254]
push edx
mov byte [ebp - 4], 0x13
call fcn.00422f80
add esp, 0x18
push eax
mov ecx, esi
mov byte [ebp - 4], 0x14
call fcn.0047e4b0
lea ecx, [ebp - 0x254]
call fcn.00409fe0
lea ecx, [ebp - 0x318]
mov byte [ebp - 4], bl
call fcn.00409fe0
push 0x5035d8
lea ecx, [ebp - 0x388]
call fcn.00408770
mov edi, eax
push str.ATOK
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 0x15
call fcn.00408770
lea ecx, [ebp - 0x270]
push ecx
push eax
lea edx, [ebp - 0x318]
push edx
mov byte [ebp - 4], 0x16
call fcn.00422f80
push edi
push eax
lea eax, [ebp - 0x350]
push eax
mov byte [ebp - 4], 0x17
call fcn.0047f4c0
add esp, 0x18
lea ecx, [ebp - 0x318]
call fcn.00409fe0
lea ecx, [ebp - 0x254]
call fcn.00409fe0
lea ecx, [ebp - 0x388]
mov byte [ebp - 4], 0x1b
call fcn.00409fe0
lea ecx, [ebp - 0x350]
push ecx
lea edx, [ebp - 0x238]
push edx
lea eax, [ebp - 0x2a8]
push eax
call fcn.004209e0
lea ecx, [ebp - 0x2c4]
push ecx
push eax
lea edx, [ebp - 0x2e0]
mov byte [ebp - 4], 0x1c
push edx
call fcn.00422f80
add esp, 0x18
push eax
mov ecx, esi
mov byte [ebp - 4], 0x1d
call fcn.0047e4b0
lea ecx, [ebp - 0x2e0]
call fcn.00409fe0
lea ecx, [ebp - 0x2a8]
call fcn.00409fe0
lea ecx, [ebp - 0x350]
mov bl, 1
call fcn.00409fe0
lea ecx, [ebp - 0x334]
call fcn.00409fe0
lea ecx, [ebp - 0x36c]
call fcn.00409fe0
lea ecx, [ebp - 0x2c4]
call fcn.00409fe0
xor edi, edi
cmp dword [ebp - 0x278], 8
jb 0x422ec9
mov eax, dword [ebp - 0x28c]
push eax
call fcn.00406cf9
add esp, 4
xor ecx, ecx
cmp dword [ebp - 0x25c], 8
mov esi, 7
mov dword [ebp - 0x278], esi
mov dword [ebp - 0x27c], edi
mov word [ebp - 0x28c], cx
jb 0x422efb
mov edx, dword [ebp - 0x270]
push edx
call fcn.00406cf9
add esp, 4
xor eax, eax
mov dword [ebp - 0x25c], esi
mov dword [ebp - 0x260], edi
mov word [ebp - 0x270], ax
jmp 0x422f17
mov esi, 7
cmp dword [ebp - 0x224], 8
jb 0x422f2f
mov ecx, dword [ebp - 0x238]
push ecx
call fcn.00406cf9
add esp, 4
xor edx, edx
lea ecx, [ebp - 0x390]
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x228], edi
mov word [ebp - 0x238], dx
mov dword [ebp - 4], 0xffffffff
call fcn.0040aa80
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.00401306
mov esp, ebp
pop ebp
ret 4