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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 0xc], 0
xor eax, eax
push ebx
mov ebx, ecx
mov byte [ebp - 1], 1
push esi
push edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], eax
cmp dword [ebx + 0x34], eax
je 0x47c8bb
mov ecx, dword [ebx + 0x30]
call fcn.004f5aa4
cmp dword [ebx + 0x38], 0xffffffff
je 0x47cb28
cmp dword [ebx + 0x3c], 0
je 0x47cb28
push ecx
mov ecx, dword [ebx + 0x5c]
lea eax, [ebp - 0xc]
push eax
call fcn.0047d5c5
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jns 0x47c938
mov eax, dword [section..data]
cmp eax, section..data
je 0x47c921
test byte [eax + 0x1c], 8
je 0x47c921
cmp byte [eax + 0x19], 2
jb 0x47c921
call fcn.0042386b
push esi
push 0x4121d0
push eax
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x37
mov edx, 0x4122a0
pop ecx
call fcn.0042371b
cmp dword [ebx + 0x34], 0
je 0x47cb7a
mov ecx, dword [ebx + 0x30]
call fcn.004f5abe
jmp 0x47cb7a
push dword [ebp + 8]
mov edi, dword [ebp - 0xc]
mov ecx, edi
call fcn.0047ac83
mov ecx, ebx
lea eax, [ebx + 0x24]
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
mov ecx, edi
call fcn.0047accb
mov ecx, dword [ebx + 0x74]
call fcn.0048146d
mov eax, dword [ebx + 0x98]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x47c9d3
mov eax, dword [eax]
push dword [edi + 0x70]
push dword [edi + 0x74]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x5035f0]
mov ecx, dword [ebp - 0x18]
call esi
mov ecx, eax
call fcn.00464e13
mov esi, eax
mov dword [ebp - 0x14], eax
test esi, esi
jns 0x47c9d3
mov eax, dword [section..data]
cmp eax, section..data
je 0x47c921
test byte [eax + 0x1c], 8
je 0x47c921
cmp byte [eax + 0x19], 2
jb 0x47c921
call fcn.0042386b
push esi
push 0x41220c
push eax
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x38
jmp 0x47c916
xor ecx, ecx
lea eax, [edi + 0x2c]
push ecx
push eax
push ecx
push ecx
push 1
lea esi, [edi + 0x70]
push esi
push dword [ebx + 0x38]
call dword [sym.imp.WS2_32.dll_WSASend]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
jne 0x47ca11
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 8], eax
cmp eax, 0x3e5
je 0x47ca11
mov ecx, dword [ebx + 0x74]
mov byte [ebp - 1], 0
call fcn.004814c1
jmp 0x47ca1e
lock inc dword [ebx + 0x44]
mov ecx, dword [esi]
lea eax, [ebx + 0x4c]
lock xadd dword [eax], ecx
mov eax, dword [section..data]
cmp eax, section..data
je 0x47ca79
test dword [eax + 0x1c], 0x800
je 0x47ca79
cmp byte [eax + 0x19], 5
jb 0x47ca79
mov esi, dword [ebx + 0x4c]
mov edi, dword [ebx + 0x44]
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov eax, dword [eax + 0x38]
mov ebx, dword [ebx + 0x70]
mov dword [ebp - 0x1c], eax
call fcn.0042386b
movzx ecx, byte [ebp - 1]
push esi
push ecx
push edi
mov edi, dword [ebp - 0xc]
push edi
push ebx
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push eax
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0047b06f
mov ebx, dword [ebp - 0x10]
cmp dword [ebx + 0x34], 0
je 0x47ca87
mov ecx, dword [ebx + 0x30]
call fcn.004f5abe
cmp byte [ebp - 1], 0
jne 0x47cb77
mov ecx, edi
call fcn.0047ac3b
mov eax, dword [edi + 0x14]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x5035f0]
call esi
mov eax, dword [section..data]
cmp eax, section..data
je 0x47caee
test dword [eax + 0x1c], 0x800
je 0x47caee
cmp byte [eax + 0x19], 2
jb 0x47caee
mov esi, dword [ebx + 0x38]
call fcn.0042386b
mov edi, dword [ebp - 8]
mov edx, 0x4122a0
push esi
push edi
push eax
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x3a
pop ecx
call fcn.00429397
jmp 0x47caf1
mov edi, dword [ebp - 8]
mov ecx, dword [ebx + 0x28]
test ecx, ecx
je 0x47cb09
mov eax, dword [ecx]
push edi
push ecx
mov esi, dword [eax + 0x44]
mov ecx, esi
call dword [0x5035f0]
call esi
test edi, edi
jg 0x47cb11
mov esi, edi
jmp 0x47cb1a
movzx esi, di
or esi, 0x80070000
push 0
push 1
push esi
mov ecx, ebx
call fcn.0047c08a
jmp 0x47cb7a
mov esi, 0x80004004
mov eax, dword [section..data]
cmp eax, section..data
je 0x47c921
test dword [eax + 0x1c], 0x800
je 0x47c921
cmp byte [eax + 0x19], 2
jb 0x47c921
call fcn.0042386b
push eax
mov eax, dword [section..data]
mov edx, 0x4122a0
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x36
pop ecx
call fcn.004238e7
jmp 0x47c921
mov esi, dword [ebp - 0x14]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4