Function at 0x47fb10
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
lea edi, [esi + 0x14]
mov eax, dword [esi + 0x8c]
mov dword [ebp - 0x10], eax
cmp dword [ebp + 8], ebx
jne 0x47fc88
mov edi, dword [edi]
test edi, edi
je 0x47fc57
mov eax, dword [edi + 0x14]
test eax, eax
je 0x47fb64
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47fb50
sub eax, edx
sar eax, 1
lea ebx, [eax + 1]
jmp 0x47fb66
xor ebx, ebx
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x47fb75
mov eax, 0x10
jmp 0x47fb83
cmp eax, 0x17
jne 0x47fc42
mov eax, 0x1c
cmp dword [edi + 0x18], 0
mov dword [ebp - 8], eax
je 0x47fc42
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x47fc42
cmp ecx, eax
jb 0x47fc42
add eax, 0x20
add eax, ebx
push eax
call dword [0x5a034c]
mov esi, eax
add esp, 4
test esi, esi
je 0x47fc6b
mov ecx, dword [edi]
mov dword [esi], ecx
mov ecx, dword [edi + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp - 8]
mov dword [esi + 0xc], eax
lea eax, [esi + 0x20]
push ecx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], eax
push dword [edi + 0x18]
push eax
call fcn.004e9540
add esp, 0xc
test ebx, ebx
je 0x47fc28
mov eax, dword [esi + 0x18]
xor edx, edx
add eax, dword [ebp - 8]
mov dword [esi + 0x14], eax
test ebx, ebx
je 0x47fc21
nop dword [eax]
mov eax, dword [edi + 0x14]
mov ecx, dword [esi + 0x14]
mov al, byte [eax + edx*2]
mov byte [edx + ecx], al
inc edx
cmp edx, ebx
jb 0x47fc10
mov eax, dword [esi + 0x14]
mov byte [ebx + eax], 0
mov ebx, dword [ebp - 4]
test ebx, ebx
mov eax, dword [ebp - 0xc]
cmove ebx, esi
mov dword [ebp - 4], ebx
test eax, eax
je 0x47fc3d
mov dword [eax + 0x1c], esi
mov dword [ebp - 0xc], esi
jmp 0x47fc45
mov ebx, dword [ebp - 4]
mov edi, dword [edi + 0x28]
test edi, edi
jne 0x47fb43
test ebx, ebx
jne 0x47fc7f
mov esi, dword [ebp + 0x10]
push 0x2af9
mov dword [ebp + 8], 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
jmp 0x47fc82
push dword [ebp - 4]
mov dword [ebp + 8], 8
call fcn.0049abf0
add esp, 4
xor ebx, ebx
mov esi, dword [ebp + 0x10]
mov dword [esi + 0x68], ebx
lea edi, [esi + 0x14]
mov eax, dword [edi]
test eax, eax
je 0x47fc9b
push eax
call dword [0x5a3c8c]
mov dword [edi], 0
mov ebx, dword [ebp + 8]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
je 0x47fcc3
call edi
test eax, eax
je 0x47fcc0
call edi
mov dword [esi + 0x64], eax
test eax, eax
jne 0x47fcc3
mov dword [esi + 0x64], 8
jmp 0x47fcc3
mov dword [esi + 0x64], ebx
push dword [esi + 0x48]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x4c], 0
je 0x47fcf7
push dword [esi + 0x48]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call fcn.0047f690
mov ecx, dword [ebp - 0x10]
push ecx
call dword [0x5a0350]
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esi + 0x60]
cmp eax, 0xffffffff
je 0x47fd1b
push 0
push 1
lea ecx, [ebp + 0x13]
mov byte [ebp + 0x13], 1
push ecx
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x47fd1b
call edi
mov dword [esi + 0x64], eax
push dword [esi + 0x48]
mov dword [esi + 0x4c], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
test eax, eax
je 0x47fd3b
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc