Function at 0x4023a0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x406004]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_recv]
lea eax, [esp + 0x14]
push edi
push 0
push 4
mov edi, ecx
push eax
push edi
call esi
cmp eax, 4
je 0x402414
push str.____errors_in_From_clnt_req_Get_dest_Socket_
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_puts]
add esp, 4
mov dword [esp + 0x10], 0x100ff05
push 0
push 4
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_send]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.00402fa7
mov esp, ebp
pop ebp
ret
movsx eax, byte [esp + 0x1b]
push 0
sub eax, 1
je 0x4025b1
sub eax, 2
je 0x402496
sub eax, 1
mov dword [esp + 0x14], 0x1000805
push 4
lea eax, [esp + 0x18]
push eax
push edi
je 0x40246a
call dword [sym.imp.WS2_32.dll_send]
push str.____NOT_IPv4__IPv6__or_URL_
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_puts]
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.00402fa7
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_send]
push str.____Not_support_IPv6
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_puts]
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.00402fa7
mov esp, ebp
pop ebp
ret
push 1
lea eax, [esp + 0x160]
push eax
push edi
call esi
cmp eax, 1
jne 0x4023fc
movsx ebx, byte [esp + 0x158]
test ebx, ebx
jle 0x4023fc
push 0
push ebx
lea eax, [esp + 0x30]
push eax
push edi
call esi
cmp eax, ebx
je 0x402503
push str.Something_error_on_read_URL
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_puts]
add esp, 4
lea eax, [esp + 0x28]
push eax
push str.the_read_url_is__s__n
call fcn.00401040
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.00402fa7
mov esp, ebp
pop ebp
ret
cmp eax, 0x12c
jae 0x40269f
push 0
mov byte [esp + eax + 0x2c], 0
lea eax, [esp + 0x18]
push 2
push eax
push edi
call esi
cmp eax, 2
jne 0x4025ee
mov ax, word [esp + 0x14]
movzx ecx, al
shl cx, 8
movzx eax, ah
movzx esi, cx
or esi, eax
lea eax, [esp + 0x28]
push esi
push eax
push str.___TCP_______s:_d_n
call fcn.00401040
add esp, 0xc
lea ecx, [esp + 0x28]
mov edx, esi
call fcn.004027c0
mov esi, eax
cmp esi, 0xffffffff
jne 0x402662
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x274c
jne 0x40257f
mov dword [esp + 0x10], 0x1000605
jmp 0x4023ec
jle 0x40264a
cmp eax, 0x274d
jne 0x402599
mov dword [esp + 0x10], 0x1000505
jmp 0x4023ec
cmp eax, 0x2751
jne 0x4023fc
mov dword [esp + 0x10], 0x1000405
jmp 0x4023ec
push 4
lea eax, [esp + 0x14]
push eax
push edi
call esi
push dword [esp + 0xc]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
lea edx, [esp + 0x28]
sub edx, eax
nop dword [eax + eax]
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x4025d0
push 0
push 2
lea eax, [esp + 0x1c]
push eax
push edi
call esi
cmp eax, 2
je 0x4025fb
mov dword [esp + 0x10], 0x1000805
jmp 0x4023ec
mov ax, word [esp + 0x14]
movzx ecx, al
shl cx, 8
movzx eax, ah
movzx esi, cx
or esi, eax
lea eax, [esp + 0x28]
push esi
push eax
push str.___TCP_______s:_d_n
call fcn.00401040
add esp, 0xc
lea ecx, [esp + 0x28]
mov edx, esi
call fcn.004027c0
mov esi, eax
cmp esi, 0xffffffff
jne 0x402662
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x274c
je 0x402572
jmp 0x40257f
cmp eax, 0x2743
jne 0x4023fc
mov dword [esp + 0x10], 0x1000305
jmp 0x4023ec
mov eax, 0x41414141
mov dword [esp + 0x1c], 0x1000005
push 0
mov dword [esp + 0x24], eax
mov word [esp + 0x28], ax
lea eax, [esp + 0x20]
push 0xa
push eax
push edi
call dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [esp + 0x224]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00402fa7
mov esp, ebp
pop ebp
ret
call fcn.004030d9
int3