Function at 0x4092c0
Capabilities:
Initialize winsock library
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x410e11
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x400
mov eax, dword [0x41700c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x3ec], esi
mov dword [ebp - 0x3ec], esi
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
mov dword [ebp - 0x3ec], esp
push 0x417868
call fcn.004028b0
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
xorps xmm0, xmm0
push 0xb
movups xmmword [ecx], xmm0
push str._sock_start
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.00403260
mov cl, byte [0x4177d8]
mov byte [ebp - 4], 0
call fcn.00405fa0
add esp, 0x30
mov dword [ebp - 0x3e4], 0
lea eax, [ebp - 0x3e0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov edi, eax
sub esp, 0x18
mov ecx, esp
test edi, edi
je 0x40946e
mov dword [ebp - 0x3f0], esp
push 0x417868
call fcn.004028b0
lea edi, [edi + str.WSAStartup_failed_with_error:]
mov byte [ebp - 4], 2
sub esp, 0x18
mov ecx, edi
mov edx, esp
xorps xmm0, xmm0
lea eax, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [ebp - 0x3ec], eax
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4093d0
sub ecx, dword [ebp - 0x3ec]
push ecx
push edi
mov ecx, edx
call fcn.00403260
mov cl, byte [0x4177d8]
mov byte [ebp - 4], 0
call fcn.00405fa0
add esp, 0x30
xorps xmm0, xmm0
mov ecx, esi
movups xmmword [esi], xmm0
push 0
mov dword [esi + 0x10], 0
push 0x412570
mov dword [esi + 0x14], 0
call fcn.00403260
mov ecx, dword [ebx + 0x1c]
cmp ecx, 0x10
jb 0x40944e
mov edx, dword [ebx + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409444
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409bf6
push ecx
push edx
call fcn.0040f66d
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040f11c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov dword [ebp - 0x3ec], esp
push 0x417868
call fcn.004028b0
sub esp, 0x18
mov byte [ebp - 4], 3
mov ecx, esp
xorps xmm0, xmm0
push 0xd
movups xmmword [ecx], xmm0
push str._sock_start_0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.00403260
mov cl, byte [0x4177d8]
mov byte [ebp - 4], 0
call fcn.00405fa0
add esp, 0x18
mov dword [ebp - 0x24c], 2
xorps xmm0, xmm0
mov dword [ebp - 0x3ec], esp
mov ecx, esp
movlpd qword [ebp - 0x240], xmm0
movlpd qword [ebp - 0x238], xmm0
push 0x417868
mov dword [ebp - 0x248], 1
mov dword [ebp - 0x244], 6
mov dword [ebp - 0x250], 1
call fcn.004028b0
sub esp, 0x18
mov byte [ebp - 4], 4
mov ecx, esp
mov eax, accept
mov dword [ebp - 0x3f0], ecx
mov edx, dword [ebx + 0x18]
sub eax, edx
cmp eax, 0x15
jb 0x40a3be
cmp dword [ebx + 0x1c], 0x10
lea eax, [ebx + 8]
push edx
cmovae eax, dword [ebx + 8]
push eax
push 0x15
push str._sock_start_1:_port:
push ecx
push dword [ebp - 0x3ec]
call fcn.00408090
mov cl, byte [0x4177d8]
mov byte [ebp - 4], 0
call fcn.00405fa0
add esp, 0x30
lea ecx, [ebp - 0x3e4]
cmp dword [ebx + 0x1c], 0x10
lea eax, [ebx + 8]
cmovae eax, dword [ebx + 8]
push ecx
lea ecx, [ebp - 0x250]
push ecx
push eax
push 0
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0x3e8], eax
test eax, eax
je 0x4096bf
call dword [sym.imp.WS2_32.dll_WSACleanup]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x3ec], esp
push 0x417868
call fcn.004028b0
mov byte [ebp - 4], 5
lea edi, [ebp - 0x1b]
mov ecx, dword [ebp - 0x3e8]
test ecx, ecx
jns 0x409600
neg ecx
mov dword [ebp - 0x3e8], ecx
nop
mov eax, 0xcccccccd
dec edi
mul ecx
shr edx, 3
mov al, dl
shl al, 2
lea ecx, [eax + edx]
mov eax, dword [ebp - 0x3e8]
add cl, cl
sub al, cl
mov ecx, eax
mov dword [ebp - 0x3e8], eax
add cl, 0x30
mov byte [edi], cl
mov ecx, edx
mov dword [ebp - 0x3e8], ecx
test ecx, ecx
jne 0x4095c0
dec edi
mov byte [edi], 0x2d
jmp 0x409636
mov eax, 0xcccccccd
dec edi
mul ecx
shr edx, 3
mov al, dl
shl al, 2
lea ecx, [eax + edx]
mov eax, dword [ebp - 0x3e8]
add cl, cl
sub al, cl
mov ecx, eax
mov dword [ebp - 0x3e8], eax
add cl, 0x30
mov byte [edi], cl
mov ecx, edx
mov dword [ebp - 0x3e8], ecx
test ecx, ecx
jne 0x409600
push ecx
lea eax, [ebp - 0x1b]
push eax
push edi
lea ecx, [ebp - 0x408]
call fcn.00403810
sub esp, 0x18
mov byte [ebp - 4], 6
lea eax, [ebp - 0x408]
mov ecx, esp
mov edx, str.getaddrinfo_failed_with_error:
push eax
call fcn.00402ec0
add esp, 4
mov cl, byte [0x4177d8]
mov byte [ebp - 4], 7
call fcn.00405fa0
mov byte [ebp - 4], 0
add esp, 0x30
mov ecx, dword [ebp - 0x3f4]
cmp ecx, 0x10
jb 0x4093f8
mov edx, dword [ebp - 0x408]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4096b0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4096b0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040f66d
add esp, 8
jmp 0x4093f8
mov eax, dword [ebp - 0x3e4]
push dword [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_socket]
sub esp, 0x18
mov dword [ebp - 0x3f0], eax
mov ecx, esp
cmp eax, 0xffffffff
jne 0x40982d
mov dword [ebp - 0x3ec], esp
push 0x417868
call fcn.004028b0
mov byte [ebp - 4], 8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea edi, [ebp - 0x1b]
mov dword [ebp - 0x3e8], ecx
test ecx, ecx
jns 0x409760
neg ecx
mov dword [ebp - 0x3e8], ecx
nop dword [eax]
mov eax, 0xcccccccd
dec edi
mul ecx
shr edx, 3
mov al, dl
shl al, 2
lea ecx, [eax + edx]
mov eax, dword [ebp - 0x3e8]
add cl, cl
sub al, cl
mov ecx, eax
mov dword [ebp - 0x3e8], eax
add cl, 0x30
mov byte [edi], cl
mov ecx, edx
mov dword [ebp - 0x3e8], ecx
test ecx, ecx
jne 0x409720
dec edi
mov byte [edi], 0x2d
jmp 0x409796
mov eax, 0xcccccccd
dec edi
mul ecx
shr edx, 3
mov al, dl
shl al, 2
lea ecx, [eax + edx]
mov eax, dword [ebp - 0x3e8]
add cl, cl
sub al, cl
mov ecx, eax
mov dword [ebp - 0x3e8], eax
add cl, 0x30
mov byte [edi], cl
mov ecx, edx
mov dword [ebp - 0x3e8], ecx
test ecx, ecx
jne 0x409760
push ecx
lea eax, [ebp - 0x1b]
push eax
push edi
lea ecx, [ebp - 0x408]
call fcn.00403810
sub esp, 0x18
mov byte [ebp - 4], 9
lea eax, [ebp - 0x408]
mov ecx, esp
mov edx, str.socket_failed_with_error:
push eax
call fcn.00402ec0
add esp, 4
mov cl, byte [0x4177d8]
mov byte [ebp - 4], 0xa
call fcn.00405fa0
mov byte [ebp - 4], 0
add esp, 0x30
mov ecx, dword [ebp - 0x3f4]
cmp ecx, 0x10
jb 0x409816
mov edx, dword [ebp - 0x408]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40980c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40980c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040f66d
add esp, 8
push dword [ebp - 0x3e4]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x4093f8
mov dword [ebp - 0x3e8], esp
push 0x417868
call fcn.004028b0
mov byte [ebp - 4], 0xb
lea edi, [ebp - 0x1b]
mov ecx, dword [ebp - 0x3f0]
mov dword [ebp - 0x3ec], ecx
mov eax, 0xcccccccd
dec edi
mul ecx
shr edx, 3
mov al, dl
shl al, 2
lea ecx, [eax + edx]
mov eax, dword [ebp - 0x3ec]
add cl, cl
sub al, cl
mov ecx, edx
add al, 0x30
mov byte [edi], al
mov eax, edx
mov dword [ebp - 0x3ec], eax
test eax, eax
jne 0x409850
push ecx
lea eax, [ebp - 0x1b]
push eax
push edi
lea ecx, [ebp - 0x408]
call fcn.00403810
sub esp, 0x18
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x408]
mov ecx, esp
mov edx, str._sock_start_2__socket:
push eax
call fcn.00402ec0
add esp, 4
mov cl, byte [0x4177d8]
mov byte [ebp - 4], 0xd
call fcn.00405fa0
mov byte [ebp - 4], 0
add esp, 0x30
mov ecx, dword [ebp - 0x3f4]
cmp ecx, 0x10
jb 0x4098ff
mov edx, dword [ebp - 0x408]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4098f5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4098f5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040f66d
add esp, 8
mov eax, dword [ebp - 0x3e4]
mov edi, dword [ebp - 0x3f0]
push dword [eax + 0x10]
push dword [eax + 0x18]
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x409a6c
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x3ec], esp
push 0x417868
call fcn.004028b0
mov byte [ebp - 4], 0xe
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea edi, [ebp - 0x1b]
mov dword [ebp - 0x3e8], ecx
test ecx, ecx
jns 0x409993
neg ecx
mov dword [ebp - 0x3e8], ecx
mov eax, 0xcccccccd
dec edi
mul ecx
shr edx, 3
mov al, dl
shl al, 2
lea ecx, [eax + edx]
mov eax, dword [ebp - 0x3e8]
add cl, cl
sub al, cl
mov ecx, eax
mov dword [ebp - 0x3e8], eax
add cl, 0x30
mov byte [edi], cl
mov ecx, edx
mov dword [ebp - 0x3e8], ecx
test ecx, ecx
jne 0x409957
dec edi
mov byte [edi], 0x2d
jmp 0x4099c9
mov eax, 0xcccccccd
dec edi
mul ecx
shr edx, 3
mov al, dl
shl al, 2
lea ecx, [eax + edx]
mov eax, dword [ebp - 0x3e8]
add cl, cl
sub al, cl
mov ecx, eax
mov dword [ebp - 0x3e8], eax
add cl, 0x30
mov byte [edi], cl
mov ecx, edx
mov dword [ebp - 0x3e8], ecx
test ecx, ecx
jne 0x409993
push ecx
lea eax, [ebp - 0x1b]
push eax
push edi
lea ecx, [ebp - 0x408]
call fcn.00403810
sub esp, 0x18
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x408]
mov ecx, esp
mov edx, str.bind_failed_with_error:
push eax
call fcn.00402ec0
add esp, 4
mov cl, byte [0x4177d8]
mov byte [ebp - 4], 0x10
call fcn.00405fa0
mov byte [ebp - 4], 0
add esp, 0x30
mov ecx, dword [ebp - 0x3f4]
cmp ecx, 0x10
jb 0x409a49
mov edx, dword [ebp - 0x408]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409a3f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x409a3f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040f66d
add esp, 8
push dword [ebp - 0x3e4]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
push dword [ebp - 0x3f0]
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x4093f8
push dword [ebp - 0x3e4]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x3ec], esp
push 0x417868
call fcn.004028b0
sub esp, 0x18
mov byte [ebp - 4], 0x11
mov ecx, esp
xorps xmm0, xmm0
push 0xd
movups xmmword [ecx], xmm0
push str._sock_start_3
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.00403260
mov cl, byte [0x4177d8]
mov byte [ebp - 4], 0
call fcn.00405fa0
add esp, 0x30
push accept
push edi
call dword [sym.imp.WS2_32.dll_listen]
sub esp, 0x18
mov dword [ebp - 0x3ec], esp
mov ecx, esp
push 0x417868
cmp eax, 0xffffffff
jne 0x409c1d
call fcn.004028b0
mov byte [ebp - 4], 0x12
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea edi, [ebp - 0x1b]
mov dword [ebp - 0x3e8], ecx
test ecx, ecx
jns 0x409b50
neg ecx
mov dword [ebp - 0x3e8], ecx
mov eax, 0xcccccccd
dec edi
mul ecx
shr edx, 3
mov al, dl
shl al, 2
lea ecx, [eax + edx]
mov eax, dword [ebp - 0x3e8]
add cl, cl
sub al, cl
mov ecx, eax
mov dword [ebp - 0x3e8], eax
add cl, 0x30
mov byte [edi], cl
mov ecx, edx
mov dword [ebp - 0x3e8], ecx
test ecx, ecx
jne 0x409b13
dec edi
mov byte [edi], 0x2d
jmp 0x409b86
mov eax, 0xcccccccd
dec edi
mul ecx
shr edx, 3
mov al, dl
shl al, 2
lea ecx, [eax + edx]
mov eax, dword [ebp - 0x3e8]
add cl, cl
sub al, cl
mov ecx, eax
mov dword [ebp - 0x3e8], eax
add cl, 0x30
mov byte [edi], cl
mov ecx, edx
mov dword [ebp - 0x3e8], ecx
test ecx, ecx
jne 0x409b50
push ecx
lea eax, [ebp - 0x1b]
push eax
push edi
lea ecx, [ebp - 0x408]
call fcn.00403810
sub esp, 0x18
mov byte [ebp - 4], 0x13
lea eax, [ebp - 0x408]
mov ecx, esp
mov edx, str.listen_failed_with_error:
push eax
call fcn.00402ec0
add esp, 4
mov byte [ebp - 4], 0x14
mov cl, byte [0x4177d8]
call fcn.00405fa0
mov byte [ebp - 4], 0
add esp, 0x30
mov ecx, dword [ebp - 0x3f4]
cmp ecx, 0x10
jb 0x409c06
mov edx, dword [ebp - 0x408]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409bfc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x409bfc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040f66d
add esp, 8
push dword [ebp - 0x3f0]
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x4093f8
call fcn.004028b0
sub esp, 0x18
mov byte [ebp - 4], 0x15
mov ecx, esp
xorps xmm0, xmm0
push 0xd
movups xmmword [ecx], xmm0
push str._sock_start_4
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.00403260
mov cl, byte [0x4177d8]
mov byte [ebp - 4], 0
call fcn.00405fa0
add esp, 0x30
push 0
push 0
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
mov dword [ebp - 0x3ec], edi
cmp edi, 0xffffffff
jne 0x409d5d
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x3ec], esp
push 0x417868
call fcn.004028b0
mov byte [ebp - 4], 0x16
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea edi, [ebp - 0x1b]
mov dword [ebp - 0x3e8], ecx
test ecx, ecx
jns 0x409cf0
neg ecx
mov dword [ebp - 0x3e8], ecx
nop
mov eax, 0xcccccccd
dec edi
mul ecx
shr edx, 3
mov al, dl
shl al, 2
lea ecx, [eax + edx]
mov eax, dword [ebp - 0x3e8]
add cl, cl
sub al, cl
mov ecx, eax
mov dword [ebp - 0x3e8], eax
add cl, 0x30
mov byte [edi], cl
mov ecx, edx
mov dword [ebp - 0x3e8], ecx
test ecx, ecx
jne 0x409cb0
dec edi
mov byte [edi], 0x2d
jmp 0x409d26
mov eax, 0xcccccccd
dec edi
mul ecx
shr edx, 3
mov al, dl
shl al, 2
lea ecx, [eax + edx]
mov eax, dword [ebp - 0x3e8]
add cl, cl
sub al, cl
mov ecx, eax
mov dword [ebp - 0x3e8], eax
add cl, 0x30
mov byte [edi], cl
mov ecx, edx
mov dword [ebp - 0x3e8], ecx
test ecx, ecx
jne 0x409cf0
push ecx
lea eax, [ebp - 0x1b]
push eax
push edi
lea ecx, [ebp - 0x408]
call fcn.00403810
sub esp, 0x18
mov byte [ebp - 4], 0x17
lea eax, [ebp - 0x408]
mov ecx, esp
mov edx, str.accept_failed_with_error:
push eax
call fcn.00402ec0
add esp, 4
mov byte [ebp - 4], 0x18
jmp 0x409bb8
push dword [ebp - 0x3f0]
call dword [sym.imp.WS2_32.dll_closesocket]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x3f0], esp
push 0x417868
call fcn.004028b0
sub esp, 0x18
mov byte [ebp - 4], 0x19
mov ecx, esp
xorps xmm0, xmm0
push 0xd
movups xmmword [ecx], xmm0
push str._sock_start_5
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.00403260
mov cl, byte [0x4177d8]
mov byte [ebp - 4], 0
call fcn.00405fa0
add esp, 0x30
nop dword [eax]
push 0
push 0x200
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test edi, edi
jle 0x409f7c
push edi
push str.Bytes_received:__d_n
call fcn.00408c80
add esp, 8
lea eax, [ebp - 0x230]
push 0
push edi
mov edi, dword [ebp - 0x3ec]
push eax
push edi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x409e3b
push eax
push str.Bytes_sent:__d_n
call fcn.00408c80
add esp, 8
lea edx, [ebp - 0x230]
push 0x4075a0
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.004077e0
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
jmp 0x409dc0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x3f0], esp
push 0x417868
call fcn.004028b0
mov byte [ebp - 4], 0x1a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea edi, [ebp - 0x1b]
mov dword [ebp - 0x3e8], ecx
test ecx, ecx
jns 0x409eb0
neg ecx
mov dword [ebp - 0x3e8], ecx
mov eax, 0xcccccccd
dec edi
mul ecx
shr edx, 3
mov al, dl
shl al, 2
lea ecx, [eax + edx]
mov eax, dword [ebp - 0x3e8]
add cl, cl
sub al, cl
mov ecx, eax
mov dword [ebp - 0x3e8], eax
add cl, 0x30
mov byte [edi], cl
mov ecx, edx
mov dword [ebp - 0x3e8], ecx
test ecx, ecx
jne 0x409e71
dec edi
mov byte [edi], 0x2d
jmp 0x409ee6
mov eax, 0xcccccccd
dec edi
mul ecx
shr edx, 3
mov al, dl
shl al, 2
lea ecx, [eax + edx]
mov eax, dword [ebp - 0x3e8]
add cl, cl
sub al, cl
mov ecx, eax
mov dword [ebp - 0x3e8], eax
add cl, 0x30
mov byte [edi], cl
mov ecx, edx
mov dword [ebp - 0x3e8], ecx
test ecx, ecx
jne 0x409eb0
push ecx
lea eax, [ebp - 0x1b]
push eax
push edi
lea ecx, [ebp - 0x408]
call fcn.00403810
sub esp, 0x18
mov byte [ebp - 4], 0x1b
lea eax, [ebp - 0x408]
mov ecx, esp
mov edx, str.send_failed_with_error:
push eax
call fcn.00402ec0
add esp, 4
mov byte [ebp - 4], 0x1c
mov cl, byte [0x4177d8]
call fcn.00405fa0
mov byte [ebp - 4], 0
add esp, 0x30
mov ecx, dword [ebp - 0x3f4]
cmp ecx, 0x10
jb 0x409f64
mov edx, dword [ebp - 0x408]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409f5a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409bf6
push ecx
push edx
call fcn.0040f66d
add esp, 8
push dword [ebp - 0x3ec]
mov eax, dword [sym.imp.WS2_32.dll_closesocket]
call eax
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x4093f8
jne 0x40a254
push str.Connection_closing..._n
call fcn.00408c80
sub esp, 0x14
mov ecx, esp
mov dword [ebp - 0x3f0], esp
push 0x417868
call fcn.004028b0
sub esp, 0x18
mov byte [ebp - 4], 0x20
mov ecx, esp
xorps xmm0, xmm0
push 0xd
movups xmmword [ecx], xmm0
push str._sock_start_6
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.00403260
mov cl, byte [0x4177d8]
mov byte [ebp - 4], 0
call fcn.00405fa0
mov edi, dword [ebp - 0x3ec]
add esp, 0x30
push 1
push edi
call dword [sym.imp.WS2_32.dll_shutdown]
cmp eax, 0xffffffff
jne 0x40a0dd
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x3f0], esp
push 0x417868
call fcn.004028b0
mov byte [ebp - 4], 0x21
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea edi, [ebp - 0x1b]
mov dword [ebp - 0x3e8], ecx
test ecx, ecx
jns 0x40a070
neg ecx
mov dword [ebp - 0x3e8], ecx
nop word [eax + eax]
mov eax, 0xcccccccd
dec edi
mul ecx
shr edx, 3
mov al, dl
shl al, 2
lea ecx, [eax + edx]
mov eax, dword [ebp - 0x3e8]
add cl, cl
sub al, cl
mov ecx, eax
mov dword [ebp - 0x3e8], eax
add cl, 0x30
mov byte [edi], cl
mov ecx, edx
mov dword [ebp - 0x3e8], ecx
test ecx, ecx
jne 0x40a030
dec edi
mov byte [edi], 0x2d
jmp 0x40a0a6
mov eax, 0xcccccccd
dec edi
mul ecx
shr edx, 3
mov al, dl
shl al, 2
lea ecx, [eax + edx]
mov eax, dword [ebp - 0x3e8]
add cl, cl
sub al, cl
mov ecx, eax
mov dword [ebp - 0x3e8], eax
add cl, 0x30
mov byte [edi], cl
mov ecx, edx
mov dword [ebp - 0x3e8], ecx
test ecx, ecx
jne 0x40a070
push ecx
lea eax, [ebp - 0x1b]
push eax
push edi
lea ecx, [ebp - 0x408]
call fcn.00403810
sub esp, 0x18
mov byte [ebp - 4], 0x22
lea eax, [ebp - 0x408]
mov ecx, esp
mov edx, str.shutdown_failed_with_error:
push eax
call fcn.00402ec0
add esp, 4
mov byte [ebp - 4], 0x23
jmp 0x409f18
mov eax, dword [sym.imp.WS2_32.dll_closesocket]
push edi
call eax
call dword [sym.imp.WS2_32.dll_WSACleanup]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x3ec], esp
push 0x417868
call fcn.004028b0
sub esp, 0x18
mov byte [ebp - 4], 0x24
mov ecx, esp
xorps xmm0, xmm0
push 9
movups xmmword [ecx], xmm0
push str._sock_end
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.00403260
mov cl, byte [0x4177d8]
mov byte [ebp - 4], 0
call fcn.00405fa0
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x1c], 0
add esp, 0x30
lea edx, [ecx + 1]
movups xmmword [ebp - 0x30], xmm0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a160
sub ecx, edx
lea eax, [ebp - 0x230]
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.00403260
mov byte [ebp - 4], 0x25
lea edi, [ebp - 0x30]
cmp dword [ebp - 0x1c], 0x10
mov eax, dword [ebp - 0x20]
cmovae edi, dword [ebp - 0x30]
test eax, eax
je 0x40a1a5
push eax
push 0x7c
push edi
call sub.VCRUNTIME140.dll_memchr
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x40a1a5
sub ecx, edi
jmp 0x40a1a8
or ecx, 0xffffffff
cmp dword [ebp - 0x20], ecx
lea eax, [ebp - 0x30]
xorps xmm0, xmm0
cmovb ecx, dword [ebp - 0x20]
cmp dword [ebp - 0x1c], 0x10
push ecx
cmovae eax, dword [ebp - 0x30]
mov ecx, esi
movups xmmword [esi], xmm0
push eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.00403260
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0x10
jb 0x40a20b
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a201
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409bf6
push ecx
push edx
call fcn.0040f66d
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
mov ecx, dword [ebx + 0x1c]
cmp ecx, 0x10
jb 0x40944e
mov edx, dword [ebx + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409444
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x409444
jmp 0x409bf6
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x3f0], esp
push 0x417868
call fcn.004028b0
mov byte [ebp - 4], 0x1d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea edi, [ebp - 0x1b]
mov dword [ebp - 0x3e8], ecx
test ecx, ecx
jns 0x40a2d0
neg ecx
mov dword [ebp - 0x3e8], ecx
nop word [eax + eax]
mov eax, 0xcccccccd
dec edi
mul ecx
shr edx, 3
mov al, dl
shl al, 2
lea ecx, [eax + edx]
mov eax, dword [ebp - 0x3e8]
add cl, cl
sub al, cl
mov ecx, eax
mov dword [ebp - 0x3e8], eax
add cl, 0x30
mov byte [edi], cl
mov ecx, edx
mov dword [ebp - 0x3e8], ecx
test ecx, ecx
jne 0x40a290
dec edi
mov byte [edi], 0x2d
jmp 0x40a306
mov eax, 0xcccccccd
dec edi
mul ecx
shr edx, 3
mov al, dl
shl al, 2
lea ecx, [eax + edx]
mov eax, dword [ebp - 0x3e8]
add cl, cl
sub al, cl
mov ecx, eax
mov dword [ebp - 0x3e8], eax
add cl, 0x30
mov byte [edi], cl
mov ecx, edx
mov dword [ebp - 0x3e8], ecx
test ecx, ecx
jne 0x40a2d0
push ecx
lea eax, [ebp - 0x1b]
push eax
push edi
lea ecx, [ebp - 0x408]
call fcn.00403810
sub esp, 0x18
mov byte [ebp - 4], 0x1e
lea eax, [ebp - 0x408]
mov ecx, esp
mov edx, str.recv_failed_with_error:
push eax
call fcn.00402ec0
add esp, 4
mov cl, byte [0x4177d8]
mov byte [ebp - 4], 0x1f
call fcn.00405fa0
mov byte [ebp - 4], 0
add esp, 0x30
mov ecx, dword [ebp - 0x3f4]
cmp ecx, 0x10
jb 0x40a384
mov edx, dword [ebp - 0x408]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a37a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409bf6
push ecx
push edx
call fcn.0040f66d
add esp, 8
push dword [ebp - 0x3ec]
mov eax, dword [sym.imp.WS2_32.dll_closesocket]
call eax
call dword [sym.imp.WS2_32.dll_WSACleanup]
xorps xmm0, xmm0
mov ecx, esi
push 0
movups xmmword [esi], xmm0
push 0x412570
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.00403260
jmp 0x40a21d
call fcn.00401420
int3