Function at 0x42a520
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 0x5e60f5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x240
mov eax, dword [0x67d070]
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 0x622628
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x220]
push 0x104
push eax
call fcn.005c9090
mov eax, dword [0x689928]
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 0x42a5f9
push 0x3d8
call fcn.00599c81
mov esi, eax
add esp, 4
mov dword [ebp - 0x24c], esi
push 0x3d8
push 0
push esi
mov dword [ebp - 4], 0
call fcn.005b3770
add esp, 0xc
mov ecx, esi
call fcn.0042ca50
mov dword [ebp - 4], 0xffffffff
mov dword [0x689928], eax
cmp dword [edi + 0x14], 8
mov eax, dword [eax + 0x3bc]
mov eax, dword [eax + 0x68]
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x234], 0x43
jb 0x42a61c
mov eax, dword [edi]
jmp 0x42a61e
mov eax, edi
push eax
lea eax, [ebp - 0x220]
push 0x104
push eax
call fcn.005c9090
add esp, 0xc
cmp dword [edi + 0x10], 0
je 0x42a67e
cmp dword [edi + 0x14], 8
jb 0x42a643
mov eax, dword [edi]
jmp 0x42a645
mov eax, edi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call esi
test eax, eax
jne 0x42a67e
lea eax, [ebp - 0x220]
push eax
call esi
test eax, eax
jne 0x42a67e
nop
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x42a67e
lea eax, [ebp - 0x220]
push eax
call esi
test eax, eax
je 0x42a660
lea eax, [ebp - 0x220]
mov dword [ebp - 0x230], 0x42a1b0
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp - 0x224]
cmp dword [eax + 0x14], 8
jb 0x42a6a2
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 0x42a6d6
mov ecx, dword [ebp - 0x248]
push 1
push str.7430
call fcn.00407060
xor al, al
jmp 0x42a78b
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
mov esi, eax
test esi, esi
je 0x42a789
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 0x42a72f
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 0x42a73d
xor ecx, ecx
jmp 0x42a755
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42a746
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x220]
mov ecx, edi
push eax
call fcn.00407060
mov esi, dword [ebp - 0x248]
mov ecx, esi
push 1
push 0x624130
call fcn.00407060
cmp dword [edi + 0x10], 0
je 0x42a789
mov edx, esi
mov ecx, edi
call fcn.0042a300
jmp 0x42a78b
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.00599c70
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret