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

Disassembly:
sub esp, 0x108
mov eax, dword [0x478424]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esi + 0xac]
cmp eax, 0xffffffff
push ebx
mov bl, 5
mov byte [esp + 4], bl
mov byte [esp + 5], 1
mov byte [esp + 6], 0
je 0x418814
push 0
push 3
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x418836
mov dword [esi + 0x80], 0x300
xor al, al
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00445276
add esp, 0x108
ret
mov eax, dword [esi + 0xac]
cmp eax, 0xffffffff
je 0x418859
push 0
push pe_nt_image_headers32
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 2
je 0x41887b
mov dword [esi + 0x80], 0x400
xor al, al
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00445276
add esp, 0x108
ret
cmp byte [esp + 8], bl
je 0x4188a3
mov dword [esi + 0x80], 0x500
xor al, al
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00445276
add esp, 0x108
ret
mov al, byte [esp + 9]
cmp al, 0xff
jne 0x4188cd
mov dword [esi + 0x80], 0x600
xor al, al
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00445276
add esp, 0x108
ret
test al, al
je 0x4188fb
cmp al, 1
je 0x418913
cmp al, 2
je 0x418935
mov dword [esi + 0x80], 0x700
xor al, al
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00445276
add esp, 0x108
ret
mov al, 1
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00445276
add esp, 0x108
ret
mov dword [esi + 0x80], 0x800
xor al, al
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00445276
add esp, 0x108
ret
cmp dword [esi + 0x60], 0x10
mov ebx, dword [esi + 0x5c]
mov byte [esp + 8], 1
mov byte [esp + 9], bl
jb 0x41894c
mov eax, dword [esi + 0x4c]
jmp 0x41894f
lea eax, [esi + 0x4c]
push edi
push ebx
push eax
lea eax, [esp + 0x16]
push eax
call fcn.0044e1a0
lea edi, [ebx + 2]
mov ebx, dword [esi + 0x78]
mov byte [esp + edi + 0x18], bl
add esp, 0xc
add edi, 1
cmp dword [esi + 0x7c], 0x10
jb 0x418977
mov eax, dword [esi + 0x68]
jmp 0x41897a
lea eax, [esi + 0x68]
push ebx
push eax
lea ecx, [esp + edi + 0x14]
push ecx
call fcn.0044e1a0
mov eax, dword [esi + 0xac]
add esp, 0xc
cmp eax, 0xffffffff
je 0x4189a9
push 0
add ebx, edi
push ebx
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x4189cc
add dword [esi + 0x80], 0x900
pop edi
xor al, al
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00445276
add esp, 0x108
ret
mov eax, dword [esi + 0xac]
cmp eax, 0xffffffff
je 0x4189ef
push 0
push pe_nt_image_headers32
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 2
je 0x418a12
pop edi
mov dword [esi + 0x80], 0xa00
xor al, al
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00445276
add esp, 0x108
ret
cmp byte [esp + 0xc], 1
je 0x418a3c
pop edi
mov dword [esi + 0x80], 0xb00
xor al, al
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00445276
add esp, 0x108
ret
cmp byte [esp + 0xd], 0
je 0x418a66
pop edi
mov dword [esi + 0x80], 0xc00
xor al, al
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00445276
add esp, 0x108
ret
mov ecx, dword [esp + 0x10c]
pop edi
pop ebx
xor ecx, esp
mov al, 1
call fcn.00445276
add esp, 0x108
ret