Function at 0x2703289a
Capabilities:
Connect socket
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4034
call fcn.27088fa0
mov eax, dword [0x270b313c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x4034]
push eax
lea eax, [ebp - 0x4018]
push eax
xor ebx, ebx
push ebx
push 0x2000
push 0x270bbfae
push dword [0x270bbfa8]
mov dword [ebp - 0x4034], 0x10
call sub.WS2_32.dll_recvfrom
mov esi, eax
cmp esi, 0xc
mov dword [ebp - 0x402c], esi
jle 0x27032d5f
xor eax, eax
lea edi, [ebp - 0x2008]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov ax, word [0x270bbfae]
or byte [ebp - 0x2006], 0x80
test byte [0x270bbfb0], 0x82
mov dword [ebp - 0x4028], ebx
mov dword [ebp - 0x4024], ebx
mov word [ebp - 0x2008], ax
mov edi, 0x270bbfba
lea ebx, [esi + 0x270bbfae]
jne 0x27032a37
movzx eax, word [0x270bbfb2]
push eax
call sub.WS2_32.dll_ntohs
cmp ax, 1
jne 0x27032a37
and dword [ebp - 0x401c], 0
mov esi, edi
cmp ebx, edi
jbe 0x27032a21
mov al, byte [esi]
inc esi
cmp al, 0x3f
ja 0x27032a11
movzx ecx, al
add ecx, esi
lea edx, [ebx - 4]
cmp ecx, edx
ja 0x27032a11
test al, al
jbe 0x270329da
cmp dword [ebp - 0x401c], 0
jle 0x270329a4
mov ecx, dword [ebp - 0x401c]
inc dword [ebp - 0x401c]
mov byte [ebp + ecx - 0x4008], 0x2e
jmp 0x270329a4
mov al, byte [ebp - 0x401d]
dec al
mov byte [ebp - 0x401d], al
movsx eax, byte [esi]
push eax
call dword [sym.imp.msvcrt.dll_tolower]
pop ecx
mov ecx, dword [ebp - 0x401c]
inc dword [ebp - 0x401c]
inc esi
cmp byte [ebp - 0x401d], 0
mov byte [ebp + ecx - 0x4008], al
ja 0x2703299e
cmp esi, ebx
jb 0x27032960
jmp 0x27032a21
movzx eax, word [esi + 2]
push eax
mov dword [ebp - 0x4024], esi
call sub.WS2_32.dll_ntohs
cmp ax, 1
je 0x270329fc
mov al, byte [ebp - 0x2005]
and al, 0xf4
or al, 4
jmp 0x27032a1b
mov eax, 0x270bbfba
sub esi, eax
add esi, 4
movzx eax, si
mov dword [ebp - 0x4028], eax
jmp 0x27032a21
mov al, byte [ebp - 0x2005]
and al, 0xf1
or al, 1
mov byte [ebp - 0x2005], al
mov eax, dword [ebp - 0x401c]
mov esi, dword [ebp - 0x402c]
mov byte [ebp + eax - 0x4008], 0
jmp 0x27032a47
mov al, byte [ebp - 0x2005]
and al, 0xf1
or al, 1
mov byte [ebp - 0x2005], al
mov eax, dword [ebp - 0x4024]
movzx eax, word [eax]
push eax
call sub.WS2_32.dll_ntohs
movzx ecx, ax
mov al, byte [ebp - 0x2005]
test al, 0xf
jne 0x27032d3b
cmp cx, 1
je 0x27032a77
cmp cx, 0x1c
jne 0x27032bd0
lea eax, [ebp - 0x4008]
call fcn.27033bdd
mov esi, eax
test esi, esi
je 0x27032bc4
push 1
call sub.WS2_32.dll_htons
mov word [ebp - 0x2004], ax
movzx eax, word [esi + 0x34]
push eax
call sub.WS2_32.dll_htons
movzx ebx, word [ebp - 0x4028]
push ebx
mov word [ebp - 0x2002], ax
lea eax, [ebp - 0x1ffc]
push edi
push eax
call sub.msvcrt.dll_memcpy
movzx eax, word [esi + 0x36]
push eax
push dword [esi + 0x30]
lea edi, [ebp + ebx - 0x1ffc]
push edi
call sub.msvcrt.dll_memcpy
movzx ebx, word [esi + 0x36]
add esp, 0x18
add ebx, edi
cmp dword [esi + 0x10], 0
jle 0x27032bab
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x4024], eax
lea eax, [ebp - 0x4030]
push eax
call sub.msvcrt.dll_time
cmp eax, dword [ebp - 0x4024]
pop ecx
jg 0x27032b12
mov dword [ebp - 0x4024], 1
jmp 0x27032b24
mov eax, dword [ebp - 0x4030]
sub eax, dword [ebp - 0x4024]
mov dword [ebp - 0x4024], eax
and dword [ebp - 0x4028], 0
jmp 0x27032ba7
mov ax, word [ebp - 0x4028]
inc dword [ebp - 0x4028]
cmp ax, word [esi + 0x34]
jae 0x27032bab
and dword [ebp - 0x401c], 0
cmp byte [edi], 0xc0
jne 0x27032b7b
inc edi
inc edi
mov dword [ebp - 0x401c], edi
mov eax, dword [ebp - 0x401c]
push dword [eax + 4]
call sub.WS2_32.dll_ntohl
cmp eax, dword [ebp - 0x4024]
ja 0x27032b81
xor eax, eax
inc eax
jmp 0x27032b87
mov al, byte [edi]
inc edi
test al, al
jbe 0x27032b4e
movzx eax, al
add edi, eax
cmp edi, ebx
jb 0x27032b6f
jmp 0x27032b54
sub eax, dword [ebp - 0x4024]
push eax
call sub.WS2_32.dll_htonl
mov ecx, dword [ebp - 0x401c]
mov dword [ecx + 4], eax
movzx eax, word [ecx + 8]
push eax
call sub.WS2_32.dll_ntohs
movzx eax, ax
lea edi, [edi + eax + 0xa]
cmp edi, ebx
jb 0x27032b2d
push 0x10
lea eax, [ebp - 0x4018]
push eax
lea eax, [ebp - 0x2008]
push 0
sub ebx, eax
push ebx
jmp 0x27032d4d
mov al, byte [ebp - 0x2005]
mov esi, dword [ebp - 0x402c]
test al, 0xf
jne 0x27032d3b
lea eax, [ebp - 0x4018]
push eax
movzx eax, word [0x270bbfae]
push eax
call sub.WS2_32.dll_ntohs
movzx eax, ax
push eax
call fcn.27033de9
xor edi, edi
pop ecx
pop ecx
mov dword [ebp - 0x402c], eax
cmp eax, edi
jne 0x27032c18
mov al, byte [ebp - 0x2005]
and al, 0xf2
or al, 2
mov byte [ebp - 0x2005], al
jmp 0x27032d3d
movzx eax, word [eax + 0x20]
push eax
call sub.WS2_32.dll_htons
mov word [0x270bbfae], ax
cmp dword [0x270bdfb0], edi
jne 0x27032c75
push 0x10
push 0x270bdfb8
push edi
push esi
push 0x270bbfae
push dword [0x270bdfb4]
call sub.WS2_32.dll_sendto
cmp eax, esi
jne 0x27032cdf
mov al, byte [ebp - 0x2005]
test al, 0xf
je 0x27032d5f
mov eax, dword [ebp - 0x402c]
call fcn.27033e77
mov al, byte [ebp - 0x2005]
jmp 0x27032d3d
or ebx, 0xffffffff
cmp dword [0x270bdfb4], ebx
jne 0x27032cf4
push edi
push 1
push 2
mov dword [0x270bdfc8], edi
mov dword [0x270bdfcc], edi
call sub.WS2_32.dll_socket
mov dword [0x270bdfb4], eax
cmp eax, ebx
je 0x27032cdf
push 4
push 0x2709f228
push 1
push 6
push eax
call sub.WS2_32.dll_setsockopt
push 0x10
push 0x270bdfb8
push dword [0x270bdfb4]
call sub.WS2_32.dll_connect
test eax, eax
je 0x27032cd7
push dword [0x270bdfb4]
call sub.WS2_32.dll_closesocket
mov dword [0x270bdfb4], ebx
cmp dword [0x270bdfb4], ebx
jne 0x27032cf4
mov al, byte [ebp - 0x2005]
and al, 0xf2
or al, 2
mov byte [ebp - 0x2005], al
jmp 0x27032c57
push esi
call sub.WS2_32.dll_htons
push edi
inc esi
inc esi
push esi
push 0x270bbfac
push dword [0x270bdfb4]
mov word [0x270bbfac], ax
call sub.WS2_32.dll_send
cmp eax, esi
je 0x27032c51
push dword [0x270bdfb4]
mov dword [0x270bdfc8], edi
mov dword [0x270bdfcc], edi
call sub.WS2_32.dll_closesocket
mov dword [0x270bdfb4], ebx
jmp 0x27032cdf
xor edi, edi
test al, 0xf
je 0x27032d5f
push 0x10
lea eax, [ebp - 0x4018]
push eax
push edi
push 0xc
lea eax, [ebp - 0x2008]
push eax
push dword [0x270bbfa8]
call sub.WS2_32.dll_sendto
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.27088f70
leave
ret