Function at 0x419ded
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor ebx, ebx
push edi
mov dword [0x461a84], ebx
call fcn.00416e05
mov ecx, dword [0x449648]
mov edi, 0x494b10
mov dword [0x44aca0], ebx
cmp byte [ecx + 0x2b], bl
jne 0x419e56
cmp dword [ecx + 0x30], ebx
je 0x419e56
mov eax, dword [0x461aa4]
cmp dword [ecx + 0x30], eax
je 0x419e2c
test eax, eax
jne 0x419e56
cmp byte [ecx + 0x28], bl
je 0x419e56
mov eax, dword [ecx + 0x40]
cmp eax, dword [0x461a90]
jne 0x419e56
mov eax, dword [ecx + 0x38]
mov edx, dword [0x461a94]
cmp eax, edx
je 0x419e90
inc eax
cmp eax, edx
jne 0x419e56
mov eax, dword [ecx + 0x10]
cmp eax, dword [ecx + 0x14]
jb 0x419e90
cmp dword [0x45ec38], ebx
je 0x419e63
call fcn.00413aa2
mov edx, dword [0x461a94]
test edx, edx
je 0x419e90
push ebx
push dword [0x461a90]
mov ecx, edi
call fcn.0041605c
test eax, eax
jne 0x419e90
mov word [0x44de40], 0x329
push 0xf
pop eax
jmp 0x41a488
mov ecx, dword [0x461aac]
xor edx, edx
push ebx
call fcn.004285e1
push eax
push str.TCP_Stream_connecting_to__s
push 1
push 0x20
push ebx
push ebx
call fcn.00420600
mov ecx, dword [0x449648]
add esp, 0x18
mov esi, 0xff
push ebx
push esi
push 0xa
pop ebx
mov dl, bl
call fcn.0041055a
mov ecx, dword [0x461aa8]
mov edx, 0x1000000
push 2
pop eax
and ecx, 4
mov byte [0x44de41], al
push 0x200
setne al
mov byte [0x44de40], 4
dec al
and al, 3
test ecx, ecx
mov ecx, dword [0x461aac]
mov byte [ebp - 1], al
mov eax, 0x400000
cmovne eax, edx
mov edx, dword [0x461ab8]
push eax
call fcn.00416a67
mov ecx, eax
mov dword [0x461ac4], eax
call fcn.0040fdd6
test al, al
je 0x419f58
mov ecx, dword [0x449648]
xor ebx, ebx
push ebx
push esi
mov dl, 0xc
call fcn.0041055a
mov word [0x44de40], 0x320
mov byte [0x44ac7d], bl
call fcn.00419d9b
mov dword [0x461a80], ebx
call fcn.0041344f
push 5
jmp 0x419e8a
push 0
push esi
mov esi, dword [0x449648]
mov dl, 0xb
mov ecx, esi
call fcn.0041055a
mov ecx, edi
call fcn.00416c64
mov edi, dword [0x461a80]
mov edx, eax
mov al, byte [ebp - 1]
push 4
pop ecx
mov byte [edx], al
inc edx
mov dword [edx], edi
add edx, ecx
cmp esi, 0x45ed30
je 0x419fc7
mov ecx, dword [esi + 0x40]
mov dword [edx], ecx
mov eax, dword [esi + 0x38]
push 4
pop ecx
add edx, ecx
mov dword [edx], eax
add edx, ecx
mov eax, dword [esi + 0x10]
mov dword [edx], eax
add edx, ecx
mov eax, dword [esi + 0x34]
mov dword [edx], eax
add edx, ecx
mov eax, dword [esi + 0x30]
mov dword [edx], eax
add edx, ecx
mov eax, dword [esi + 4]
mov dword [edx], eax
add edx, ecx
mov ax, word [esi + 8]
mov word [edx], ax
add edx, 2
jmp 0x419fd1
and dword [edx], 0
add edx, ecx
and dword [edx], 0
add edx, ecx
test edi, edi
jne 0x419fe6
push edi
push 0xff
mov dl, 0xc
mov ecx, esi
call fcn.0041055a
jmp 0x41a015
mov ecx, dword [0x461ac4]
mov esi, 0x494b10
push edx
mov edx, esi
call fcn.00419d33
pop ecx
test al, al
jne 0x41a025
mov ecx, dword [0x449648]
mov dl, 0xd
push 0
push 0xff
call fcn.0041055a
push 0xf
pop ebx
mov word [0x44de40], 0x301
mov eax, ebx
jmp 0x41a488
mov eax, dword [0x44de58]
push 4
lea eax, [eax*2 + 0x2710]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0x1006
push 0xffff
push dword [0x461ac4]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [0x461ac4]
lea eax, [ebp - 0x10]
push eax
mov edx, esi
call fcn.00419c62
test ax, ax
jne 0x41a0a3
mov ecx, dword [0x449648]
mov dl, 0xe
push 0
push 0xff
call fcn.0041055a
mov eax, dword [ebp - 0x10]
mov word [0x44de40], 0x301
test eax, eax
jle 0x41a01e
push str.TCP_Stream_Connection_failed
push 2
cdq
push 0x20
push edx
push eax
call fcn.00420600
add esp, 0x14
jmp 0x41a01e
cmp byte [0x494b10], 0
je 0x41a0b3
push 0x19
jmp 0x419e8a
mov ecx, dword [0x494b11]
test cl, cl
je 0x41a23a
mov esi, dword [0x494b12]
xor edi, edi
xor eax, eax
inc edi
mov dword [ebp - 8], eax
push 0x32
pop ebx
cmp esi, 0xd0e0a0d
jne 0x41a0fb
cmp dword [0x44e3a8], eax
je 0x41a0f2
mov ecx, 0x44e3a8
call fcn.00412171
mov ecx, dword [0x494b11]
mov esi, 0x384
mov edi, ebx
jmp 0x41a10a
cmp cl, 5
je 0x41a10a
mov eax, 0x12c
cmp esi, eax
cmova esi, eax
movzx eax, cl
dec eax
cmp eax, 0xc
ja case.0x41a117.9
jmp dword [eax*4 + 0x41a491]
push 0x15
pop eax
mov dword [ebp - 8], eax
jmp 0x41a1ef
push 0x33
pop ebx
jmp case.0x41a117.8
cmp dword [0x494b16], 0
jne 0x41a14c
xor cl, cl
call fcn.0041b023
mov cl, 2
call fcn.0041b023
push 7
pop ebx
push 8
jmp 0x41a120
and dword [ebp - 8], 0
jmp case.0x41a117.9
mov dword [ebp - 8], 9
jmp case.0x41a117.9
cmp dword [0x461a80], 0
jne 0x41a16e
mov cl, 2
jmp 0x41a17d
and dword [0x461a80], 0
xor cl, cl
push 0x15
pop eax
mov dword [ebp - 8], eax
call fcn.0041b023
jmp 0x41a1ef
push 6
pop ebx
jmp 0x41a1ef
mov eax, dword [0x449648]
mov eax, dword [eax + 0x38]
cmp eax, dword [0x461a94]
jb case.0x41a117.3
mov dword [0x4617c0], 1
jmp case.0x41a117.9
mov cl, 2
call fcn.0041b023
cmp dword [0x45ec38], 0
je 0x41a1ba
call fcn.00413aa2
mov edx, dword [0x461a94]
test edx, edx
je case.0x41a117.9
push 0
push dword [0x461a90]
mov ecx, 0x494b10
call fcn.0041605c
jmp case.0x41a117.9
and dword [0x461aa8], 0xfffffff3
push 0xf
pop edi
push 9
pop eax
mov dword [ebp - 8], eax
cmp edi, 0x40
sbb ebx, ebx
and ebx, edi
mov al, byte [ebx + 0x442c18]
mov byte [0x44de41], al
mov eax, dword [ebp - 8]
mov byte [0x44de40], bl
test eax, eax
je 0x41a221
mov ecx, dword [0x449648]
mov dl, al
push 0
push 0xff
call fcn.0041055a
mov bl, byte [0x44de40]
lea ecx, [ebx - 0x32]
cmp cl, 3
ja 0x41a233
call fcn.00419d9b
call fcn.0041344f
mov eax, esi
jmp 0x41a488
cmp dword [0x45ec38], 0
jne 0x41a265
call fcn.00413995
test al, al
jne 0x41a265
mov ecx, dword [0x449648]
mov dl, 4
push 0
push 0xff
call fcn.0041055a
jmp 0x419e7f
call fcn.004124ed
mov eax, dword [0x494b12]
mov edx, dword [0x494b16]
movzx ecx, word [0x494b18]
mov dword [0x461a84], eax
mov word [0x461aba], dx
mov dword [0x44de54], ecx
mov word [0x461c6e], dx
test eax, eax
jne 0x41a2b1
test dx, dx
jne 0x41a2b1
test ecx, ecx
mov eax, 0x384
push 0xe
cmove ecx, eax
mov dword [0x44de54], ecx
pop ebx
cmp ebx, 0x40
push 2
sbb ecx, ecx
and ecx, ebx
mov byte [0x44de40], cl
mov al, byte [ecx + 0x442c18]
xor ecx, ecx
mov byte [0x44de41], al
mov eax, dword [0x461ab0]
mov dword [0x461c70], eax
pop eax
mov word [0x461c6c], ax
mov eax, dword [0x449648]
cmp dword [eax + 0x30], ecx
jne 0x41a3d5
push ecx
push 0x400
push esi
push dword [0x461ac4]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0x200
jge 0x41a344
mov ecx, dword [0x449648]
mov dl, 0xe
push 2
pop ebx
push 0
push 0xff
mov byte [0x44de41], bl
mov byte [0x44de40], 0x21
call fcn.0041055a
mov ecx, dword [0x461ac4]
call fcn.0040fdd6
push 0xf
test al, al
pop ecx
cmovne ecx, ebx
mov eax, ecx
jmp 0x41a488
movzx edi, byte [0x494c0f]
inc edi
shl edi, 8
cmp eax, edi
jge 0x41a390
push 0
mov esi, edi
sub esi, eax
lea eax, [eax + 0x494b10]
push esi
push eax
push dword [0x461ac4]
call dword [sym.imp.WS2_32.dll_recv]
cmp esi, eax
jne 0x41a3ab
movzx edx, byte [0x494c0f]
mov esi, 0x494b10
inc edx
mov ecx, esi
push 0xffffffffffffffff
shl edx, 8
call fcn.0040ebe2
test eax, eax
jne 0x41a3ab
mov eax, edi
mov edx, eax
mov ecx, esi
call fcn.00415155
test eax, eax
je 0x41a3d3
mov word [0x44de40], 0x328
jmp 0x419e88
mov ecx, dword [0x449648]
mov dl, 0xe
push 2
pop eax
push 0
push 0xff
mov byte [0x44de41], al
mov byte [0x44de40], 0x21
call fcn.0041055a
jmp 0x419e88
xor ecx, ecx
push str.TCP_Connection_Established
push ecx
push 0x20
push ecx
push ecx
mov dword [0x44aca0], ecx
call fcn.00420600
add esp, 0x14
cmp ebx, 0xe
jne 0x41a415
mov eax, dword [0x44de54]
xor ebx, ebx
push 0x3c
pop ecx
cdq
idiv ecx
push eax
push str.This_permission_stream_is_DELAYED__d_minutes
push 1
push 0x20
push ebx
push ebx
call fcn.00420600
add esp, 0x18
jmp 0x41a417
xor ebx, ebx
mov eax, dword [0x449648]
xor ecx, ecx
mov edx, dword [eax + 4]
shld ecx, edx, 0x10
shl edx, 0x10
or ecx, ebx
or edx, dword [eax + 8]
push ecx
push edx
call fcn.00401b05
push eax
push 0x481e18
push str.Active_Tape__s__s_bytes
push ebx
push 0x80
push ebx
push ebx
call fcn.00420600
mov ecx, dword [0x449648]
add esp, 0x1c
push ebx
push 0xff
push 2
pop eax
mov dl, al
call fcn.0041055a
cmp dword [0x461a84], 0
je 0x41a486
test dword [0x44e4a4], 0x100
jne 0x41a486
push dword [0x4619dc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret