Function at 0x403870
Capabilities:
Create process on windows
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4073ce
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
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 - 0xb9], cl
mov byte [ebp - 0xc0], 0
lea ecx, [ebp - 0xd8]
push dword [ebp - 0xc0]
call fcn.004055f0
add esp, 4
lea edx, [ebp - 0xd8]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.00402ff0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xc4]
cmp ecx, 8
jb 0x403919
mov edx, dword [ebp - 0xd8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40390f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40390f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00406260
add esp, 8
xor eax, eax
mov dword [ebp - 0xc8], 0
mov word [ebp - 0xd8], ax
lea ecx, [ebp - 0x58]
lea eax, [ebp - 0x40]
mov dword [ebp - 0xc4], 7
push eax
call fcn.00401ee0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.00403080
test al, al
je 0x403dd3
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Launching_Spotify..._n
call fcn.004047a0
xorps xmm0, xmm0
mov dword [ebp - 0x9c], 0x44
lea eax, [ebp - 0x58]
movlpd qword [ebp - 0x98], xmm0
push eax
lea ecx, [ebp - 0xf0]
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.00404250
mov byte [ebp - 4], 4
mov edi, dword [ebp - 0xdc]
mov eax, edi
mov ecx, dword [ebp - 0xe0]
sub eax, ecx
cmp eax, 1
jb 0x403a72
cmp edi, 8
lea edx, [ebp - 0xf0]
lea esi, [ecx + 1]
cmovae edx, dword [ebp - 0xf0]
mov dword [ebp - 0xe0], esi
mov dword [ebp - 0xc0], edx
cmp edx, 0x40857a
jae 0x403a20
lea eax, [edx + ecx*2]
cmp eax, 0x408578
jb 0x403a20
cmp edx, 0x408578
ja 0x403a14
xor edi, edi
jmp 0x403a25
mov edi, edx
sub edi, 0x408578
sar edi, 1
jmp 0x403a25
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 0x408578
push dword [ebp - 0xc0]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp - 0xc0]
lea edx, [edi*2 + 0x40857a]
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 - 0xf0]
jmp 0x403a8a
push 1
sub esp, 8
lea ecx, [ebp - 0xf0]
push dword [ebp - 0xc0]
push 1
call fcn.004056d0
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 0x408570
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 5
call fcn.00404550
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], 7
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 0x403b5f
mov edx, dword [ebp - 0xd8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403b55
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403bb2
push ecx
push edx
call fcn.00406260
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], 8
mov ecx, dword [ebp - 0xdc]
cmp ecx, 8
jb 0x403bc2
mov edx, dword [ebp - 0xf0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403bb8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403bb8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00406260
add esp, 8
xor eax, eax
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xdc], 7
mov word [ebp - 0xf0], ax
cmp byte [ebp - 0xb9], al
je 0x403bf4
push 0x40857c
lea ecx, [ebp - 0x28]
call fcn.00404550
cmp dword [ebp - 0x2c], 8
lea esi, [ebp - 0xb8]
push esi
lea ecx, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x40]
lea esi, [ebp - 0x9c]
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
push esi
cmovae edx, dword [ebp - 0x28]
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
push ecx
cmovae eax, dword [ebp - 0x58]
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 0x403c44
push str.Could_not_start_Spotify_process
jmp 0x403dd8
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 0x403800
mov dword [ebp - 0xa0], esi
call edi
cmp dword [ebp - 0xa0], esi
jne 0x403cd0
cmp esi, 0x1e
jge 0x403cb4
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 0x403800
mov dword [ebp - 0xa0], 0
call edi
cmp dword [ebp - 0xa0], 0
je 0x403c74
jmp 0x403cd0
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.004047a0
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.004047a0
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 0x403d1c
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403d12
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403da6
push ecx
push edx
call fcn.00406260
add esp, 8
mov ecx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp ecx, 8
jb 0x403d66
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403d5c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403da6
push ecx
push edx
call fcn.00406260
add esp, 8
mov ecx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp ecx, 8
jb 0x403db6
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403dac
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403dac
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00406260
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.0040621d
mov esp, ebp
pop ebp
ret
push str.Spotify_installation_not_found._Run_Install.ps1_and_try_again.
lea ecx, [ebp - 0xa8]
call fcn.00401000
push 0x409854
lea eax, [ebp - 0xa8]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3