Function at 0x4184b0
Capabilities:
Get socket status
Resolve function by parsing pe exports
Send data
Send data on socket

Disassembly:
sub esp, 0x168
mov eax, dword [esp + 0x170]
push ebx
push ebp
push esi
mov ebp, dword [eax]
mov ecx, dword [eax + 4]
test ebp, ebp
push edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], ebp
jg 0x4184df
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x168
ret
mov eax, dword [esp + 0x17c]
mov edx, dword [eax]
inc edx
mov ecx, edx
mov dword [eax], edx
cmp ecx, 0x270f
jle 0x4184fb
mov dword [eax], 0xa
mov edx, dword [eax]
lea eax, [esp + 0x2c]
push edx
push str.0000_d
push eax
call fcn.00419cd3
lea esi, [esp + 0x38]
add esp, 0xc
xor edx, edx
sub esi, 4
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, esi
inc edx
cmp edx, 4
mov cl, byte [ecx + edx - 1]
mov byte [esp + edx + 0x17], cl
jl 0x418519
lea edx, [esp + 0x18]
mov byte [esp + 0x1c], al
push edx
lea eax, [esp + 0x1c]
push ebp
push eax
lea ecx, [esp + 0x4c]
push str._Msg_s__ld__Msg_s_
push ecx
call fcn.00419cd3
lea edi, [esp + 0x54]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
add ebx, ebp
push ebx
call fcn.00419f67
mov ebp, eax
lea edi, [esp + 0x58]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [esp + 0x58]
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x30]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x58]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
mov esi, dword [esp + 0x2c]
dec ecx
mov edi, ecx
mov ecx, dword [esp + 0x38]
mov eax, ecx
add edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], 0
push ecx
push ebx
push ebp
push edx
call fcn.004189c0
add esp, 0x28
test eax, eax
push ebp
jne 0x4185ed
call fcn.00419e7e
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x168
ret
call fcn.00419e7e
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [esp + 0x14], 0
mov esi, dword [eax + 4]
mov ebp, dword [eax]
mov edi, dword [eax + 8]
mov ebx, dword [esp + 0x17c]
mov ecx, 1
mov dword [esp + 0x74], ecx
mov dword [esp + 0x24], ecx
mov eax, dword [ebx + 0xc]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x78]
mov dword [esp + 0x7c], eax
push 0
push edx
inc eax
push 0
push eax
mov dword [esp + 0x3c], 0
call sub.WSOCK32.dll_select
test eax, eax
jl 0x4186b1
jne 0x418657
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 0x14
mov dword [esp + 0x14], eax
jg 0x4186cb
jmp 0x418609
mov ecx, dword [ebx + 0xc]
lea eax, [esp + 0x74]
push eax
push ecx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x418609
mov edx, dword [ebx + 0xc]
push 0
push esi
push ebp
push edx
mov dword [esp + 0x24], 0
call sub.WSOCK32.dll_send
test eax, eax
jge 0x418693
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x4186e5
jmp 0x418609
cmp eax, esi
jge 0x4186a0
sub esi, eax
add ebp, eax
jmp 0x418609
test edi, edi
je 0x4186ff
mov esi, dword [edi + 4]
mov ebp, dword [edi]
mov edi, dword [edi + 8]
jmp 0x418609
mov eax, dword [esp + 0x10]
push eax
call fcn.00418ae0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x168
ret
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00418ae0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x168
ret
mov edx, dword [esp + 0x10]
push edx
call fcn.00418ae0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x168
ret
mov eax, dword [esp + 0x10]
push eax
call fcn.00418ae0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x168
ret