Function at 0x40e0b0
Capabilities:
Get socket status
Send data
Send data on socket
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50cb31
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x55ca98]
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
lea esi, [edi + 0x30]
push esi
mov dword [ebp - 0x130], esi
call sub.MSVCP140.dll__Mtx_lock
add esp, 4
test eax, eax
jne 0x40e66b
mov eax, dword [esi + 0x2c]
cmp eax, 0x7fffffff
je 0x40e672
mov dword [ebp - 4], 0
lea ecx, [edi + 0x2c]
mov al, 1
xchg byte [ecx], al
mov al, byte [ecx]
or esi, 0xffffffff
mov dword [ebp - 0x118], esi
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x128], 0x61a8
nop
test al, al
je 0x40e63e
lea edx, [edi + 0x8130]
cmp esi, 0xffffffff
jne 0x40e2a4
mov eax, dword [edi + 0x78]
lea ecx, [ebp - 0x140]
push ecx
push 0
push 0
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x110], eax
push ecx
inc eax
mov dword [ebp - 0x140], 0
push eax
mov dword [ebp - 0x13c], 0xc350
mov dword [ebp - 0x114], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x40e303
push 0
push 0
push dword [edi + 0x78]
call dword [sym.imp.WS2_32.dll_accept]
mov esi, eax
mov dword [ebp - 0x118], esi
cmp esi, 0xffffffff
je 0x40e303
mov cl, byte [edi + 0x2c]
nop
test cl, cl
je 0x40e303
mov eax, dword [0x55fc44]
xorps xmm0, xmm0
push esi
push str.got_HTTP_connection__u
sub esp, 0x18
mov eax, dword [eax]
mov ecx, esp
mov dword [ebp - 0x124], esp
mov eax, dword [eax + 8]
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 5
mov dword [ecx + 0x14], 0xf
mov dword [ebp - 0x11c], eax
mov eax, dword [str.cspot]
mov dword [ecx], eax
mov al, byte [0x513ab0]
mov byte [ecx + 4], al
mov byte [ecx + 5], 0
push 0x1b9
sub esp, 0x18
mov byte [ebp - 4], 1
mov esi, esp
mov ecx, esi
push 0x50
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
call fcn.0040b130
mov dword [esi + 0x10], 0x4c
mov ecx, eax
mov dword [esi], ecx
mov dword [esi + 0x14], 0x4f
movups xmm0, xmmword [str.D:UsersphiliDropboxDevelopmentSpotConnect_spotupnp_srcHTTPstreamer.cpp]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [0x513ac8]
movups xmmword [ecx + 0x10], xmm0
movups xmm0, xmmword [0x513ad8]
movups xmmword [ecx + 0x20], xmm0
movups xmm0, xmmword [0x513ae8]
movups xmmword [ecx + 0x30], xmm0
movq xmm0, qword [0x513af8]
movq qword [ecx + 0x40], xmm0
mov eax, dword [0x513b00]
mov dword [ecx + 0x48], eax
mov byte [ecx + 0x4c], 0
push dword [0x55fc44]
mov byte [ebp - 4], 0
call dword [ebp - 0x11c]
mov esi, dword [ebp - 0x118]
lea edx, [edi + 0x8130]
add esp, 0x40
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x11c], edx
push eax
push 0
push 0
lea eax, [ebp - 0x114]
mov dword [ebp - 0x110], esi
push eax
lea eax, [esi + 1]
mov dword [ebp - 0x114], 1
push eax
call dword [sym.imp.WS2_32.dll_select]
mov ecx, eax
test ecx, ecx
jle 0x40e30e
push esi
mov ecx, edi
call fcn.0040b600
test al, al
je 0x40e529
mov ecx, dword [ebp - 0x11c]
mov eax, dword [ecx]
nop
cmp eax, 2
jg 0x40e326
mov eax, 2
xchg dword [ecx], eax
jmp 0x40e326
lea edx, [edi + 0x8130]
jmp 0x40e62f
mov al, 1
test ecx, ecx
js 0x40e529
test al, al
je 0x40e529
mov ecx, dword [ebp - 0x11c]
mov eax, dword [ecx]
mov dword [ebp - 0x124], ecx
nop
cmp eax, 2
jl 0x40e514
lea eax, [ebp - 0x12c]
mov ecx, edi
push eax
push esi
call fcn.0040ec60
test eax, eax
jg 0x40e514
mov eax, dword [ebp - 0x11c]
mov eax, dword [eax]
nop
cmp eax, 3
jne 0x40e514
cmp dword [edi + 0x8148], 0x10
mov eax, dword [0x55fc44]
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov dword [ebp - 0x120], eax
lea eax, [edi + 0x8134]
jb 0x40e382
mov eax, dword [eax]
push eax
push esi
push str.HTTP_streaming_finished_for__u__id:__s_
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
mov dword [ebp - 0x134], esp
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 5
mov dword [ecx + 0x14], 0xf
mov eax, dword [str.cspot]
mov dword [ecx], eax
mov al, byte [0x513ab0]
mov byte [ecx + 4], al
mov byte [ecx + 5], 0
push 0x1d2
sub esp, 0x18
mov byte [ebp - 4], 3
mov esi, esp
mov ecx, esi
push 0x50
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
call fcn.0040b130
mov dword [esi + 0x10], 0x4c
mov ecx, eax
mov dword [esi], ecx
mov dword [esi + 0x14], 0x4f
movups xmm0, xmmword [str.D:UsersphiliDropboxDevelopmentSpotConnect_spotupnp_srcHTTPstreamer.cpp]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [0x513ac8]
movups xmmword [ecx + 0x10], xmm0
movups xmm0, xmmword [0x513ad8]
movups xmmword [ecx + 0x20], xmm0
movups xmm0, xmmword [0x513ae8]
movups xmmword [ecx + 0x30], xmm0
movq xmm0, qword [0x513af8]
movq qword [ecx + 0x40], xmm0
mov eax, dword [0x513b00]
mov dword [ecx + 0x48], eax
mov byte [ecx + 0x4c], 0
push dword [0x55fc44]
mov byte [ebp - 4], 0
call dword [ebp - 0x120]
mov esi, dword [ebp - 0x118]
add esp, 0x44
cmp dword [edi + 0x88], 0xfffffffd
jne 0x40e474
cmp dword [edi + 0x8c], 0xffffffff
jne 0x40e474
push 0
push 5
push str.0_r_n_r_n
push esi
call dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [ebp - 0x11c]
xor eax, eax
xchg dword [ecx], eax
mov eax, dword [edi + 0x94]
mov dword [edi + 0x9c], eax
mov dword [edi + 0x98], eax
mov dword [edi + 0xa8], 0
mov ecx, dword [edi + 0x90]
mov eax, dword [ecx]
call dword [eax + 0xc]
cmp dword [edi + 0x80d8], 0x10
lea ecx, [edi + 0x80c4]
jb 0x40e4ba
mov ecx, dword [edi + 0x80c4]
push 2
mov dword [edi + 0x80d4], 0
push esi
mov byte [ecx], 0
call dword [sym.imp.WS2_32.dll_shutdown]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 0x11c]
or esi, 0xffffffff
mov dword [ebp - 0x118], esi
mov eax, 4
xchg dword [ecx], eax
mov ecx, dword [edi + 0x812c]
test ecx, ecx
je 0x40e51e
mov dword [ebp - 0x120], edi
lea edx, [ebp - 0x120]
mov eax, dword [ecx]
push edx
call dword [eax + 8]
mov edx, dword [ebp - 0x124]
jmp 0x40e62f
mov dword [ebp - 0x128], 0xc350
mov edx, dword [ebp - 0x124]
jmp 0x40e62f
mov eax, dword [0x55fc44]
xorps xmm0, xmm0
push esi
push str.HTTP_close__u
sub esp, 0x18
mov eax, dword [eax]
mov ecx, esp
mov dword [ebp - 0x138], esp
mov eax, dword [eax + 8]
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 5
mov dword [ecx + 0x14], 0xf
mov dword [ebp - 0x124], eax
mov eax, dword [str.cspot]
mov dword [ecx], eax
mov al, byte [0x513ab0]
mov byte [ecx + 4], al
mov byte [ecx + 5], 0
push 0x1c9
sub esp, 0x18
mov byte [ebp - 4], 2
mov esi, esp
mov ecx, esi
push 0x50
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
call fcn.0040b130
mov dword [esi + 0x10], 0x4c
mov ecx, eax
mov dword [esi], ecx
mov dword [esi + 0x14], 0x4f
movups xmm0, xmmword [str.D:UsersphiliDropboxDevelopmentSpotConnect_spotupnp_srcHTTPstreamer.cpp]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [0x513ac8]
movups xmmword [ecx + 0x10], xmm0
movups xmm0, xmmword [0x513ad8]
movups xmmword [ecx + 0x20], xmm0
movups xmm0, xmmword [0x513ae8]
movups xmmword [ecx + 0x30], xmm0
movq xmm0, qword [0x513af8]
movq qword [ecx + 0x40], xmm0
mov eax, dword [0x513b00]
mov dword [ecx + 0x48], eax
mov byte [ecx + 0x4c], 0
push dword [0x55fc44]
mov byte [ebp - 4], 0
call dword [ebp - 0x124]
mov esi, dword [ebp - 0x118]
add esp, 0x40
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 0x11c]
or esi, 0xffffffff
mov dword [ebp - 0x118], esi
mov edx, ecx
mov eax, dword [ecx]
nop
cmp eax, 2
jne 0x40e62f
mov eax, 1
xchg dword [ecx], eax
mov al, byte [edi + 0x2c]
lea ecx, [edi + 0x2c]
nop
test al, al
jne 0x40e143
xor al, al
xchg byte [ecx], al
push dword [ebp - 0x130]
call sub.MSVCP140.dll__Mtx_unlock
add esp, 4
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.005091c5
mov esp, ebp
pop ebp
ret
push 5
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
dec eax
push 6
mov dword [esi + 0x2c], eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3