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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8375
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x51df40]
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 0x4dc85c
call fcn.00431050
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], 0xf
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
jbe 0x430cd6
mov ecx, dword [esi]
push eax
push ecx
lea ecx, [ebp - 0x40]
call fcn.00409320
push 0
push 0x4dc85c
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00431050
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 0x431015
mov eax, ecx
sub eax, edx
cmp eax, ecx
cmovb ecx, eax
cmp dword [esi + 0x14], 0xf
jbe 0x430d29
mov esi, dword [esi]
push ecx
lea eax, [esi + edx]
push eax
lea ecx, [ebp - 0x28]
call fcn.00409320
cmp dword [ebp - 0x14], 0xf
lea edx, [ebp - 0x50]
push edx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
cmova ecx, dword [ebp - 0x28]
lea edx, [ebp - 0x74]
cmp dword [ebp - 0x2c], 0xf
lea eax, [ebp - 0x40]
push edx
cmova 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 0x430e37
mov eax, dword [0x5209ac]
xorps xmm0, xmm0
push str.getaddrinfo_failed
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x54], 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 - 0x4c], eax
mov eax, dword [str.cspot]
mov dword [ecx], eax
mov al, byte [0x4dd990]
mov byte [ecx + 4], al
mov byte [ecx + 5], 0
push 0x38
sub esp, 0x18
mov byte [ebp - 4], 2
mov esi, esp
mov dword [ebp - 0x44], 0x5f
lea eax, [ebp - 0x44]
push eax
movups xmmword [esi], xmm0
push esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
call fcn.004092c0
mov ecx, dword [ebp - 0x44]
mov edi, eax
mov dword [esi + 0x14], ecx
add esp, 8
mov dword [esi], eax
mov ecx, 0x16
mov dword [esi + 0x10], 0x59
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 [0x5209ac]
mov byte [ebp - 4], 1
call dword [ebp - 0x4c]
mov edi, dword [ebp - 0x48]
add esp, 0x3c
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x430e6c
nop
mov eax, dword [esi + 4]
cmp eax, 2
je 0x430e4d
cmp eax, 0x17
jne 0x430e65
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 0x430f89
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x430e40
push dword [ebp - 0x50]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, dword [0x5209ac]
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 [0x4dd990]
mov byte [ecx + 4], al
mov byte [ecx + 5], 0
push 0x65
sub esp, 0x18
mov byte [ebp - 4], 3
mov edi, esp
mov dword [ebp - 0x44], 0x5f
lea eax, [ebp - 0x44]
push eax
movups xmmword [edi], xmm0
push edi
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
call fcn.004092c0
mov edx, dword [ebp - 0x44]
mov ecx, 0x16
mov dword [edi], eax
mov esi, str.D:UsersphiliDropboxDevelopmentSpotConnectcommoncspotcspot_srcPlainConnection.cpp
mov dword [edi + 0x10], 0x59
add esp, 8
mov dword [edi + 0x14], edx
mov edi, eax
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov byte [eax + 0x59], 0
push dword [0x5209ac]
mov byte [ebp - 4], 1
call dword [ebp - 0x48]
mov ecx, dword [ebp - 0x14]
add esp, 0x3c
cmp ecx, 0xf
jbe 0x430f47
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x430f3d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x430f83
push ecx
push edx
call fcn.004d42b1
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, 0xf
jbe 0x430ff8
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x430fee
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x430fee
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 0x43101a
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 0x430e6c
push ecx
push edx
call fcn.004d42b1
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.004d3ed5
mov esp, ebp
pop ebp
ret 4
call fcn.00430b40
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.004309c0
push 0x516938
lea eax, [ebp - 0x80]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3