Function at 0x41c01a
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x88
mov eax, dword [0x5c2460]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push esi
xor ebx, ebx
mov esi, ecx
mov dword [esp + 0xc], ebx
call fcn.0042eea1
push 0x1f7
push 0x1c
call fcn.0042f55d
lea eax, [esp + 0x74]
push eax
call fcn.0041fa7f
mov ecx, eax
call fcn.0041faa6
push ecx
push ecx
mov ecx, esp
push eax
call fcn.004050d6
lea ecx, [esp + 0x34]
call fcn.00458fb0
push ebx
push 1
lea ecx, [esp + 0x7c]
call fcn.0040536f
mov ecx, dword [0x768cd0]
push str.fast
call fcn.0045f070
test al, al
je 0x41c201
mov eax, str.core_path
push eax
mov dword [esp + 0x10], eax
call fcn.00404a2a
pop ecx
mov ecx, dword [0x768cd0]
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0045f170
mov eax, str.ext_path
push eax
mov dword [esp + 0x10], eax
call fcn.00404a2a
pop ecx
mov ecx, dword [0x768cd0]
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.0045f170
cmp dword [esp + 0x28], 8
mov eax, dword [esp + 0x14]
jae 0x41c0f8
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41c179
cmp dword [esp + 0x58], 8
mov eax, dword [esp + 0x44]
jae 0x41c112
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41c179
cmp dword [esp + 0x58], 8
mov edx, dword [esp + 0x44]
jae 0x41c12c
lea edx, [esp + 0x44]
cmp dword [esp + 0x28], 8
mov ecx, dword [esp + 0x14]
jae 0x41c13b
lea ecx, [esp + 0x14]
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
jae 0x41c14a
lea eax, [esp + 0x2c]
push edx
push ecx
push eax
call fcn.0041b679
mov bl, al
test bl, bl
jne 0x41c164
mov ecx, esi
call fcn.0041bb0c
jmp 0x41c1e5
lea eax, [esp + 0x2c]
mov dword [esi], 1
push eax
lea ecx, [esi + 0x2c]
call fcn.00459060
jmp 0x41c1e5
xor eax, eax
mov dword [esp + 0x70], 7
mov word [esp + 0x5c], ax
lea eax, [esp + 0x74]
push eax
mov dword [esp + 0x70], ebx
call fcn.0041fa7f
mov ecx, eax
call fcn.004202a2
lea edx, [esp + 0x5c]
lea ecx, [esp + 0x74]
call fcn.0043189c
test eax, eax
je 0x41c1c9
call fcn.00418617
add eax, 0x48
lea ecx, [esp + 0x5c]
cmp eax, ecx
je 0x41c1c9
push 0xffffffffffffffff
push ebx
push ecx
mov ecx, eax
call fcn.004059ba
push 0
push 1
lea ecx, [esp + 0x7c]
mov bl, 1
call fcn.0040536f
push 0
push 1
lea ecx, [esp + 0x64]
call fcn.0040536f
push 0
push 1
lea ecx, [esp + 0x4c]
call fcn.0040536f
push 0
push 1
lea ecx, [esp + 0x1c]
call fcn.0040536f
jmp 0x41c275
mov ecx, esi
call fcn.0041b580
test al, al
jne 0x41c225
call fcn.0042eea1
push 0x1f5
push 0x1d
call fcn.0042f55d
mov dword [esi], 4
jmp 0x41c275
call fcn.0042eea1
push 0x1f8
push 0x1c
call fcn.0042f55d
lea eax, [esp + 0x2c]
mov ecx, esi
push eax
call fcn.0041b9bc
test al, al
jne 0x41c24f
mov ecx, esi
call fcn.0041bb0c
jmp 0x41c275
call fcn.0042eea1
push 0x1f9
push 0x1c
call fcn.0042f55d
lea eax, [esp + 0x2c]
push eax
lea ecx, [esi + 0x2c]
call fcn.00459060
mov dword [esi], 1
mov bl, 1
lea ecx, [esp + 0x2c]
call fcn.00459030
mov ecx, dword [esp + 0x8c]
mov al, bl
pop esi
pop ebx
xor ecx, esp
call fcn.00501d03
mov esp, ebp
pop ebp
ret