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

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x240
mov eax, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x230], 0xffffffff
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1b]
xor edx, edx
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 1
mov dword [esp + 0xc], 0
call dword [sym.imp.WS2_32.dll_recv]
sub esp, 0x10
cmp eax, 1
je 0x100028ba
mov dword [ebp - 8], 0xffffffff
jmp 0x10002be2
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
xor edx, edx
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 1
mov dword [esp + 0xc], 0
call dword [sym.imp.WS2_32.dll_recv]
sub esp, 0x10
cmp eax, 1
je 0x100028f7
mov dword [ebp - 8], 0xffffffff
jmp 0x10002be2
movzx eax, byte [ebp - 0x1c]
lea ecx, [ebp - 0x11e]
mov edx, dword [ebp + 8]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.10001a10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx ecx, byte [ebp - 0x1c]
cmp eax, ecx
je 0x10002932
mov dword [ebp - 8], 0xffffffff
jmp 0x10002be2
cmp dword [ebp + 0xc], 0
jne 0x1000297a
mov byte [ebp - 0x232], 5
mov byte [ebp - 0x231], 0
lea eax, [ebp - 0x232]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 2
mov dword [esp + 0xc], 0
call dword [sym.imp.WS2_32.dll_send]
sub esp, 0x10
jmp 0x10002a3c
mov dword [ebp - 0x10], 0
movzx eax, byte [ebp - 0x1c]
cmp eax, 0
ja 0x100029d8
jmp 0x10002993
mov byte [ebp - 0x232], 5
mov byte [ebp - 0x231], 0xff
lea eax, [ebp - 0x232]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 2
mov dword [esp + 0xc], 0
call dword [sym.imp.WS2_32.dll_send]
sub esp, 0x10
mov dword [ebp - 8], 0xffffffff
jmp 0x10002be2
jmp 0x100029dd
mov eax, dword [ebp - 0x10]
movzx eax, byte [ebp + eax - 0x11e]
cmp eax, 2
je 0x10002a10
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
movzx ecx, byte [ebp - 0x1c]
cmp eax, ecx
jb 0x10002a0b
jmp 0x10002993
jmp 0x100029dd
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.100025d0
cmp eax, 0
jne 0x10002a37
mov dword [ebp - 8], 0xffffffff
jmp 0x10002be2
jmp 0x10002a3c
lea eax, [ebp - 0x222]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x104
mov dword [esp + 0xc], 0
call dword [sym.imp.WS2_32.dll_recv]
sub esp, 0x10
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 6
jge 0x10002a7f
jmp 0x10002ac0
movsx eax, byte [ebp - 0x21f]
cmp eax, 3
je 0x10002ad6
movsx eax, byte [ebp - 0x21f]
cmp eax, 1
jne 0x10002abb
mov ax, word [ebp - 0x21a]
mov word [ebp - 0x16], ax
mov eax, dword [ebp - 0x21e]
mov dword [ebp - 0x22c], eax
jmp 0x10002b2b
jmp 0x10002ac0
mov eax, dword [ebp - 0x230]
mov word [ebp - 0x16], ax
mov byte [ebp - 0x221], 0
jmp 0x10002b2b
movzx ecx, byte [ebp - 0x21e]
add ecx, 5
lea eax, [ebp - 0x222]
add eax, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov ax, word [eax]
mov word [ebp - 0x16], ax
mov eax, dword [ebp - 0x14]
mov al, byte [eax]
mov byte [ebp - 0x17], al
mov eax, dword [ebp - 0x14]
mov byte [eax], 0
lea eax, [ebp - 0x222]
add eax, 5
mov dword [esp], eax
call fcn.10001220
mov dword [ebp - 0x22c], eax
mov cl, byte [ebp - 0x17]
movzx eax, byte [ebp - 0x21e]
mov byte [ebp + eax - 0x21d], cl
movsx eax, byte [ebp - 0x221]
cmp eax, 1
jne 0x10002ba5
cmp dword [ebp - 0x22c], 0xffffffff
jne 0x10002b54
mov byte [ebp - 0x221], 4
jmp 0x10002ba0
movzx eax, word [ebp - 0x16]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_htons]
sub esp, 4
mov word [ebp - 0x1a], ax
mov ax, word [ebp - 0x1a]
mov ecx, dword [ebp - 0x22c]
mov dword [esp], ecx
movzx eax, ax
mov dword [esp + 4], eax
call fcn.10001b10
mov dword [ebp - 0x230], eax
mov edx, dword [ebp - 0x230]
mov eax, 4
xor ecx, ecx
cmp edx, 0xffffffff
cmovne eax, ecx
mov byte [ebp - 0x221], al
jmp 0x10002bac
mov byte [ebp - 0x221], 7
mov eax, dword [ebp - 0x228]
lea ecx, [ebp - 0x222]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
call dword [sym.imp.WS2_32.dll_send]
sub esp, 0x10
mov eax, dword [ebp - 0x230]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
add esp, 0x240
pop esi
pop ebp
ret