Function at 0x41a430
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
mov eax, dword [edi + 0x70]
mov esi, dword [ebx + 0x34]
cmp eax, 3
ja case.default.0x41a44c
jmp dword [eax*4 + 0x41a944]
movzx eax, word [edi + 0x32]
cmp dword [esi + eax*4 + 0x1c], 0x44a07c
je 0x41a536
mov ecx, dword [edi + 0x6c]
and ecx, 0xf
push str.timeout
push ecx
call fcn.0041a290
movups xmm0, xmmword [edi + 0x18]
add esp, 4
push eax
movzx eax, word [edi + 0x32]
push str._s_:________s___________________n
push eax
sub esp, 0x18
mov eax, esp
push 5
movups xmmword [eax], xmm0
movq xmm0, qword [edi + 0x28]
movq qword [eax + 0x10], xmm0
call fcn.0041b490
mov eax, dword [ebx + 0x14]
lea esi, [edi + 0x50]
add eax, dword [ebp + 0x14]
mov ecx, 0x4000
mov ebx, dword [ebx + 0x28]
add esp, 0x2c
mul ecx
mov ecx, dword [ebp + 0x18]
shr ecx, 0xe
add eax, ecx
mov ecx, dword [esi + 0xc]
mov dword [ebp - 8], eax
adc edx, 0
mov dword [ebp - 0xc], edx
lea edx, [esi + 8]
test ecx, ecx
jne 0x41a4d6
cmp dword [edx], ecx
je 0x41a4f6
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [edx]
test ecx, ecx
je 0x41a4e6
mov eax, dword [esi + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 8]
mov dword [edx], 0
mov dword [esi + 0xc], 0
mov dword [esi], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], eax
mov dword [esi + 0x10], 0x50
mov eax, dword [ebx + 8]
and eax, dword [ebp - 8]
add eax, 3
lea ecx, [ebx + eax*4]
mov eax, dword [ecx]
mov dword [edx], eax
mov dword [ecx], esi
mov eax, dword [edx]
mov dword [esi + 0xc], ecx
test eax, eax
je 0x41a523
mov dword [eax + 0xc], edx
mov eax, dword [edi + 0x6c]
and eax, 0xfffffff2
mov dword [edi + 0x70], 1
or eax, 2
mov dword [edi + 0x6c], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
cmp eax, 1
jne 0x41a70f
movzx eax, word [edi + 0x32]
mov eax, dword [esi + eax*4 + 0x1c]
test eax, eax
je 0x41a64a
mov edx, dword [eax + 0x24]
xor ecx, ecx
mov dword [ebp - 0x10], ecx
xorps xmm0, xmm0
movq qword [ebp - 0x18], xmm0
test edx, edx
je 0x41a57c
lea eax, [ebp - 0x18]
push eax
push esi
call edx
mov edx, dword [ebp - 0x14]
add esp, 8
jmp 0x41a58e
mov edx, dword [eax + 0xc]
and ecx, 0xfffffffe
mov dword [ebp - 0x14], edx
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], ecx
movzx ecx, word [edi + 0x32]
cmp dword [esi + ecx*4 + 0x1c], 0x459cb0
jne 0x41a5a3
or dword [edi + 0x16c], 1
mov eax, dword [ebx + 0x34]
movups xmm0, xmmword [edi + 0x18]
push edx
push str.sending_payload__u_bytes_n
mov esi, dword [eax + 0x18]
push ecx
sub esp, 0x18
mov eax, esp
push 4
movups xmmword [eax], xmm0
movq xmm0, qword [edi + 0x28]
movq qword [eax + 0x10], xmm0
call fcn.0041b490
mov ecx, dword [edi + 0x6c]
add esp, 0x28
and ecx, 0xf
push str.peer_payload_
push ecx
call fcn.0041a290
movups xmm0, xmmword [edi + 0x18]
add esp, 4
push eax
movzx eax, word [edi + 0x32]
push str._s_:________s___________________n
push eax
sub esp, 0x18
mov eax, esp
push 5
movups xmmword [eax], xmm0
movq xmm0, qword [edi + 0x28]
movq qword [eax + 0x10], xmm0
call fcn.0041b490
add esp, 0x2c
shr esi, 5
and esi, 1
mov edx, edi
mov ecx, ebx
push esi
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push 0x18
call fcn.0041a110
mov eax, dword [ebp - 0x14]
add esp, 0x10
add dword [edi + 0x34], eax
mov ecx, dword [ebp - 0x10]
mov eax, dword [edi + 0x6c]
and ecx, 1
shl ecx, 6
and eax, 0xffffffbf
or ecx, eax
and ecx, 0xfffffff1
or ecx, 1
mov dword [edi + 0x6c], ecx
mov ecx, dword [edi + 0x6c]
and ecx, 0xf
push str.timeout
push ecx
call fcn.0041a290
movups xmm0, xmmword [edi + 0x18]
add esp, 4
push eax
movzx eax, word [edi + 0x32]
push str._s_:________s___________________n
push eax
sub esp, 0x18
mov eax, esp
push 5
movups xmmword [eax], xmm0
movq xmm0, qword [edi + 0x28]
movq qword [eax + 0x10], xmm0
call fcn.0041b490
mov eax, dword [ebp + 0x14]
mov ecx, 0x4000
mov ebx, dword [ebx + 0x28]
inc eax
mul ecx
mov ecx, dword [ebp + 0x18]
add esp, 0x2c
shr ecx, 0xe
mov esi, eax
add esi, ecx
mov eax, edx
mov ecx, dword [edi + 0x5c]
adc eax, 0
add edi, 0x50
mov dword [ebp - 0xc], eax
lea edx, [edi + 8]
test ecx, ecx
jne 0x41a6bb
cmp dword [edx], 0
je 0x41a6db
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [edx]
test ecx, ecx
je 0x41a6cb
mov eax, dword [edi + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [edx], 0
mov dword [edi + 0xc], 0
mov dword [edi], esi
mov dword [edi + 4], eax
mov dword [edi + 0x10], 0x50
mov eax, dword [ebx + 8]
and eax, esi
add eax, 3
lea ecx, [ebx + eax*4]
mov eax, dword [ecx]
mov dword [edx], eax
mov dword [ecx], edi
mov dword [edi + 0xc], ecx
mov eax, dword [edx]
test eax, eax
je 0x41a536
mov dword [eax + 0xc], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x41a536
mov dword [edi + 0x70], eax
jmp 0x41a727
cmp dword [ebp + 8], 2
jne 0x41a536
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x18]
mov ecx, dword [ebx + 0x34]
lea edx, [edi + 0x160]
push eax
lea eax, [edi + 0x88]
mov dword [ebp - 0x10], 0
push eax
push esi
push dword [ebp + 0xc]
xorps xmm0, xmm0
movq qword [ebp - 0x18], xmm0
call fcn.0040dfc0
mov ecx, dword [edi + 0x6c]
add esp, 0x10
add dword [edi + 0x38], esi
and ecx, 0xf
cmp dword [ebp - 0x14], 0
push str.peer_ACK_
push ecx
je 0x41a84e
call fcn.0041a290
movups xmm0, xmmword [edi + 0x18]
add esp, 4
push eax
movzx eax, word [edi + 0x32]
push str._s_:________s___________________n
push eax
sub esp, 0x18
mov eax, esp
push 5
movups xmmword [eax], xmm0
movq xmm0, qword [edi + 0x28]
movq qword [eax + 0x10], xmm0
call fcn.0041b490
mov ecx, dword [edi + 0x6c]
add esp, 0x2c
and ecx, 0xf
push str.peer_payload_
push ecx
call fcn.0041a290
movups xmm0, xmmword [edi + 0x18]
add esp, 4
push eax
movzx eax, word [edi + 0x32]
push str._s_:________s___________________n
push eax
sub esp, 0x18
mov eax, esp
push 5
movups xmmword [eax], xmm0
movq xmm0, qword [edi + 0x28]
movq qword [eax + 0x10], xmm0
call fcn.0041b490
add esp, 0x2c
mov edx, edi
mov ecx, ebx
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push 0x18
call fcn.0041a110
mov ecx, dword [ebp - 0x10]
add esp, 0x10
mov eax, dword [edi + 0x6c]
and ecx, 1
mov edx, dword [ebp - 0x14]
and eax, 0xffffffbf
movups xmm0, xmmword [edi + 0x18]
add dword [edi + 0x34], edx
shl ecx, 6
push edx
or ecx, eax
mov dword [edi + 0x70], 3
movzx eax, word [edi + 0x32]
and ecx, 0xfffffff1
push str.sending_payload__u_bytes_n
push eax
sub esp, 0x18
or ecx, 1
mov eax, esp
mov dword [edi + 0x6c], ecx
push 4
movups xmmword [eax], xmm0
movq xmm0, qword [edi + 0x28]
movq qword [eax + 0x10], xmm0
call fcn.0041b490
add esp, 0x28
jmp 0x41a895
call fcn.0041a290
movups xmm0, xmmword [edi + 0x18]
add esp, 4
push eax
movzx eax, word [edi + 0x32]
push str._s_:________s___________________n
push eax
sub esp, 0x18
mov eax, esp
push 5
movups xmmword [eax], xmm0
movq xmm0, qword [edi + 0x28]
movq qword [eax + 0x10], xmm0
call fcn.0041b490
add esp, 0x2c
mov edx, edi
mov ecx, ebx
push 0
push 0
push 0
push 0x10
call fcn.0041a110
add esp, 0x10
test byte [ebp - 0x10], 2
je 0x41a536
mov ecx, dword [edi + 0x6c]
and ecx, 0xf
push str.peer_FIN_
push ecx
call fcn.0041a290
movups xmm0, xmmword [edi + 0x18]
add esp, 4
push eax
movzx eax, word [edi + 0x32]
push str._s_:________s___________________n
push eax
sub esp, 0x18
mov eax, esp
push 5
movups xmmword [eax], xmm0
movq xmm0, qword [edi + 0x28]
movq qword [eax + 0x10], xmm0
call fcn.0041b490
add esp, 0x2c
mov edx, edi
mov ecx, ebx
push 0
push 0
push 0
push 0x11
call fcn.0041a110
mov ecx, dword [edi + 0x6c]
add esp, 0x10
inc dword [edi + 0x34]
and ecx, 0xfffffff4
or ecx, 4
mov dword [edi + 0x6c], ecx
jmp 0x41a64d
cmp dword [ebp + 8], 3
jne 0x41a536
mov eax, dword [edi + 0x6c]
and eax, 0xfffffff2
mov dword [edi + 0x70], 2
or eax, 2
mov dword [edi + 0x6c], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.TCP_state_error_n
push 0
call fcn.0041b440
add esp, 8
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
nop dword [eax]
push ebx
movsb byte es:[edi], byte [esi]
inc ecx
add byte [0x1d0041a5], bh
cmpsd dword [esi], dword es:[edi]
inc ecx
add byte [esi], al
test eax, 0xcccc0041
int3