Function at 0x42b760
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507102
mov eax, dword fs:[0]
push eax
sub esp, 0x384
mov eax, dword [0x54e938]
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.0040a8c0
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 0x51407c
lea edx, [ebp - 0x21c]
push 0x105
push edx
mov byte [ebp - 4], 1
call fcn.00408c10
add esp, 0x10
test eax, eax
jne 0x42bc42
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 0x42b813
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x270]
call fcn.00406300
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.00406300
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.0042bcb0
add esp, 0xc
cmp dword [ebp - 0x240], 8
mov byte [ebp - 4], 5
jb 0x42b8a1
mov eax, dword [ebp - 0x254]
push eax
call fcn.00406ec9
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 0x42b8cf
lea eax, [ebp - 0x28c]
lea edx, [ebp - 0x238]
push edx
push eax
lea ecx, [ebp - 0x390]
call fcn.0041fac0
test eax, eax
jne 0x42bbe1
cmp dword [ebp - 0x228], edi
je 0x42bbe1
cmp dword [ebp - 0x224], 8
mov eax, dword [ebp - 0x238]
jae 0x42b90b
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42bbe1
cmp dword [ebp - 0x224], 8
mov eax, dword [ebp - 0x238]
jae 0x42b92f
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x42bbe1
mov eax, dword [ebp - 0x228]
dec eax
push eax
lea ecx, [ebp - 0x238]
call fcn.00418750
cmp word [eax], 0x5c
je 0x42b966
push 0x5c
push 1
lea ecx, [ebp - 0x238]
call fcn.0040cd10
push str..exe
lea ecx, [ebp - 0x2c4]
call fcn.00408940
push str.ATFSVR
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 6
call fcn.00408940
lea ecx, [ebp - 0x270]
push ecx
push eax
lea edx, [ebp - 0x36c]
push edx
mov byte [ebp - 4], 7
call fcn.0042bcb0
add esp, 0xc
mov bl, 9
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], bl
call fcn.0040a2c0
lea eax, [ebp - 0x36c]
push eax
lea ecx, [ebp - 0x238]
push ecx
lea edx, [ebp - 0x2a8]
push edx
call fcn.0045ff10
lea ecx, [ebp - 0x2c4]
push ecx
push eax
lea edx, [ebp - 0x2fc]
push edx
mov byte [ebp - 4], 0xa
call fcn.0042bcb0
add esp, 0x18
push eax
mov ecx, esi
mov byte [ebp - 4], 0xb
call fcn.0049a9f0
lea ecx, [ebp - 0x2fc]
call fcn.0040a2c0
lea ecx, [ebp - 0x2a8]
mov byte [ebp - 4], bl
call fcn.0040a2c0
push 0x52adf0
lea ecx, [ebp - 0x2e0]
call fcn.00408940
mov edi, eax
push str.ATOK
lea ecx, [ebp - 0x2fc]
mov byte [ebp - 4], 0xc
call fcn.00408940
lea ecx, [ebp - 0x270]
push ecx
push eax
lea edx, [ebp - 0x2a8]
push edx
mov byte [ebp - 4], 0xd
call fcn.0042bcb0
push edi
push eax
lea eax, [ebp - 0x334]
push eax
mov byte [ebp - 4], 0xe
call fcn.00443d80
add esp, 0x18
lea ecx, [ebp - 0x2a8]
call fcn.0040a2c0
lea ecx, [ebp - 0x2fc]
call fcn.0040a2c0
mov bl, 0x12
lea ecx, [ebp - 0x2e0]
mov byte [ebp - 4], bl
call fcn.0040a2c0
lea ecx, [ebp - 0x334]
push ecx
lea edx, [ebp - 0x238]
push edx
lea eax, [ebp - 0x318]
push eax
call fcn.0045ff10
lea ecx, [ebp - 0x2c4]
push ecx
push eax
lea edx, [ebp - 0x254]
push edx
mov byte [ebp - 4], 0x13
call fcn.0042bcb0
add esp, 0x18
push eax
mov ecx, esi
mov byte [ebp - 4], 0x14
call fcn.0049a9f0
lea ecx, [ebp - 0x254]
call fcn.0040a2c0
lea ecx, [ebp - 0x318]
mov byte [ebp - 4], bl
call fcn.0040a2c0
push 0x52addc
lea ecx, [ebp - 0x388]
call fcn.00408940
mov edi, eax
push str.ATOK
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 0x15
call fcn.00408940
lea ecx, [ebp - 0x270]
push ecx
push eax
lea edx, [ebp - 0x318]
push edx
mov byte [ebp - 4], 0x16
call fcn.0042bcb0
push edi
push eax
lea eax, [ebp - 0x350]
push eax
mov byte [ebp - 4], 0x17
call fcn.00443d80
add esp, 0x18
lea ecx, [ebp - 0x318]
call fcn.0040a2c0
lea ecx, [ebp - 0x254]
call fcn.0040a2c0
lea ecx, [ebp - 0x388]
mov byte [ebp - 4], 0x1b
call fcn.0040a2c0
lea ecx, [ebp - 0x350]
push ecx
lea edx, [ebp - 0x238]
push edx
lea eax, [ebp - 0x2a8]
push eax
call fcn.0045ff10
lea ecx, [ebp - 0x2c4]
push ecx
push eax
lea edx, [ebp - 0x2e0]
mov byte [ebp - 4], 0x1c
push edx
call fcn.0042bcb0
add esp, 0x18
push eax
mov ecx, esi
mov byte [ebp - 4], 0x1d
call fcn.0049a9f0
lea ecx, [ebp - 0x2e0]
call fcn.0040a2c0
lea ecx, [ebp - 0x2a8]
call fcn.0040a2c0
lea ecx, [ebp - 0x350]
mov bl, 1
call fcn.0040a2c0
lea ecx, [ebp - 0x334]
call fcn.0040a2c0
lea ecx, [ebp - 0x36c]
call fcn.0040a2c0
lea ecx, [ebp - 0x2c4]
call fcn.0040a2c0
xor edi, edi
cmp dword [ebp - 0x278], 8
jb 0x42bbf9
mov eax, dword [ebp - 0x28c]
push eax
call fcn.00406ec9
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 0x42bc2b
mov edx, dword [ebp - 0x270]
push edx
call fcn.00406ec9
add esp, 4
xor eax, eax
mov dword [ebp - 0x25c], esi
mov dword [ebp - 0x260], edi
mov word [ebp - 0x270], ax
jmp 0x42bc47
mov esi, 7
cmp dword [ebp - 0x224], 8
jb 0x42bc5f
mov ecx, dword [ebp - 0x238]
push ecx
call fcn.00406ec9
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.0040aa70
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