Function at 0x4021f0
Capabilities:
Create tcp socket
Get socket status
Initialize winsock library
Send data
Send data on socket
Set socket configuration
Start tcp server
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4dc
mov eax, dword [0x44b464]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
push esi
push edi
mov dword [ebp - 0x4b0], eax
xor esi, esi
mov dword [ebp - 0x480], eax
xor edi, edi
mov dword [ebp - 0x484], eax
mov dword [ebp - 0x4b8], eax
lea eax, [ebp - 0x454]
push eax
push 0x202
mov dword [ebp - 0x46c], ebx
mov dword [ebp - 0x45c], str.127.0.0.1
mov dword [ebp - 0x464], 0x4d2
mov dword [ebp - 0x4ac], 0
mov dword [ebp - 0x4a8], 0x2710
mov dword [ebp - 0x4a4], 1
mov dword [ebp - 0x49c], 0
mov dword [ebp - 0x4c0], 0x5f5e100
mov dword [ebp - 0x494], 0
mov dword [ebp - 0x488], 0x1f4000
mov dword [ebp - 0x490], 0
mov dword [ebp - 0x48c], 0
mov dword [ebp - 0x498], 0
mov dword [ebp - 0x4b4], 0x4000
mov dword [ebp - 0x4bc], 1
mov dword [ebp - 0x468], 1
mov dword [ebp - 0x4c8], 1
call dword [sym.imp.WS2_32.dll_WSAStartup]
push str.a:p:f:g:s:b:n:d:P:O:TI:W:l:w:D:vr:
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.00421720
add esp, 0xc
cmp eax, 0xffffffff
je 0x40253e
nop word [eax + eax]
add eax, 0xffffffbc
cmp eax, 0x33
ja case.0x402313.69
movzx eax, byte [eax + 0x402d24]
jmp dword [eax*4 + 0x402cd8]
push dword [0x44cce4]
call fcn.0040e110
add esp, 4
mov dword [ebp - 0x480], 1
mov esi, eax
jmp 0x402521
push dword [0x44cce4]
call fcn.00404150
fadd qword [0x43a510]
add esp, 4
fstp qword [ebp - 0x4c4]
movsd xmm0, qword [ebp - 0x4c4]
call fcn.00421800
mov dword [ebp - 0x4c0], eax
mov dword [ebp - 0x494], edx
jmp 0x402521
push dword [0x44cce4]
call fcn.00429433
fmul qword [0x43a518]
add esp, 4
fstp qword [ebp - 0x474]
cvttsd2si edi, qword [ebp - 0x474]
jmp 0x402521
push dword [0x44cce4]
call fcn.00404150
add esp, 4
fstp qword [ebp - 0x474]
movsd xmm0, qword [ebp - 0x474]
call fcn.00421780
mov dword [ebp - 0x488], eax
jmp 0x402521
mov eax, dword [0x44cce4]
mov dword [ebp - 0x45c], eax
jmp 0x402521
push dword [0x44cce4]
call fcn.00429a08
add esp, 4
mov dword [ebp - 0x464], eax
jmp 0x402521
push dword [0x44cce4]
call fcn.00429a08
add esp, 4
mov dword [ebp - 0x4a4], eax
jmp 0x402521
push dword [0x44cce4]
call fcn.00429a08
add esp, 4
mov dword [ebp - 0x4ac], eax
jmp 0x402521
push dword [0x44cce4]
call fcn.00429a08
add esp, 4
mov dword [ebp - 0x4a8], eax
jmp 0x402521
push dword [0x44cce4]
call fcn.00429a08
add esp, 4
mov dword [ebp - 0x498], eax
jmp 0x402521
push dword [0x44cce4]
call fcn.00429a08
add esp, 4
shl eax, 9
mov dword [ebp - 0x4b4], eax
jmp 0x402521
push dword [0x44cce4]
call fcn.00429a08
add esp, 4
mov dword [section..data], eax
jmp 0x402521
push dword [0x44cce4]
call fcn.00429a08
add esp, 4
mov dword [ebp - 0x484], eax
jmp 0x402521
mov eax, dword [0x44cce4]
mov dword [ebp - 0x4b0], eax
jmp 0x402521
mov dword [0x44bde8], 1
jmp 0x402521
push dword [0x44cce4]
call fcn.00404150
add esp, 4
fstp qword [ebp - 0x474]
movsd xmm0, qword [ebp - 0x474]
call fcn.00421780
mov dword [0x44bde4], eax
jmp 0x402521
inc dword [0x44bde0]
jmp 0x402521
push dword [0x44cce4]
call fcn.00404150
fadd qword [0x43a510]
add esp, 4
fstp qword [ebp - 0x474]
movsd xmm0, qword [ebp - 0x474]
call fcn.00421780
cmp eax, 4
ja 0x40251b
mov dword [ebp - 0x490], eax
jmp 0x402521
mov dword [ebp - 0x48c], eax
push str.a:p:f:g:s:b:n:d:P:O:TI:W:l:w:D:vr:
push dword [ebp - 0x46c]
push ebx
call fcn.00421720
add esp, 0xc
cmp eax, 0xffffffff
jne 0x402300
cmp ebx, dword [0x44b44c]
jl case.0x402313.69
mov eax, dword [0x44bde0]
test eax, eax
je 0x40256c
push eax
push str.verbosity_set_to__d_n
push 2
call fcn.00423d78
add esp, 4
push eax
call fcn.00401fd0
add esp, 0xc
cmp dword [ebp - 0x480], 0
jne 0x402584
push 0x43a260
call fcn.0040e110
add esp, 4
mov esi, eax
test esi, esi
js 0x402caf
push esi
push 0x44bddc
call fcn.00405320
add esp, 8
cmp dword [0x44bddc], 0
je 0x402cb6
push 1
push 0x402e90
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push dword [ebp - 0x484]
push dword [0x44bddc]
call fcn.0040e6a0
push dword [ebp - 0x488]
push dword [0x44bddc]
call fcn.004080a0
add esp, 0x10
mov dword [ebp - 0x458], eax
test eax, eax
jns 0x4025fb
push str.WARNING:_Failed_to_set_sample_rate._n
push 2
call fcn.00423d78
add esp, 4
push eax
call fcn.00401fd0
add esp, 8
push dword [ebp - 0x48c]
push dword [ebp - 0x490]
push dword [0x44bddc]
call fcn.00406aa0
mov ebx, dword [ebp - 0x494]
mov esi, dword [ebp - 0x4c0]
push ebx
push esi
push dword [0x44bddc]
call fcn.004066c0
add esp, 0x18
mov dword [ebp - 0x458], eax
test eax, eax
jns 0x402652
push str.WARNING:_Failed_to_set_center_freq._n
push 2
call fcn.00423d78
add esp, 4
push eax
call fcn.00401fd0
add esp, 8
jmp 0x402683
mov edx, ebx
mov ecx, esi
call fcn.004218b0
mulsd xmm0, qword [0x43a508]
sub esp, 8
movsd qword [esp], xmm0
push str.Tuned_to__f_MHz._n
push 2
call fcn.00423d78
add esp, 4
push eax
call fcn.00401fd0
add esp, 0x10
test edi, edi
jne 0x4026ab
push edi
push dword [0x44bddc]
call fcn.00408520
add esp, 8
mov dword [ebp - 0x458], eax
test eax, eax
jns 0x402740
push str.WARNING:_Failed_to_enable_automatic_gain._n
jmp 0x4026fb
push 1
push dword [0x44bddc]
call fcn.00408520
add esp, 8
mov dword [ebp - 0x458], eax
test eax, eax
jns 0x4026dd
push str.WARNING:_Failed_to_enable_manual_gain._n
push 2
call fcn.00423d78
add esp, 4
push eax
call fcn.00401fd0
add esp, 8
push edi
push dword [0x44bddc]
call fcn.00408470
add esp, 8
mov dword [ebp - 0x458], eax
test eax, eax
jns 0x402710
push str.WARNING:_Failed_to_set_tuner_gain._n
push 2
call fcn.00423d78
add esp, 4
push eax
call fcn.00401fd0
add esp, 8
jmp 0x402740
movd xmm0, edi
sub esp, 8
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x43a518]
movsd qword [esp], xmm0
push str.Tuner_gain_set_to__f_dB._n
push 2
call fcn.00423d78
add esp, 4
push eax
call fcn.00401fd0
add esp, 0x10
push dword [0x44bde4]
push dword [0x44bddc]
call fcn.0040e710
push dword [0x44bde8]
push dword [0x44bddc]
call fcn.00406510
add esp, 0x10
cmp dword [0x44bde8], 0
je 0x402786
push str.activated_bias_T_on_GPIO_PIN_0_n
push 2
call fcn.00423d78
add esp, 4
push eax
call fcn.00401fd0
add esp, 8
mov eax, dword [ebp - 0x4b0]
test eax, eax
je 0x4027a5
push dword [0x44bde0]
push eax
push dword [0x44bddc]
call fcn.00407060
add esp, 0xc
push dword [0x44bddc]
call fcn.00406380
add esp, 4
mov dword [ebp - 0x458], eax
test eax, eax
jns 0x4027d5
push str.WARNING:_Failed_to_reset_buffers._n
push 2
call fcn.00423d78
add esp, 4
push eax
call fcn.00401fd0
add esp, 8
push 0
push 0x44bdd0
call fcn.0041ea00
push 0
push 0x44bdd4
call fcn.0041ea00
push 0
push 0x44bdd0
call fcn.0041ea00
push 0
push 0x44bdd8
call fcn.0041e110
push 0
push 0x44bdcc
call fcn.0041e110
mov ecx, dword [ebp - 0x4ac]
add esp, 0x28
mov ebx, dword [ebp - 0x45c]
test ecx, ecx
je 0x402864
mov eax, dword [0x44bddc]
mov dword [ebp - 0x47c], eax
mov eax, dword [ebp - 0x4a8]
mov dword [ebp - 0x474], eax
lea eax, [ebp - 0x47c]
push eax
push 0x402000
lea eax, [ebp - 0x4dc]
mov dword [ebp - 0x478], ecx
push 0
push eax
mov dword [ebp - 0x470], ebx
call fcn.0041e3d0
add esp, 0x10
mov esi, dword [ebp - 0x464]
cmp dword [ebp - 0x4a4], 1
mov eax, dword [0x44bddc]
mov dword [0x44bda0], eax
lea eax, [ebp - 0x49c]
lea ecx, [esi + 1]
mov dword [0x44bdb0], ebx
cmovne ecx, dword [ebp - 0x4a4]
mov dword [ebp - 0x46c], ecx
mov dword [0x44bda4], ecx
mov dword [0x44bda8], 0x7a120
mov dword [0x44bdac], 0
mov dword [0x44bdb4], eax
test ecx, ecx
je 0x4028f0
push str.inactive
push ecx
push str.activating_Response_channel_on_port__d_with__s_I2C_reporting_n
push 2
call fcn.00423d78
add esp, 4
push eax
call fcn.00401fd0
push 0x44bda0
push 0x403240
lea eax, [ebp - 0x4d4]
push 0
push eax
call fcn.0041e3d0
add esp, 0x20
xorps xmm0, xmm0
mov eax, 2
push esi
movlpd qword [ebp - 0x1a8], xmm0
mov word [ebp - 0x1b0], ax
call dword [sym.imp.WS2_32.dll_htons]
push ebx
mov word [ebp - 0x1ae], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 6
push 1
push 2
mov dword [ebp - 0x1ac], eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, eax
push 4
lea eax, [ebp - 0x458]
mov dword [ebp - 0x458], 1
push eax
push 4
push 0xffff
push ebx
call esi
push 4
lea eax, [ebp - 0x468]
push eax
push 0x80
push 0xffff
push ebx
call esi
push 0x10
lea eax, [ebp - 0x1b0]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_bind]
lea eax, [ebp - 0x4c8]
push eax
push 0x8004667e
push ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
lea esi, [ebx + 1]
mov edi, dword [sym.imp.WS2_32.dll_select]
push str.listening..._n
call fcn.00402d60
push dword [ebp - 0x464]
push dword [ebp - 0x45c]
push str.Use_the_device_argument_rtl_tcp_s:_d_in_OsmoSDR__gr_osmosdr__source_nto_receive_samples_in_GRC_and_control_rtl_tcp_parameters__frequency__gain__..._._n
call fcn.00402d60
add esp, 0x10
push 1
push ebx
call dword [sym.imp.WS2_32.dll_listen]
lea eax, [ebp - 0x4bc]
mov dword [ebp - 0x2c0], ebx
push eax
push 0
push 0
lea eax, [ebp - 0x2c4]
mov dword [ebp - 0x2c4], 1
push eax
push esi
mov dword [ebp - 0x4bc], 1
mov dword [ebp - 0x4b8], 0
call edi
cmp dword [0x44bdf4], 0
mov dword [ebp - 0x458], eax
jne 0x402c28
cmp dword [ebp - 0x458], 0
je 0x4029c1
lea eax, [ebp - 0x4cc]
mov dword [ebp - 0x4cc], 0x10
push eax
lea eax, [ebp - 0x1c0]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_accept]
push 4
lea ecx, [ebp - 0x468]
mov dword [0x44bdb8], eax
push ecx
push 0x80
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
push str.client_accepted__n
call fcn.00402d60
push dword [0x44bddc]
xorps xmm0, xmm0
mov dword [ebp - 0x1a0], 0x304c5452
movlpd qword [ebp - 0x19c], xmm0
call fcn.00404bf0
mov edi, dword [sym.imp.WS2_32.dll_htonl]
add esp, 8
mov dword [ebp - 0x458], eax
test eax, eax
js 0x402a9a
push eax
call edi
mov dword [ebp - 0x19c], eax
lea eax, [ebp - 0x194]
push eax
push dword [0x44bddc]
call fcn.00404ae0
add esp, 8
mov dword [ebp - 0x458], eax
test eax, eax
js 0x402ac2
push eax
call edi
mov dword [ebp - 0x198], eax
cmp dword [0x44bde0], 0
je 0x402adb
push 0
push dword [0x44bddc]
call fcn.0040e590
add esp, 8
push 0
push 0xc
lea eax, [ebp - 0x1a0]
push eax
push dword [0x44bdb8]
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x458], eax
cmp eax, 0xc
je 0x402b0a
push str.failed_to_send_dongle_information_n
call fcn.00402d60
add esp, 4
lea eax, [ebp - 0x460]
push eax
call fcn.0041de70
lea eax, [ebp - 0x460]
push 0
push eax
call fcn.0041dee0
push 0
push 0x402ee0
lea eax, [ebp - 0x460]
push eax
push 0x44bdbc
call fcn.0041e3d0
push 0
mov dword [ebp - 0x458], eax
lea eax, [ebp - 0x460]
push 0x4010d0
push eax
push 0x44bdc4
call fcn.0041e3d0
mov dword [ebp - 0x458], eax
lea eax, [ebp - 0x460]
push eax
call fcn.0041de30
push dword [ebp - 0x4b4]
push dword [ebp - 0x498]
push 0
push 0x402d90
push dword [0x44bddc]
call fcn.00405fe0
add esp, 0x44
mov dword [ebp - 0x458], eax
lea eax, [ebp - 0x4a0]
push eax
push dword [0x44bdc0]
push dword [0x44bdbc]
call fcn.0041e720
lea eax, [ebp - 0x4a0]
push eax
push dword [0x44bdc8]
push dword [0x44bdc4]
call fcn.0041e720
add esp, 0x18
push dword [0x44bdb8]
call dword [sym.imp.WS2_32.dll_closesocket]
push str.all_threads_dead.._n
call fcn.00402d60
mov edi, dword [0x44bdf0]
add esp, 4
mov dword [0x44bdf0], 0
test edi, edi
je 0x402c0f
mov esi, edi
mov edi, dword [edi + 8]
push dword [esi]
call fcn.00425d83
push esi
call fcn.00425d83
add esp, 8
test edi, edi
jne 0x402bf3
lea esi, [ebx + 1]
mov dword [0x44bdf4], 0
mov dword [0x44bdec], 0
jmp 0x40298f
push dword [0x44bddc]
call fcn.00404310
add esp, 4
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_closesocket]
call ebx
cmp dword [ebp - 0x46c], 0
je 0x402c6d
lea eax, [ebp - 0x4a0]
mov dword [ebp - 0x49c], 1
push eax
push dword [ebp - 0x4d0]
push dword [ebp - 0x4d4]
call fcn.0041e720
add esp, 0xc
push dword [0x44bdb8]
call ebx
call dword [sym.imp.WS2_32.dll_WSACleanup]
push str.bye__n
call fcn.00402d60
mov eax, dword [ebp - 0x458]
add esp, 4
mov ecx, dword [ebp - 4]
cdq
xor ecx, ebp
xor eax, edx
pop edi
pop esi
sub eax, edx
pop ebx
call fcn.00421767
mov esp, ebp
pop ebp
ret
push dword [0x44bde0]
call fcn.004031d0
push 1
call fcn.00426056
push esi
push str.Failed_to_open_rtlsdr_device__d._n
push 2
call fcn.00423d78
add esp, 4
push eax
call fcn.00401fd0
add esp, 0xc
push 1
call fcn.00426056
nop
out 0x24, eax
inc eax
add byte [esi], al
and al, 0x40
add byte [esi - 0x7affbfdc], bl
and al, 0x40
add byte [ebx + 0x1f004024], ch
and al, 0x40
add ah, al
and eax, dword [eax]
cmp byte [eax + eax*2], ah
add byte [edx], bl
and eax, dword [eax]
cmp dword [ebx], esp
inc eax
add byte [ecx + 0x23], dh
inc eax
add byte [ecx + 0x24], dl
inc eax
add byte [ebp + 0x24], ch
inc eax
add ah, dl
and eax, dword [eax]
in eax, dx
and eax, dword [eax]
cwde
and eax, dword [eax]
fbld tbyte [eax + eax*2]
add byte [edi - 1543487452], dh
sub al, 0x40
add byte [eax], al
adc dl, byte [edx]
adc dl, byte [edx]
add dword [edx], edx
adc dl, byte [edx]
adc dl, byte [edx]
add al, byte [ebx]
adc dl, byte [edx]
adc al, byte [edx + edx]
adc al, byte [303174162]
adc dl, byte [edx]
adc dl, byte [edx]
adc al, byte [esi]
pop es
adc cl, byte [eax]
adc cl, byte [ecx]
or dl, byte [edx]
adc dl, byte [edx]
adc cl, byte [ebx]
adc cl, byte [edx + edx]
or eax, 302976530
adc dl, byte [eax]
adc esp, ecx
int3