Function at 0x42dc40
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a122
mov eax, dword fs:[0]
push eax
sub esp, 0x384
mov eax, dword [0x553948]
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.0040aa40
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 0x5181ec
lea edx, [ebp - 0x21c]
push 0x105
push edx
mov byte [ebp - 4], 1
call fcn.00408d90
add esp, 0x10
test eax, eax
jne 0x42e122
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 0x42dcf3
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x270]
call fcn.004063e0
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.004063e0
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.0042e190
add esp, 0xc
cmp dword [ebp - 0x240], 8
mov byte [ebp - 4], 5
jb 0x42dd81
mov eax, dword [ebp - 0x254]
push eax
call fcn.00406fa9
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 0x42ddaf
lea eax, [ebp - 0x28c]
lea edx, [ebp - 0x238]
push edx
push eax
lea ecx, [ebp - 0x390]
call fcn.0041fe50
test eax, eax
jne 0x42e0c1
cmp dword [ebp - 0x228], edi
je 0x42e0c1
cmp dword [ebp - 0x224], 8
mov eax, dword [ebp - 0x238]
jae 0x42ddeb
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42e0c1
cmp dword [ebp - 0x224], 8
mov eax, dword [ebp - 0x238]
jae 0x42de0f
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x42e0c1
mov eax, dword [ebp - 0x228]
dec eax
push eax
lea ecx, [ebp - 0x238]
call fcn.004188e0
cmp word [eax], 0x5c
je 0x42de46
push 0x5c
push 1
lea ecx, [ebp - 0x238]
call fcn.0040ce90
push str..exe
lea ecx, [ebp - 0x2c4]
call fcn.00408ac0
push str.ATFSVR
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 6
call fcn.00408ac0
lea ecx, [ebp - 0x270]
push ecx
push eax
lea edx, [ebp - 0x36c]
push edx
mov byte [ebp - 4], 7
call fcn.0042e190
add esp, 0xc
mov bl, 9
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], bl
call fcn.0040a440
lea eax, [ebp - 0x36c]
push eax
lea ecx, [ebp - 0x238]
push ecx
lea edx, [ebp - 0x2a8]
push edx
call fcn.00463bd0
lea ecx, [ebp - 0x2c4]
push ecx
push eax
lea edx, [ebp - 0x2fc]
push edx
mov byte [ebp - 4], 0xa
call fcn.0042e190
add esp, 0x18
push eax
mov ecx, esi
mov byte [ebp - 4], 0xb
call fcn.0049ca70
lea ecx, [ebp - 0x2fc]
call fcn.0040a440
lea ecx, [ebp - 0x2a8]
mov byte [ebp - 4], bl
call fcn.0040a440
push 0x52f210
lea ecx, [ebp - 0x2e0]
call fcn.00408ac0
mov edi, eax
push str.ATOK
lea ecx, [ebp - 0x2fc]
mov byte [ebp - 4], 0xc
call fcn.00408ac0
lea ecx, [ebp - 0x270]
push ecx
push eax
lea edx, [ebp - 0x2a8]
push edx
mov byte [ebp - 4], 0xd
call fcn.0042e190
push edi
push eax
lea eax, [ebp - 0x334]
push eax
mov byte [ebp - 4], 0xe
call fcn.00447860
add esp, 0x18
lea ecx, [ebp - 0x2a8]
call fcn.0040a440
lea ecx, [ebp - 0x2fc]
call fcn.0040a440
mov bl, 0x12
lea ecx, [ebp - 0x2e0]
mov byte [ebp - 4], bl
call fcn.0040a440
lea ecx, [ebp - 0x334]
push ecx
lea edx, [ebp - 0x238]
push edx
lea eax, [ebp - 0x318]
push eax
call fcn.00463bd0
lea ecx, [ebp - 0x2c4]
push ecx
push eax
lea edx, [ebp - 0x254]
push edx
mov byte [ebp - 4], 0x13
call fcn.0042e190
add esp, 0x18
push eax
mov ecx, esi
mov byte [ebp - 4], 0x14
call fcn.0049ca70
lea ecx, [ebp - 0x254]
call fcn.0040a440
lea ecx, [ebp - 0x318]
mov byte [ebp - 4], bl
call fcn.0040a440
push 0x52f1fc
lea ecx, [ebp - 0x388]
call fcn.00408ac0
mov edi, eax
push str.ATOK
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 0x15
call fcn.00408ac0
lea ecx, [ebp - 0x270]
push ecx
push eax
lea edx, [ebp - 0x318]
push edx
mov byte [ebp - 4], 0x16
call fcn.0042e190
push edi
push eax
lea eax, [ebp - 0x350]
push eax
mov byte [ebp - 4], 0x17
call fcn.00447860
add esp, 0x18
lea ecx, [ebp - 0x318]
call fcn.0040a440
lea ecx, [ebp - 0x254]
call fcn.0040a440
lea ecx, [ebp - 0x388]
mov byte [ebp - 4], 0x1b
call fcn.0040a440
lea ecx, [ebp - 0x350]
push ecx
lea edx, [ebp - 0x238]
push edx
lea eax, [ebp - 0x2a8]
push eax
call fcn.00463bd0
lea ecx, [ebp - 0x2c4]
push ecx
push eax
lea edx, [ebp - 0x2e0]
mov byte [ebp - 4], 0x1c
push edx
call fcn.0042e190
add esp, 0x18
push eax
mov ecx, esi
mov byte [ebp - 4], 0x1d
call fcn.0049ca70
lea ecx, [ebp - 0x2e0]
call fcn.0040a440
lea ecx, [ebp - 0x2a8]
call fcn.0040a440
lea ecx, [ebp - 0x350]
mov bl, 1
call fcn.0040a440
lea ecx, [ebp - 0x334]
call fcn.0040a440
lea ecx, [ebp - 0x36c]
call fcn.0040a440
lea ecx, [ebp - 0x2c4]
call fcn.0040a440
xor edi, edi
cmp dword [ebp - 0x278], 8
jb 0x42e0d9
mov eax, dword [ebp - 0x28c]
push eax
call fcn.00406fa9
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 0x42e10b
mov edx, dword [ebp - 0x270]
push edx
call fcn.00406fa9
add esp, 4
xor eax, eax
mov dword [ebp - 0x25c], esi
mov dword [ebp - 0x260], edi
mov word [ebp - 0x270], ax
jmp 0x42e127
mov esi, 7
cmp dword [ebp - 0x224], 8
jb 0x42e13f
mov ecx, dword [ebp - 0x238]
push ecx
call fcn.00406fa9
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.0040abf0
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.00401316
mov esp, ebp
pop ebp
ret 4