Function at 0x41af59
Capabilities:
Check if file exists

Disassembly:
push 0x1c
mov eax, 0x58ea9b
call fcn.0055a6a0
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x20], ebx
call fcn.00526109
push eax
lea ecx, [ebp - 0x10]
call fcn.004049e5
mov ecx, dword [edi]
mov dword [ebp - 4], ebx
test ecx, ecx
je 0x41b01f
lea eax, [ebp - 0x1c]
push eax
call fcn.00425231
mov ecx, eax
call fcn.0041e214
mov ecx, dword [ebp - 0x1c]
mov eax, dword [eax]
lea ecx, [ecx - 0x10]
mov esi, dword [eax - 0xc]
call fcn.0040525e
mov ecx, dword [edi]
test esi, esi
je 0x41aff0
lea eax, [ebp + 8]
push eax
call fcn.00425231
mov ecx, eax
call fcn.0041e214
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004057f8
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], bl
lea ecx, [ecx - 0x10]
call fcn.0040525e
mov ecx, dword [edi]
call fcn.00425231
mov ecx, eax
call fcn.0041e210
mov esi, dword [ebp - 0x10]
mov edi, eax
jmp 0x41b247
lea eax, [ebp - 0x1c]
push eax
call fcn.00425231
mov ecx, eax
call fcn.0041e2d3
push 0x5a6318
push dword [eax]
call fcn.00565269
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov esi, eax
add ecx, 0xfffffff0
call fcn.0040525e
test esi, esi
je 0x41b037
mov ecx, dword [edi]
mov eax, dword [ecx]
call dword [eax + 0x34]
test al, al
je 0x41b03f
mov ecx, dword [edi]
push dword [ebp + 8]
push dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x38]
mov esi, dword [ebp - 0x10]
jmp 0x41b303
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0041b7ee
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.004057f8
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], bl
lea ecx, [ecx - 0x10]
call fcn.0040525e
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], 0
jne 0x41b244
push dword [ebp + 8]
call fcn.00414698
pop ecx
test al, al
jne 0x41b303
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.0041b9a6
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.004057f8
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], bl
lea ecx, [ecx - 0x10]
call fcn.0040525e
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], 0
jne 0x41b244
push dword [ebp + 8]
call fcn.00414698
pop ecx
test al, al
jne 0x41b303
mov eax, dword [edi + 0x10]
cmp dword [eax - 0xc], 0
je 0x41b107
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.0041b8a2
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.004057f8
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], bl
lea ecx, [ecx - 0x10]
call fcn.0040525e
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], 0
jne 0x41b244
push dword [ebp + 8]
call fcn.00414698
pop ecx
test al, al
jne 0x41b303
cmp dword [edi + 0x14], ebx
je 0x41b1f4
push ebx
lea ecx, [edi + 0x18]
push 0x5a729c
call fcn.00414e98
or ebx, 0xffffffff
cmp eax, ebx
je 0x41b1f2
mov eax, dword [edi + 0x18]
sub eax, 0x10
push eax
call fcn.00405aab
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
mov eax, dword [esi - 0xc]
push 0x5c
push esi
mov byte [ebp - 4], 5
mov dword [ebp - 0x24], eax
call fcn.0055f533
add esp, 0xc
test eax, eax
je 0x41b16b
mov ebx, eax
sub ebx, esi
sar ebx, 1
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x1c]
sub eax, ebx
dec eax
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0041bff1
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 6
call fcn.004057f8
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
mov byte [ebp - 4], 5
call fcn.0040525e
push ecx
mov esi, esp
mov dword [ebp - 0x28], esi
mov ebx, dword [ebp - 0x1c]
add ebx, 0xfffffff0
push ebx
call fcn.00405aab
add eax, 0x10
pop ecx
mov dword [esi], eax
mov ecx, edi
lea eax, [ebp - 0x28]
push eax
call fcn.0041a9db
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 7
call fcn.004057f8
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.0040525e
mov esi, dword [ebp - 0x10]
mov ecx, ebx
mov byte [ebp - 4], 0
cmp dword [esi - 0xc], 0
je 0x41b1ed
call fcn.0040525e
xor ebx, ebx
jmp 0x41b244
call fcn.0040525e
xor ebx, ebx
push dword [ebp + 8]
call fcn.00414698
pop ecx
test al, al
jne 0x41b303
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.0041b313
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 8
call fcn.004057f8
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 4], bl
lea ecx, [ecx - 0x10]
call fcn.0040525e
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], ebx
jne 0x41b244
push dword [ebp + 8]
call fcn.00414698
pop ecx
test al, al
jne 0x41b303
mov edi, dword [ebp - 0x20]
mov dword [ebp + 8], edi
push esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
cmp dword [esi - 0xc], 0
je 0x41b2cd
test bl, bl
je 0x41b2d1
push 1
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
jne 0x41b296
push 1
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x41b2cd
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x41b2cd
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x41b2b1
push ecx
call dword [sym.imp.USER32.dll_CopyIcon]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov edi, dword [ebp + 0xc]
mov dword [edi], eax
lea eax, [ebp - 0x10]
mov dword [edi + 4], ecx
lea ecx, [edi + 8]
push eax
call fcn.004057f8
mov eax, dword [ebp + 8]
mov dword [edi + 0xc], eax
jmp 0x41b303
test bl, bl
jne 0x41b2ea
mov esi, 0x5a13b8
push esi
call fcn.005617fa
pop ecx
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.004052ca
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
lea ecx, [edi + 8]
mov dword [edi], ebx
mov dword [edi + 4], ebx
call fcn.004057f8
mov dword [edi + 0xc], ebx
lea ecx, [esi - 0x10]
call fcn.0040525e
call fcn.0055a669
ret 8