Function at 0x45ecf3
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4aa941
call fcn.004a81a8
sub esp, 0x5e4
push ebx
push esi
push edi
xor ebx, ebx
push 0x208
lea eax, [ebp - 0x5ee]
push ebx
mov dword [ebp - 4], 1
push eax
mov word [ebp - 0x5f0], bx
call fcn.0048b640
add esp, 0xc
lea eax, [ebp - 0x5f0]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00405e3a
mov eax, dword [ebp + 8]
add eax, 0xc
mov byte [ebp - 4], 2
mov ecx, dword [eax]
cmp dword [ecx - 0xc], ebx
jne 0x45ede5
mov esi, 0x104
push esi
lea eax, [ebp - 0x5f0]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x45ed9c
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405bca
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.00405bca
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
call fcn.00405bca
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc
lea eax, [ebp - 0x5f0]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00406055
push esi
lea esi, [ebp - 0x10]
call fcn.00405cfb
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
cmp dword [ebp - 0x10], ebx
jne 0x45edc5
xor eax, eax
jmp 0x45edce
push dword [ebp - 0x10]
call fcn.0048bee5
pop ecx
lea edx, [ebp - 0x10]
call fcn.00405cc2
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], ebx
je 0x45ed6b
push str.datalanguage_
jmp 0x45edf2
lea edi, [ebp - 0x10]
call fcn.004050f0
push 0x4b9cec
lea eax, [ebp - 0x10]
push eax
call fcn.0040652b
mov esi, dword [ebp + 0x10]
push dword [esi - 0xc]
lea eax, [ebp - 0x10]
push esi
call fcn.00406b19
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45ee35
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405bca
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.00405bca
lea eax, [esi - 0x10]
jmp 0x45ed84
lea eax, [ebp - 0x150]
push eax
call fcn.0040177e
push ebx
mov byte [ebp - 4], 3
push dword [ebp - 0x10]
lea eax, [ebp - 0xd4]
mov dword [ebp - 0xd8], eax
lea eax, [ebp - 0xd8]
push eax
call fcn.00407011
mov byte [ebp - 4], 4
push dword [ebp - 0xd8]
lea ecx, [ebp - 0x150]
call fcn.004017d6
test al, al
jne 0x45eea8
lea eax, [ebp - 0xd4]
cmp dword [ebp - 0xd8], eax
je 0x45ee94
push dword [ebp - 0xd8]
call fcn.0048b2f0
pop ecx
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 2
call fcn.00402da1
jmp 0x45ee17
lea eax, [ebp - 0x150]
call fcn.00402b17
cmp eax, ebx
jne 0x45ef07
lea eax, [ebp - 0xd4]
cmp dword [ebp - 0xd8], eax
je 0x45eed1
push dword [ebp - 0xd8]
call fcn.0048b2f0
pop ecx
xor bl, bl
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 2
call fcn.00402da1
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405bca
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.00405bca
lea eax, [esi - 0x10]
call fcn.00405bca
mov al, bl
jmp 0x45ed8b
push 0x4bee24
call fcn.00402ae2
mov edi, eax
cmp edi, ebx
je 0x45f056
push 0x4bee4c
mov eax, edi
call fcn.004013ca
push dword [ebp + 0xc]
lea esi, [ebp - 0x1d4]
mov ebx, eax
call fcn.00406ff6
push dword [eax]
mov eax, edi
call fcn.004013ca
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1d0]
cmp dword [ebp - 0x1d4], eax
je 0x45ef5d
push dword [ebp - 0x1d4]
call fcn.0048b2f0
pop ecx
test ebx, ebx
je 0x45f03d
cmp dword [ebp - 0x14], 0
je 0x45f03d
lea eax, [ebp - 0x2d4]
mov esi, 0xfde9
push esi
mov dword [ebp - 0x2d8], eax
push ebx
lea eax, [ebp - 0x2d8]
push eax
call fcn.0042a450
mov byte [ebp - 4], 5
push dword [ebp - 0x2d8]
lea eax, [ebp - 0x4c]
call fcn.00408e3f
lea eax, [ebp - 0x2d4]
mov byte [ebp - 4], 7
cmp dword [ebp - 0x2d8], eax
je 0x45efbe
push dword [ebp - 0x2d8]
call fcn.0048b2f0
pop ecx
push esi
push dword [ebp - 0x14]
lea eax, [ebp - 0x3d8]
mov dword [ebp - 0x3dc], eax
lea eax, [ebp - 0x3dc]
push eax
call fcn.0042a450
mov byte [ebp - 4], 8
push dword [ebp - 0x3dc]
lea eax, [ebp - 0x30]
call fcn.00408e3f
lea eax, [ebp - 0x3d8]
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x3dc], eax
je 0x45f00a
push dword [ebp - 0x3dc]
call fcn.0048b2f0
pop ecx
lea eax, [ebp - 0x4c]
push eax
push dword [ebp + 8]
call fcn.004626d8
push 0xffffffffffffffff
push eax
xor ebx, ebx
lea eax, [ebp - 0x30]
call fcn.00408f68
push ebx
push 1
lea esi, [ebp - 0x30]
call fcn.004068e0
push ebx
push 1
lea esi, [ebp - 0x4c]
mov byte [ebp - 4], 4
call fcn.004068e0
push 0x4bee24
mov eax, edi
call fcn.00402a92
mov edi, eax
test edi, edi
jne 0x45ef1b
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0xd4]
cmp dword [ebp - 0xd8], eax
je 0x45f070
push dword [ebp - 0xd8]
call fcn.0048b2f0
pop ecx
mov bl, 1
jmp 0x45eed3