Function at 0x422a34
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
mov eax, dword [0x58569c]
xor eax, esp
mov dword [esp + 0x98], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
call fcn.0040f951
push 0x1c
mov ecx, 0x1f7
pop eax
call fcn.0040feae
call fcn.0040e52c
push eax
lea ecx, [esp + 0x8c]
call fcn.0040e552
push eax
lea eax, [esp + 0x70]
call fcn.0044a559
push 1
xor edi, edi
lea esi, [esp + 0x8c]
call fcn.004021a4
push 0xf
pop edi
push 4
push str.fast
lea ecx, [esp + 0x3c]
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.00405913
mov esi, dword [0x59f98c]
lea eax, [esp + 0x34]
push eax
call fcn.0044cf63
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [esp + 0x3c]
mov byte [esp + 0x17], al
call fcn.0040582f
cmp byte [esp + 0xf], bl
je 0x422cad
push 9
push str.core_path
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.00405913
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x38]
push eax
push dword [0x59f98c]
call fcn.0044d024
push ebx
push esi
lea ecx, [esp + 0x20]
call fcn.0040582f
push 8
pop esi
push esi
push str.ext_path
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.00405913
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x54]
push eax
push dword [0x59f98c]
call fcn.0044d024
push ebx
push 1
lea ecx, [esp + 0x20]
call fcn.0040582f
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], esi
jae 0x422b70
lea eax, [esp + 0x34]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call edi
test eax, eax
je 0x422c3b
mov eax, dword [esp + 0x50]
cmp dword [esp + 0x64], esi
jae 0x422b8f
lea eax, [esp + 0x50]
push eax
call edi
test eax, eax
je 0x422c3b
mov ecx, dword [esp + 0x50]
cmp dword [esp + 0x64], esi
jae 0x422ba8
lea ecx, [esp + 0x50]
mov edx, dword [esp + 0x34]
cmp dword [esp + 0x48], esi
jae 0x422bb6
lea edx, [esp + 0x34]
mov eax, dword [esp + 0x6c]
cmp dword [esp + 0x80], esi
jae 0x422bc7
lea eax, [esp + 0x6c]
push edx
push eax
call fcn.00421ff2
mov byte [esp + 0xf], al
cmp al, bl
jne 0x422be1
push dword [esp + 0x10]
call fcn.00422536
jmp 0x422bf9
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x6c]
mov dword [eax], 1
push ecx
add eax, 0x24
push eax
call fcn.0044a59f
mov bl, byte [esp + 0xf]
push 1
xor edi, edi
lea esi, [esp + 0x54]
call fcn.004021a4
push 1
lea esi, [esp + 0x38]
call fcn.004021a4
push 1
xor edi, edi
lea esi, [esp + 0x70]
call fcn.004021a4
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.004fe191
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], ax
call fcn.0040e52c
push eax
lea ecx, [esp + 0x8c]
call fcn.0040edde
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x8c]
call fcn.00407693
pop ecx
test eax, eax
je 0x422c8b
call fcn.00422e84
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x20]
push ecx
add eax, 0x54
call fcn.004020dc
push 1
xor edi, edi
lea esi, [esp + 0x8c]
call fcn.004021a4
push 1
lea esi, [esp + 0x1c]
call fcn.004021a4
mov bl, 1
jmp 0x422bfd
mov edi, dword [esp + 0x10]
mov ecx, edi
call fcn.00421edd
test al, al
jne 0x422cd9
call fcn.0040f951
push 0x1d
mov ecx, 0x1f5
pop eax
call fcn.0040feae
mov dword [edi], 4
jmp 0x422c15
call fcn.0040f951
push 0x1c
mov ecx, 0x1f8
pop eax
call fcn.0040feae
push edi
lea ecx, [esp + 0x70]
call fcn.004223ed
test al, al
jne 0x422d04
push edi
call fcn.00422536
jmp 0x422c15
call fcn.0040f951
push 0x1c
mov ecx, 0x1f9
pop eax
call fcn.0040feae
lea eax, [esp + 0x6c]
push eax
lea eax, [edi + 0x24]
push eax
call fcn.0044a59f
mov dword [edi], esi
mov bl, 1
jmp 0x422c15