Function at 0x427ad0
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 0x53e825
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x240
mov eax, dword [0x58f070]
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 0x55c340
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x220]
push 0x104
push eax
call fcn.00522412
mov eax, dword [0x5993b4]
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 0x427ba9
push 0x1f0
call fcn.0050d2f7
mov esi, eax
add esp, 4
mov dword [ebp - 0x24c], esi
push 0x1f0
push 0
push esi
mov dword [ebp - 4], 0
call fcn.00510fa0
add esp, 0xc
mov ecx, esi
call fcn.0042aa20
mov dword [ebp - 4], 0xffffffff
mov dword [0x5993b4], eax
cmp dword [edi + 0x14], 8
mov eax, dword [eax + 0x1ec]
mov eax, dword [eax + 0x44]
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x234], 0x43
jb 0x427bcc
mov eax, dword [edi]
jmp 0x427bce
mov eax, edi
push eax
lea eax, [ebp - 0x220]
push 0x104
push eax
call fcn.00522412
add esp, 0xc
cmp dword [edi + 0x10], 0
je 0x427c2e
cmp dword [edi + 0x14], 8
jb 0x427bf3
mov eax, dword [edi]
jmp 0x427bf5
mov eax, edi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call esi
test eax, eax
jne 0x427c2e
lea eax, [ebp - 0x220]
push eax
call esi
test eax, eax
jne 0x427c2e
nop
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x427c2e
lea eax, [ebp - 0x220]
push eax
call esi
test eax, eax
je 0x427c10
lea eax, [ebp - 0x220]
mov dword [ebp - 0x230], 0x427700
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp - 0x224]
cmp dword [eax + 0x14], 8
jb 0x427c52
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 0x427c86
mov ecx, dword [ebp - 0x248]
push 1
push str.74310
call fcn.00412ae0
xor al, al
jmp 0x427d3b
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
mov esi, eax
test esi, esi
je 0x427d39
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 0x427cdf
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 0x427ced
xor ecx, ecx
jmp 0x427d05
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x427cf6
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x220]
mov ecx, edi
push eax
call fcn.00412ae0
mov esi, dword [ebp - 0x248]
mov ecx, esi
push 1
push 0x55fd54
call fcn.00412ae0
cmp dword [edi + 0x10], 0
je 0x427d39
mov edx, esi
mov ecx, edi
call fcn.004278b0
jmp 0x427d3b
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.0050ce8d
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret