Function at 0x421e50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59b6ed
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x608ec4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0
push 0
push 0x5abe40
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x421ee8
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x421ea1
sub ecx, edx
sar ecx, 1
inc ecx
cmp ecx, 0x3fffffff
jg 0x421ee8
lea ebx, [ecx + ecx]
mov eax, ebx
call fcn.0056faa0
mov esi, esp
test esi, esi
je 0x421ee8
push 0
push 0
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push 3
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor ecx, ecx
test eax, eax
cmove esi, ecx
jmp 0x421eea
xor esi, esi
call fcn.00431e1a
mov ecx, eax
test ecx, ecx
je 0x4220db
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.004033a0
test al, al
jne 0x421f38
test esi, esi
jne 0x421f20
xor ecx, ecx
jmp 0x421f2e
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x421f25
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x14]
call fcn.004036d0
mov dword [ebp - 4], 1
push dword [ebp - 0x18]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov esi, dword [ebp - 0x14]
push 0x5c
push esi
mov edi, dword [esi - 0xc]
call fcn.005803aa
mov ecx, eax
add esp, 8
sub ecx, esi
or ebx, 0xffffffff
test eax, eax
lea eax, [ebp - 0x1c]
cmove ecx, ebx
sub edi, ecx
lea ecx, [ebp - 0x14]
dec edi
push edi
push eax
call fcn.004104b0
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x1c]
push 0x5e21bf
push edi
call fcn.0057a1f3
add esp, 8
test eax, eax
jne 0x42206f
push 5
push str.Music
lea ecx, [ebp - 0x1c]
call fcn.004036d0
call fcn.00431e1a
mov ecx, eax
test ecx, ecx
je 0x4220e5
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 3
push eax
call fcn.004219a0
mov byte [ebp - 4], 4
mov edi, dword [ebp - 0x1c]
push edi
push dword [eax]
lea eax, [ebp - 0x20]
push str._s_s
push eax
call fcn.00403070
mov byte [ebp - 4], 3
add esp, 0x10
mov edx, dword [ebp - 0x24]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x422001
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
push eax
mov dword [ebp - 0x28], eax
call fcn.004039d0
mov ecx, dword [ebp + 8]
add eax, 0x10
mov edx, dword [ebp - 0x28]
add esp, 4
mov byte [ebp - 4], 2
mov dword [ecx], eax
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x422036
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x422051
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4220b7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4220b7
add esi, 0xfffffff0
push esi
call fcn.004039d0
mov ecx, dword [ebp + 8]
add eax, 0x10
add esp, 4
mov byte [ebp - 4], 1
add edi, 0xfffffff0
mov dword [ecx], eax
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x42209e
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4220b7
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp + 8]
lea esp, [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056ee93
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00403680
push 0x80004005
call fcn.00403680
int3