Function at 0x41f300
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x592e65
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x240
mov eax, dword [0x60a070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x248], edx
mov edi, ecx
mov eax, dword [ebx + 8]
push 0x5c0ec0
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x220]
push 0x104
push eax
call fcn.00576df2
mov eax, dword [0x614a64]
xorps xmm0, xmm0
add esp, 0xc
mov dword [ebp - 0x244], 0
movq qword [ebp - 0x230], xmm0
mov dword [ebp - 0x228], 0
movups xmmword [ebp - 0x240], xmm0
test eax, eax
jne 0x41f3d9
push 0x2c0
call fcn.0055f301
mov esi, eax
add esp, 4
mov dword [ebp - 0x24c], esi
push 0x2c0
push 0
push esi
mov dword [ebp - 4], 0
call fcn.00562b20
add esp, 0xc
mov ecx, esi
call fcn.00420e70
mov dword [ebp - 4], 0xffffffff
mov dword [0x614a64], eax
cmp dword [edi + 0x14], 8
mov eax, dword [eax + 0x2b0]
mov eax, dword [eax + 0x60]
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x234], 0x43
jb 0x41f3fc
mov eax, dword [edi]
jmp 0x41f3fe
mov eax, edi
push eax
lea eax, [ebp - 0x220]
push 0x104
push eax
call fcn.00576df2
add esp, 0xc
cmp dword [edi + 0x10], 0
je 0x41f45e
cmp dword [edi + 0x14], 8
jb 0x41f423
mov eax, dword [edi]
jmp 0x41f425
mov eax, edi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call esi
test eax, eax
jne 0x41f45e
lea eax, [ebp - 0x220]
push eax
call esi
test eax, eax
jne 0x41f45e
nop
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x41f45e
lea eax, [ebp - 0x220]
push eax
call esi
test eax, eax
je 0x41f440
lea eax, [ebp - 0x220]
mov dword [ebp - 0x230], 0x41ef90
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp - 0x224]
cmp dword [eax + 0x14], 8
jb 0x41f482
mov eax, dword [eax]
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x240]
push eax
push 0x11
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x41f4b6
mov ecx, dword [ebp - 0x248]
push 1
push str.74310
call fcn.00413c10
xor al, al
jmp 0x41f56b
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
mov esi, eax
test esi, esi
je 0x41f569
lea eax, [ebp - 0x220]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x41f50f
mov eax, dword [ebp - 0x224]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x224]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp word [ebp - 0x220], 0
jne 0x41f51d
xor ecx, ecx
jmp 0x41f535
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41f526
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x220]
mov ecx, edi
push eax
call fcn.00413c10
mov esi, dword [ebp - 0x248]
mov ecx, esi
push 1
push 0x5c1df0
call fcn.00413c10
cmp dword [edi + 0x10], 0
je 0x41f569
mov edx, esi
mov ecx, edi
call fcn.0041f0e0
jmp 0x41f56b
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0055eeb4
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret