Function at 0x412bd6
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x50
mov edi, ecx
mov eax, dword [0x6f4e3c]
xor eax, ebp
mov dword [esp + 0x48], eax
call fcn.00436db0
mov ecx, eax
push 0x1f7
push 0x1c
call fcn.004374f6
call fcn.004175be
lea esi, [esp + 0x30]
mov ecx, eax
push esi
call fcn.0041760e
movzx eax, byte [esi + 0xb]
test al, al
jns 0x412c23
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
lea ebx, [esp + 0x3c]
mov ecx, ebx
push eax
push esi
call fcn.0046ed80
cmp byte [esp + 0x3b], 0
jns 0x412c43
push dword [esp + 0x30]
call fcn.00517bd6
add esp, 4
lea esi, [edi + 0x24]
mov ecx, esi
push ebx
call fcn.0046ee60
call fcn.0046b890
mov ecx, eax
push str.fast
call fcn.0046bdb0
test al, al
je 0x412d0f
mov dword [esp], esi
mov dword [esp + 8], edi
call fcn.0046b890
mov esi, eax
mov eax, str.core_path
lea ebx, [esp + 0x24]
mov dword [ebx], eax
push eax
call fcn.0061fdf0
add esp, 4
mov dword [ebx + 4], eax
lea edi, [esp + 0x30]
mov ecx, esi
push ebx
push edi
call fcn.0046bf10
call fcn.0046b890
mov dword [esp + 4], eax
mov eax, str.ext_path
lea esi, [esp + 0x18]
mov dword [esi], eax
push eax
call fcn.0061fdf0
add esp, 4
mov dword [esi + 4], eax
mov ecx, dword [esp + 4]
push esi
push ebx
call fcn.0046bf10
cmp byte [edi + 0xb], 0
jns 0x412cce
mov edi, dword [esp + 0x30]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov edi, dword [esp + 8]
je 0x412d65
cmp byte [esp + 0x2f], 0
jns 0x412cec
mov ebx, dword [esp + 0x24]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x412d65
cmp byte [esp + 0x2f], 0
lea edx, [esp + 0x3c]
jns 0x412df0
mov eax, dword [esp + 0x24]
jmp 0x412df4
mov esi, ebx
mov ecx, edi
call fcn.00411f4a
mov ebx, eax
call fcn.00436db0
mov ecx, eax
test bl, bl
je 0x412dd1
push 0x1f8
push 0x1c
call fcn.004374f6
mov ecx, edi
push esi
call fcn.004123fe
test al, al
je 0x412de5
call fcn.00436db0
mov ecx, eax
push 0x1f9
push 0x1c
call fcn.004374f6
mov dword [edi], 1
mov bl, 1
jmp 0x412e65
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
call fcn.004175be
lea esi, [esp + 0xc]
mov ecx, eax
push esi
call fcn.004181aa
lea edi, [esp + 0x18]
push edi
push esi
call fcn.0043800e
add esp, 8
test eax, eax
je 0x412da3
call fcn.0040f010
mov ecx, eax
push edi
call fcn.0041086e
cmp byte [esp + 0x17], 0
jns 0x412db6
push dword [esp + 0xc]
call fcn.00517bd6
add esp, 4
cmp byte [esp + 0x23], 0
jns 0x412dc9
push dword [esp + 0x18]
call fcn.00517bd6
add esp, 4
mov bl, 1
lea esi, [esp + 0x24]
jmp 0x412e40
push 0x1f5
push 0x1d
call fcn.004374f6
mov dword [edi], 4
jmp 0x412dec
mov ecx, edi
call fcn.004126f6
xor ebx, ebx
jmp 0x412e65
lea eax, [esp + 0x24]
cmp byte [esp + 0x3b], 0
jns 0x412e01
mov ecx, dword [esp + 0x30]
jmp 0x412e05
lea ecx, [esp + 0x30]
cmp byte [esp + 0x47], 0
jns 0x412e10
mov edx, dword [esp + 0x3c]
push eax
push ecx
push edx
call fcn.004120a4
lea esi, [esp + 0x24]
test al, al
je 0x412e37
mov dword [edi], 1
lea eax, [esp + 0x3c]
mov ecx, dword [esp]
push eax
call fcn.0046ee60
mov bl, 1
jmp 0x412e40
mov ecx, edi
call fcn.004126f6
xor ebx, ebx
cmp byte [esi + 0xb], 0
jns 0x412e52
push dword [esp + 0x24]
call fcn.00517bd6
add esp, 4
cmp byte [esp + 0x3b], 0
jns 0x412e65
push dword [esp + 0x30]
call fcn.00517bd6
add esp, 4
lea ecx, [esp + 0x3c]
call fcn.0046ee40
mov ecx, dword [esp + 0x48]
xor ecx, ebp
call fcn.00517c1a
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret