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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x5f9e74]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x204], 0x3000105
mov ecx, edx
push edi
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4098d0
sub ecx, edi
mov byte [ebp - 0x200], cl
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4098e4
sub ecx, edi
lea eax, [ebp - 0x1ff]
push ecx
push edx
push eax
call fcn.0056f220
movzx edi, byte [ebp - 0x200]
add esp, 0xc
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esi + 8]
mov word [ebp + edi - 0x1ff], ax
cmp ecx, 0xffffffff
je 0x409951
push 0
lea eax, [edi + 7]
push eax
lea eax, [ebp - 0x204]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jne 0x409951
add dword [esi + 0x74], 0x1a00
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00568e6a
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x409b00
push 0
push 0x200
lea ecx, [ebp - 0x204]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x409b00
cmp eax, 0xa
jge 0x40999a
pop edi
mov dword [esi + 0x74], 0xf00
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00568e6a
mov esp, ebp
pop ebp
ret 8
cmp byte [ebp - 0x204], 5
jne 0x409ae5
cmp byte [ebp - 0x202], 0
jne 0x409ae5
mov al, byte [ebp - 0x203]
test al, al
jne 0x4099d2
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00568e6a
mov esp, ebp
pop ebp
ret 8
cmp al, 1
jne 0x4099f1
pop edi
mov dword [esi + 0x74], 0x1100
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00568e6a
mov esp, ebp
pop ebp
ret 8
cmp al, 2
jne 0x409a10
pop edi
mov dword [esi + 0x74], 0x1200
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00568e6a
mov esp, ebp
pop ebp
ret 8
cmp al, 3
jne 0x409a2f
pop edi
mov dword [esi + 0x74], 0x1300
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00568e6a
mov esp, ebp
pop ebp
ret 8
cmp al, 4
jne 0x409a4e
pop edi
mov dword [esi + 0x74], 0x1400
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00568e6a
mov esp, ebp
pop ebp
ret 8
cmp al, 5
jne 0x409a6d
pop edi
mov dword [esi + 0x74], 0x1500
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00568e6a
mov esp, ebp
pop ebp
ret 8
cmp al, 6
jne 0x409a8c
pop edi
mov dword [esi + 0x74], 0x1600
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00568e6a
mov esp, ebp
pop ebp
ret 8
cmp al, 7
jne 0x409aab
pop edi
mov dword [esi + 0x74], 0x1700
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00568e6a
mov esp, ebp
pop ebp
ret 8
cmp al, 8
jne 0x409aca
pop edi
mov dword [esi + 0x74], 0x1800
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00568e6a
mov esp, ebp
pop ebp
ret 8
pop edi
mov dword [esi + 0x74], 0x1900
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00568e6a
mov esp, ebp
pop ebp
ret 8
pop edi
mov dword [esi + 0x74], 0x1000
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00568e6a
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor al, al
add dword [esi + 0x74], 0x1b00
xor ecx, ebp
pop edi
pop esi
call fcn.00568e6a
mov esp, ebp
pop ebp
ret 8