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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x19]
lea ecx, [0x10012348]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x31], 5
mov byte [ebp - 0x32], 2
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x31]
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 ecx, dword [ebp + 8]
lea eax, [ebp - 0x35]
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 0x10002676
mov dword [ebp - 4], 0
jmp 0x10002857
movsx eax, byte [ebp - 0x35]
cmp eax, 1
je 0x1000268f
mov dword [ebp - 4], 0
jmp 0x10002857
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x35]
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 0x100026cc
mov dword [ebp - 4], 0
jmp 0x10002857
cmp byte [ebp - 0x35], 0
jne 0x100026e2
mov dword [ebp - 4], 0
jmp 0x10002857
movzx eax, byte [ebp - 0x35]
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x18]
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 - 0x35]
cmp eax, ecx
je 0x1000271a
mov dword [ebp - 4], 0
jmp 0x10002857
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x35]
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 0x10002757
mov dword [ebp - 4], 0
jmp 0x10002857
cmp byte [ebp - 0x35], 0
jne 0x1000276d
mov dword [ebp - 4], 0
jmp 0x10002857
movzx eax, byte [ebp - 0x35]
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.10001a10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx ecx, byte [ebp - 0x35]
cmp eax, ecx
je 0x100027a5
mov dword [ebp - 4], 0
jmp 0x10002857
mov byte [ebp - 0x33], 1
mov eax, dword [ebp - 0x30]
movzx ecx, byte [ebp - 0x35]
cmp eax, ecx
je 0x100027bd
jmp 0x10002825
lea eax, [ebp - 0x19]
mov dword [ebp - 0x28], eax
movzx eax, byte [ebp - 0x35]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], 0
movzx ecx, byte [ebp - 0x35]
mov eax, esp
mov dword [eax + 8], ecx
lea ecx, [ebp - 0x18]
mov dword [eax + 4], ecx
lea ecx, [ebp - 0x19]
mov dword [eax], ecx
call fcn.10004fc4
cmp eax, 0
jne 0x10002800
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x14], 0
je 0x10002820
mov byte [ebp - 0x34], 0
mov dword [ebp - 0x2c], 1
jmp 0x10002829
jmp 0x10002825
mov byte [ebp - 0x34], 1
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x33]
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 eax, dword [ebp - 0x2c]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add esp, 0x48
pop ebp
ret