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

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x24]
push ebx
push ebp
push esi
add eax, 0x14
mov ebp, ecx
push edi
push eax
push 0x4c
mov dword [esp + 0x18], eax
call fcn.00414730
mov esi, dword [esp + 0x30]
add esp, 8
mov edi, eax
mov ebx, dword [esi + 0xc]
mov ecx, dword [esi + 8]
mov dword [esp + 0x28], ecx
test ebx, ebx
je 0x407257
lock inc dword [ebx + 8]
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0x4170b0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
test ebx, ebx
je 0x4072a4
lock inc dword [ebx + 8]
mov edx, dword [edi + 0x24]
or ecx, 0xffffffff
test edx, edx
je 0x4072c1
mov eax, ecx
lock xadd dword [edx + 8], eax
jne 0x4072c1
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 4]
or ecx, 0xffffffff
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], ebx
mov eax, dword [edx]
mov dword [edi + 0x28], eax
mov eax, dword [edx + 4]
mov dword [edi + 0x2c], eax
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
mov dword [edi + 0x30], eax
mov eax, dword [esp + 0x34]
movq xmm0, qword [eax + 4]
movq qword [edi + 0x34], xmm0
mov eax, dword [eax + 0xc]
mov dword [edi + 0x3c], eax
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x10]
mov dword [edi + 0x40], eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [edi + 0x44], eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 4]
mov dword [edi + 0x48], eax
test ebx, ebx
je 0x40732b
lock xadd dword [ebx + 8], ecx
dec ecx
jne 0x40732b
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov edx, dword [esp + 0x2c]
test byte [esi + 4], 0x10
mov eax, dword [edx + 4]
mov ecx, dword [edx]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
je 0x40734a
test eax, eax
jne 0x40734a
mov bl, 1
jmp 0x40734c
xor bl, bl
cmp dword [esi + 0x14], 0
jne 0x40735d
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x14], eax
jmp 0x40736f
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 0x14], eax
je 0x40736f
mov dword [esi + 0x14], 0xffffffff
mov eax, dword [ebp + 4]
add eax, 0x18
lock inc dword [eax]
push 0
test bl, bl
je 0x407393
mov ecx, dword [ebp + 4]
push 0
push edi
call fcn.004198e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x4073b2
mov ecx, dword [ebp + 4]
push 0x2719
push edi
call fcn.004198e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
push edi
push dword [esp + 0x38]
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], 0
push ecx
push 1
lea ecx, [esp + 0x2c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
mov esi, eax
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test esi, esi
je 0x40740a
cmp eax, 0x3e5
je 0x40740a
push dword [esp + 0x34]
mov ecx, dword [ebp + 4]
push eax
push edi
call fcn.004198e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
mov ecx, dword [ebp + 4]
push edi
call fcn.00419a20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10