Function at 0x41a321
Capabilities:
Check if file exists

Disassembly:
push 0x30
mov eax, 0x4561d9
call fcn.00450b17
mov ebx, ecx
mov dword [ebp - 0x24], ebx
xor edi, edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x3c], edi
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0x38], eax
mov dword [ebp - 4], 1
lea esi, [ebx + 0x10]
push dword [esi]
lea ecx, [ebp - 0x28]
call fcn.0041a655
mov byte [ebp - 4], 2
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
neg eax
sbb al, al
inc al
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.00419a22
mov byte [ebp - 4], 1
cmp byte [ebp - 0x20], 0
je 0x41a3b7
push dword [esi]
push 0x40e110
push dword [0x460620]
call fcn.0042b279
add esp, 0xc
lea ecx, [ebp - 0x20]
call fcn.0042a66b
mov byte [ebp - 4], 4
push eax
mov ecx, esi
call fcn.00419a78
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.00419240
mov eax, dword [0x45d9d0]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2c]
call fcn.0042a9e5
mov byte [ebp - 4], 6
push dword [eax]
push 0x40e18c
lea eax, [ebp - 0x18]
push eax
call fcn.00418bd2
add esp, 0xc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2c]
call fcn.00419240
mov ecx, esi
call fcn.0042b1c0
lea eax, [ebx + 0x14]
push dword [ebp - 0x18]
push dword [esi]
push 0x40e1ac
push eax
call fcn.00418bd2
add esp, 0x10
push edi
lea eax, [ebp - 0x3c]
push eax
mov ecx, ebx
call fcn.00429dba
mov eax, dword [0x460620]
mov ecx, dword [eax]
mov dword [ebp - 0x2c], ecx
test ecx, ecx
je 0x41a43f
mov eax, dword [ecx]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x461448]
mov ecx, dword [ebp - 0x2c]
call esi
mov eax, dword [0x460620]
lea esi, [ebx + 0x10]
push dword [ebx + 0x14]
push 0x40e1b8
push eax
call fcn.0042b292
add esp, 0xc
mov dword [ebp - 0x3c], 1
lea eax, [ebp - 0x20]
push eax
sub esp, 0xc
mov edx, dword [esi]
mov ecx, dword [ebp - 0x18]
call fcn.00434821
mov esi, edi
mov dword [ebp - 0x1c], esi
cmp esi, dword [ebx + 0x1c]
jge 0x41a540
lea ecx, [ebx + 0x18]
push esi
call fcn.0041a6a7
push dword [eax]
lea ecx, [ebp - 0x14]
call fcn.0041a655
mov byte [ebp - 4], 7
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push dword [ebp - 0x14]
test eax, eax
jne 0x41a4af
push 0x40e208
push dword [0x460620]
call fcn.0042b279
jmp 0x41a4bf
push 0x40e270
push dword [0x460620]
call fcn.0042b2ab
add esp, 0xc
mov eax, dword [ebp - 0x14]
push dword [eax - 0xc]
lea ecx, [ebp - 0x14]
call fcn.0041a775
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripPathW]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0041a755
mov esi, dword [ebp - 0x14]
push dword [ebp - 0x1c]
lea ecx, [ebx + 0x18]
call fcn.0041a6a7
push dword [ebp - 0x20]
mov edx, esi
mov ecx, dword [eax]
call fcn.00434a1a
test eax, eax
je 0x41a515
push eax
push dword [ebp - 0x14]
push 0x40e2b8
push dword [0x460620]
call fcn.0042b279
add esp, 0x10
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x38], esi
push edi
lea eax, [ebp - 0x3c]
push eax
mov ecx, ebx
call fcn.00429dba
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00419a22
mov byte [ebp - 4], 5
inc esi
jmp 0x41a46a
push fcn.0041b580
push fcn.0041b580
push edi
mov esi, dword [ebp - 0x20]
push dword [esi]
call dword [sym.imp.Cabinet.dll_FCIFlushCabinet]
add esp, 0x10
test eax, eax
jne 0x41a56f
mov eax, dword [0x460624]
test eax, eax
js 0x41a590
mov eax, 0x80004005
test eax, eax
js 0x41a590
push dword [esi]
call dword [sym.imp.Cabinet.dll_FCIDestroy]
pop ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jne 0x41a590
call fcn.00425904
push dword [ebx + 0x14]
push 0x40e318
push dword [0x460620]
call fcn.0042b292
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00419240
jmp 0x41a5ee
mov dword [ebp - 4], edi
mov dword [ebp - 0x3c], 2
lea esi, [ebx + 0x14]
mov dword [ebp - 0x38], esi
push edi
lea eax, [ebp - 0x3c]
push eax
mov ecx, ebx
call fcn.00429dba
push esi
mov ecx, dword [ebp + 8]
call fcn.00419a48
mov dword [ebp - 4], edi
mov dword [ebp - 0x30], 1
mov eax, dword [ebp + 8]
call fcn.00450a75
ret 4