Function at 0x422989
Capabilities:
Check if file exists

Disassembly:
push 0xc60
mov eax, 0x442dc8
call fcn.0043d71c
mov eax, dword [ebp + 8]
mov esi, 0x208
mov dword [ebp - 0xc64], eax
xor ebx, ebx
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0xc5c], eax
lea eax, [ebp - 0xc40]
push ebx
push eax
mov dword [ebp - 0xc6c], ebx
call fcn.00429120
push esi
lea eax, [ebp - 0x830]
push ebx
push eax
call fcn.00429120
add esp, 0x18
call fcn.00424d26
test al, al
je 0x4229f0
push eax
pop ebx
pop edx
push edi
push edi
pop esp
pop esp
push esi
push esi
pop edx
push edx
pop ebx
push edx
push esi
push edi
push ebp
pop ebp
call fcn.00425314
test al, al
je 0x422a19
pop eax
pop edx
pop ecx
pop ebx
pop edx
push ebx
pop ebp
pop edi
push esp
pop esp
push esp
push edi
pop edx
push edi
push ebx
pop edx
push edx
push edx
push edx
pop esi
push eax
push ebx
pop edx
push esi
pop esp
push ebp
push edi
pop edx
pop ebx
push edx
pop edx
push ebx
call fcn.00424ce1
test al, al
je 0x422a35
push edi
pop ecx
push edi
push ebp
pop ecx
push edx
pop edx
push esi
pop esi
pop ebp
pop edi
push ebx
push ecx
push esp
pop esp
pop esi
push edx
pop ebp
push eax
mov esi, 0x208
lea eax, [ebp - 0x628]
push esi
xor ebx, ebx
push ebx
push eax
call fcn.00429120
push esi
lea eax, [ebp - 0xa38]
push ebx
push eax
call fcn.00429120
push esi
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.00429120
push esi
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.00429120
add esp, 0x30
call fcn.0042501d
test al, al
je 0x422a9e
push edi
push edi
push ebp
pop edi
push esi
pop ebx
pop ecx
push ecx
push edi
push esp
pop ecx
pop esi
pop esp
push esi
pop esi
push ecx
push esi
pop edi
pop esi
pop ebp
push edx
push eax
pop edx
pop edx
push edi
push edx
push edi
push esi
pop ebp
pop esi
call fcn.00425245
test al, al
je 0x422abb
push esp
pop esp
push esp
pop edx
push edx
pop edi
pop edi
pop eax
push ebx
push ecx
pop ecx
push ebx
push ebx
pop edi
pop ebp
pop ebx
push ecx
push edi
pop ebp
push edi
call fcn.004251bb
test al, al
je 0x422ae3
pop esi
pop esp
pop edi
push edx
push ecx
push edi
push edi
pop ecx
push eax
push ebx
push ebp
push eax
push eax
pop ebx
push esp
pop ecx
push esp
pop ecx
pop ebx
push esp
pop edx
pop edx
push ecx
pop edi
pop edi
push ebp
pop esi
pop esi
push ebx
pop eax
pop esi
xor ecx, ecx
mov dword [ebp - 0xc44], 7
xor eax, eax
mov dword [ebp - 0xc48], ecx
mov word [ebp - 0xc58], ax
push ecx
push 0x1a
lea eax, [ebp - 0xc40]
mov dword [ebp - 4], ecx
push eax
push ecx
call fcn.00422e1b
lea eax, [ebp - 0xc40]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004316c8
lea eax, [ebp - 0x218]
push eax
call fcn.004316ea
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.0042927a
add esp, 0x24
mov dword [ebp - 0xc60], eax
call fcn.00424d6b
test al, al
je 0x422b6e
push ebp
pop ebp
pop edi
push edx
pop ebx
push esi
pop ecx
pop edi
pop edi
pop esp
pop eax
push ecx
push ecx
pop esi
push edi
push edx
push esi
pop esp
push eax
pop ebp
push edi
push esi
pop ecx
pop ebp
pop eax
push esp
pop ecx
pop edi
pop eax
pop esp
call fcn.00424c9c
test al, al
je 0x422b8b
pop esi
pop ebx
pop ecx
pop edx
pop edx
push eax
pop ebp
pop ebp
push esi
push ebp
push ebx
pop edx
push edx
push esp
pop edx
push edi
pop ebx
pop edx
pop ecx
push ecx
call fcn.00425314
test al, al
je 0x422bb0
push eax
pop edi
pop edi
pop ecx
push edx
pop edx
push eax
push esi
pop esi
pop eax
push esi
push edx
push edi
push ebp
pop esi
push esi
pop ecx
push ebp
pop esp
push edx
push ecx
pop edi
pop esp
pop edi
pop ebp
push ebp
push ecx
push esi
mov eax, dword [ebp - 0xc60]
test eax, eax
jne 0x422be9
push dword [ebp - 0xc5c]
lea eax, [ebp - 0xc58]
push eax
call fcn.004223da
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc64]
lea eax, [ebp - 0xc58]
push eax
call fcn.0041fd17
push 0
push 1
jmp 0x422e04
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.004316c8
lea eax, [ebp - 0x830]
push str.Local
push eax
call fcn.00431657
add esp, 0x10
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor edx, edx
xor ecx, ecx
inc edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0xc60], ecx
call fcn.004252cf
test al, al
je 0x422c51
push ecx
push esi
push edx
pop edx
push ecx
pop edi
push ecx
push esp
push edx
pop ecx
pop ebx
push esp
push esi
push eax
push ecx
push ebp
pop ebx
push esi
pop esp
push edi
pop esi
pop esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x628]
push eax
call fcn.004316c8
lea eax, [ebp - 0x628]
push str.LocalLow
push eax
call fcn.00431657
add esp, 0x10
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
test eax, eax
push 1
pop eax
cmovne ecx, eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xa38]
mov dword [ebp - 0xc68], ecx
push eax
call fcn.004316c8
lea eax, [ebp - 0xa38]
push str.Roaming
push eax
call fcn.00431657
add esp, 0x10
call fcn.004250a7
test al, al
je 0x422ce5
push edi
push ebx
pop edx
pop esi
push ebx
push eax
push eax
push edi
push esi
pop ecx
push ebx
pop ebx
pop esi
pop edx
push ecx
pop ecx
push esp
pop edi
push esp
pop edx
push ebp
push ebp
push eax
push ebx
pop esi
push edx
pop eax
push edx
pop ecx
push ecx
push esi
pop ebp
call fcn.00425131
test al, al
je 0x422d00
pop esi
push ebx
pop eax
pop ebp
pop eax
push esp
push ecx
push edx
pop ebp
push eax
push esp
push ebx
push ebx
push esi
push ebp
pop ecx
pop ecx
push esp
call fcn.00424ce1
test al, al
je 0x422d1b
push esi
pop ebp
pop edx
push ebx
push esp
pop ebx
pop ecx
pop edi
pop edx
pop eax
push ebx
push ebx
push edx
push edx
push edi
push edx
pop ebp
push ecx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0xa38]
push eax
call ebx
xor ecx, ecx
test eax, eax
push 1
pop edi
cmovne ecx, edi
cmp dword [ebp - 0xc60], 0
je 0x422db5
cmp dword [ebp - 0xc68], 0
je 0x422db5
test ecx, ecx
je 0x422db5
push dword [ebp - 0xc5c]
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x420]
push str._s_s_
push eax
call fcn.00406e60
add esp, 0x10
lea eax, [ebp - 0x420]
push eax
call ebx
test eax, eax
jne 0x422d85
lea eax, [ebp - 0x420]
push eax
call fcn.00422287
pop ecx
cmp word [ebp - 0x420], 0
jne 0x422d93
xor eax, eax
jmp 0x422da0
lea eax, [ebp - 0x420]
push eax
call fcn.004316ea
pop ecx
push eax
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0xc58]
call fcn.00405b60
jmp 0x422def
call fcn.00425131
test al, al
je 0x422ddb
pop edx
push edx
pop ebx
pop edi
pop eax
push ebp
push edi
push edx
push eax
push eax
pop ebx
pop ebx
push esi
pop ebx
pop ecx
push ebp
pop ebx
push edi
push eax
pop ecx
push edx
push eax
push ecx
pop esi
push eax
push esp
xor edi, edi
inc edi
push dword [ebp - 0xc5c]
lea eax, [ebp - 0xc58]
push eax
call fcn.004223da
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc64]
lea eax, [ebp - 0xc58]
push eax
call fcn.0041fd17
push 0
push edi
lea ecx, [ebp - 0xc58]
call fcn.00405650
mov eax, dword [ebp - 0xc64]
call fcn.0043d6d7
ret