Function at 0x403720
Capabilities:
Create process on windows
Enumerate gui resources
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4075a6
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x40b008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0xbd], cl
mov byte [ebp - 0xbc], 0
lea ecx, [ebp - 0x10c]
push dword [ebp - 0xbc]
mov dword [ebp - 0xdc], 0
call fcn.004057f0
add esp, 4
lea edx, [ebp - 0x10c]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00402f60
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xf8]
cmp ecx, 8
jb 0x4037d3
mov edx, dword [ebp - 0x10c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4037c9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4037c9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00406460
add esp, 8
xor eax, eax
mov dword [ebp - 0xfc], 0
lea ecx, [ebp - 0x40]
mov dword [ebp - 0xf8], 7
mov word [ebp - 0x10c], ax
call fcn.00402ff0
test al, al
jne 0x40397b
lea eax, [ebp - 0xa0]
push eax
push 0
push 0
push 0x408220
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
mov byte [ebp - 0xbc], 0
lea ecx, [ebp - 0x13c]
push dword [ebp - 0xbc]
call fcn.004057f0
mov byte [ebp - 0xbc], 0
lea edx, [ebp - 0xa0]
push dword [ebp - 0xbc]
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 3
call fcn.00405820
add esp, 8
lea eax, [ebp - 0x124]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0xd8]
call fcn.004042a0
lea eax, [ebp - 0x13c]
mov dword [ebp - 0xdc], 0x40
push eax
lea ecx, [ebp - 0xd8]
call fcn.00401c10
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0x40]
call fcn.00402d70
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0xc4]
cmp ecx, 8
jb 0x4038d8
mov edx, dword [ebp - 0xd8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4038ce
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40396b
push ecx
push edx
call fcn.00406460
add esp, 8
xor eax, eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x110]
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xc4], 7
mov word [ebp - 0xd8], ax
cmp ecx, 8
jb 0x403935
mov edx, dword [ebp - 0x124]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40392b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40396b
push ecx
push edx
call fcn.00406460
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x128]
cmp ecx, 8
jb 0x40397b
mov edx, dword [ebp - 0x13c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403971
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403971
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00406460
add esp, 8
lea ecx, [ebp - 0x40]
call fcn.00402ff0
test al, al
je 0x403e1f
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x40]
call fcn.00401ee0
mov byte [ebp - 4], 6
mov edx, str.Launching_Spotify..._n
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.004049a0
xorps xmm0, xmm0
mov dword [ebp - 0x9c], 0x44
lea eax, [ebp - 0x40]
movlpd qword [ebp - 0x98], xmm0
push eax
lea ecx, [ebp - 0xf4]
movlpd qword [ebp - 0x90], xmm0
movups xmmword [ebp - 0xb8], xmm0
movlpd qword [ebp - 0x88], xmm0
movlpd qword [ebp - 0x80], xmm0
movlpd qword [ebp - 0x78], xmm0
movlpd qword [ebp - 0x70], xmm0
movlpd qword [ebp - 0x68], xmm0
movlpd qword [ebp - 0x60], xmm0
call fcn.004042a0
mov byte [ebp - 4], 7
mov edi, dword [ebp - 0xe0]
mov eax, edi
mov ecx, dword [ebp - 0xe4]
sub eax, ecx
cmp eax, 1
jb 0x403ab7
cmp edi, 8
lea edx, [ebp - 0xf4]
lea esi, [ecx + 1]
cmovae edx, dword [ebp - 0xf4]
mov dword [ebp - 0xe4], esi
mov dword [ebp - 0xbc], edx
cmp edx, 0x40854a
jae 0x403a65
lea eax, [edx + ecx*2]
cmp eax, 0x408548
jb 0x403a65
cmp edx, 0x408548
ja 0x403a59
xor edi, edi
jmp 0x403a6a
mov edi, edx
sub edi, 0x408548
sar edi, 1
jmp 0x403a6a
mov edi, 1
lea eax, [esi + esi]
push eax
lea ecx, [edx + 2]
push edx
push ecx
call sub.VCRUNTIME140.dll_memmove
lea esi, [edi + edi]
push esi
push 0x408548
push dword [ebp - 0xbc]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp - 0xbc]
lea edx, [edi*2 + 0x40854a]
mov eax, 1
add ecx, esi
sub eax, edi
add eax, eax
push eax
push edx
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0x24
lea eax, [ebp - 0xf4]
jmp 0x403acf
push 1
sub esp, 8
lea ecx, [ebp - 0xf4]
push dword [ebp - 0xdc]
push 1
call fcn.004058d0
mov dword [ebp - 0xc8], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0xd8], xmm0
mov dword [ebp - 0xc4], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xd8], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xc8], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
push 0x408540
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 8
call fcn.004045a0
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x18], xmm0
mov byte [ebp - 4], 0xa
xor ecx, ecx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov ecx, dword [ebp - 0xc4]
cmp ecx, 8
jb 0x403ba4
mov edx, dword [ebp - 0xd8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403b9a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403bf7
push ecx
push edx
call fcn.00406460
add esp, 8
xor eax, eax
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xc4], 7
mov word [ebp - 0xd8], ax
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0xe0]
cmp ecx, 8
jb 0x403c07
mov edx, dword [ebp - 0xf4]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403bfd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403bfd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00406460
add esp, 8
xor eax, eax
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 7
mov word [ebp - 0xf4], ax
cmp byte [ebp - 0xbd], al
je 0x403c39
push 0x40854c
lea ecx, [ebp - 0x28]
call fcn.004045a0
cmp dword [ebp - 0x44], 8
lea esi, [ebp - 0xb8]
push esi
lea ecx, [ebp - 0x58]
cmovae ecx, dword [ebp - 0x58]
lea esi, [ebp - 0x9c]
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
push esi
cmovae edx, dword [ebp - 0x28]
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push 0
push 0
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x403c89
push str.Could_not_start_Spotify_process
jmp 0x403e24
mov eax, dword [ebp - 0xb0]
xor esi, esi
mov edi, dword [sym.imp.USER32.dll_EnumWindows]
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0xa4]
push eax
push 0x4036b0
mov dword [ebp - 0xa0], esi
call edi
cmp dword [ebp - 0xa0], esi
jne 0x403d1c
nop dword [eax]
cmp esi, 0x1e
jge 0x403d00
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0xb0]
inc esi
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0xa4]
push eax
push 0x4036b0
mov dword [ebp - 0xa0], 0
call edi
cmp dword [ebp - 0xa0], 0
je 0x403cc0
jmp 0x403d1c
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.e_1_93m
call fcn.004049a0
mov edx, str.Spotify_is_taking_too_long_to_open._Try_re_injecting_if_Soggfy_doesnt_load_properly._ne_0m
mov ecx, eax
call fcn.004049a0
push dword [ebp - 0xb4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0xb8]
cmp ecx, 8
jb 0x403d68
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403d5e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403df2
push ecx
push edx
call fcn.00406460
add esp, 8
mov ecx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp ecx, 8
jb 0x403db2
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403da8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403df2
push ecx
push edx
call fcn.00406460
add esp, 8
mov ecx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
cmp ecx, 8
jb 0x403e02
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403df8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403df8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00406460
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040641d
mov esp, ebp
pop ebp
ret
push str.Spotify_installation_not_found.
lea ecx, [ebp - 0xa8]
call fcn.00401000
push 0x40983c
lea eax, [ebp - 0xa8]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3