Function at 0x4492a0
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x556ca5
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x62aabc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x48], edi
mov esi, dword [ebp + 8]
mov ecx, esi
push 0
push 0x559730
call fcn.00449660
cmp dword [esi + 0x10], eax
xorps xmm0, xmm0
movups xmmword [ebp - 0x40], xmm0
cmovb eax, dword [esi + 0x10]
mov ecx, esi
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
jb 0x449306
mov ecx, dword [esi]
push eax
push ecx
lea ecx, [ebp - 0x40]
call fcn.004076f0
push 0
push 0x559730
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00449660
mov ecx, dword [esi + 0x10]
xorps xmm0, xmm0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
lea edx, [eax + 1]
mov dword [ebp - 0x14], 0
cmp ecx, edx
jb 0x44962f
mov eax, ecx
sub eax, edx
cmp eax, ecx
cmovb ecx, eax
cmp dword [esi + 0x14], 0x10
jb 0x449359
mov esi, dword [esi]
push ecx
lea eax, [esi + edx]
push eax
lea ecx, [ebp - 0x28]
call fcn.004076f0
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
cmovae ecx, dword [ebp - 0x28]
lea edx, [ebp - 0x74]
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push edx
cmovae eax, dword [ebp - 0x40]
xorps xmm0, xmm0
push ecx
push eax
mov dword [ebp - 0x74], 0
movlpd qword [ebp - 0x64], xmm0
movlpd qword [ebp - 0x5c], xmm0
mov dword [ebp - 0x70], 2
mov dword [ebp - 0x6c], 1
mov dword [ebp - 0x68], 0
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x44945d
mov eax, dword [0x62da44]
xorps xmm0, xmm0
push str.getaddrinfo_failed
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x50], esp
mov eax, dword [eax]
movups xmmword [ecx], xmm0
mov eax, dword [eax + 4]
mov dword [ecx + 0x10], 5
mov dword [ecx + 0x14], 0xf
mov dword [ebp - 0x44], eax
mov eax, dword [str.cspot]
mov dword [ecx], eax
mov al, byte [0x559ac8]
mov byte [ecx + 4], al
mov byte [ecx + 5], 0
push 0x38
sub esp, 0x18
mov byte [ebp - 4], 2
mov esi, esp
mov ecx, esi
push 0x60
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
call fcn.00410930
mov dword [esi], eax
mov edi, eax
mov dword [esi + 0x10], 0x59
mov ecx, 0x16
mov dword [esi + 0x14], 0x5f
mov esi, str.D:UsersphiliDropboxDevelopmentSpotConnectcommoncspotcspot_srcPlainConnection.cpp
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov byte [eax + 0x59], 0
push dword [0x62da44]
mov byte [ebp - 4], 1
call dword [ebp - 0x44]
mov edi, dword [ebp - 0x48]
add esp, 0x3c
mov esi, dword [ebp - 0x4c]
test esi, esi
je 0x449490
mov eax, dword [esi + 4]
cmp eax, 2
je 0x449471
cmp eax, 0x17
jne 0x449489
push dword [esi + 0xc]
push dword [esi + 8]
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 0x28], eax
test eax, eax
jns 0x4495a3
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x449464
push dword [ebp - 0x4c]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, dword [0x62da44]
xorps xmm0, xmm0
push str.Connected_to_spotify_server
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x54], esp
mov eax, dword [eax]
movups xmmword [ecx], xmm0
mov eax, dword [eax]
mov dword [ecx + 0x10], 5
mov dword [ecx + 0x14], 0xf
mov dword [ebp - 0x48], eax
mov eax, dword [str.cspot]
mov dword [ecx], eax
mov al, byte [0x559ac8]
mov byte [ecx + 4], al
mov byte [ecx + 5], 0
push 0x65
sub esp, 0x18
mov byte [ebp - 4], 3
mov edi, esp
mov ecx, edi
push 0x60
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
call fcn.00410930
mov dword [edi], eax
mov ecx, 0x16
mov dword [edi + 0x10], 0x59
mov esi, str.D:UsersphiliDropboxDevelopmentSpotConnectcommoncspotcspot_srcPlainConnection.cpp
mov dword [edi + 0x14], 0x5f
mov edi, eax
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov byte [eax + 0x59], 0
push dword [0x62da44]
mov byte [ebp - 4], 1
call dword [ebp - 0x48]
mov ecx, dword [ebp - 0x14]
add esp, 0x3c
cmp ecx, 0x10
jb 0x449561
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x449557
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44959d
push ecx
push edx
call fcn.0054f9fc
add esp, 8
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp ecx, 0x10
jb 0x449612
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x449608
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x449608
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push dword [esi + 0x10]
push dword [esi + 0x18]
push eax
call dword [sym.imp.WS2_32.dll_connect]
mov ecx, dword [edi + 0x28]
cmp eax, 0xffffffff
je 0x449634
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 0x44]
push 4
push eax
push 0x1006
push 0xffff
push ecx
mov dword [ebp - 0x44], 0xbb8
call esi
push 4
lea eax, [ebp - 0x44]
push eax
push 0x1005
push 0xffff
push dword [edi + 0x28]
call esi
push 4
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 1
push eax
push 1
push 6
push dword [edi + 0x28]
call esi
jmp 0x449490
push ecx
push edx
call fcn.0054f9fc
add esp, 8
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.0054f742
mov esp, ebp
pop ebp
ret 4
call fcn.00410920
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
push str.Cant_connect_to_spotify_servers
lea ecx, [ebp - 0x80]
mov dword [edi + 0x28], 0xffffffff
call fcn.0040b580
push 0x61dba8
lea eax, [ebp - 0x80]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3