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

Disassembly:
push ebp
push edi
lea ebp, [eax + 0x9c]
push esi
push ebx
mov esi, eax
sub esp, 0x2c
mov edi, dword [eax + 0xdc]
mov dword [esp], ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub esp, 4
cmp byte [esi + 0xc7], 0
je 0x482330
mov ebx, dword [esi + 0x14]
mov byte [esi + 0xc7], 0
test ebx, ebx
je 0x482330
and edi, 4
xor edx, edx
mov dword [esp + 0x18], edi
lea esi, [esi]
cmp byte [ebx + 0xdc], 0
mov edi, dword [ebx + 4]
je 0x4822a1
mov eax, dword [ebx + 0xd0]
test eax, eax
je 0x482244
movzx ecx, byte [eax + 4]
test cl, cl
je 0x4822a1
cmp byte [eax + 5], 0
je 0x4822a1
test edi, edi
mov edx, dword [ebx]
je 0x4823c0
mov dword [edi], edx
mov edx, dword [ebx]
mov ecx, dword [ebx + 4]
test edx, edx
je 0x4823b0
mov dword [edx + 4], ecx
test eax, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov byte [ebx + 0xd4], 0
je 0x482350
mov eax, dword [esi + 0x18]
mov dword [ebx], eax
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x4823d0
mov eax, dword [esi + 0x18]
mov dword [eax + 4], ebx
mov dword [esi + 0x18], ebx
mov byte [ebx + 0xdc], 0
mov edx, 1
test edi, edi
mov ebx, edi
jne 0x482220
mov dword [esp + 0x1c], edx
mov dword [esp], ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
test eax, eax
je 0x48233e
test edx, edx
je 0x48233e
mov eax, dword [esi + 0xc0]
mov dword [esp + 0x18], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x549d80
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_send]
sub esp, 0x10
test eax, eax
mov edx, dword [esp + 0x18]
jg 0x48233e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
mov edx, dword [esp + 0x18]
je 0x48233e
mov dword [esp + 4], str.Failed_to_signal_resume_of_connection_via_inter_thread_communication_channel.
mov dword [esp], esi
call fcn.00488450
mov edx, dword [esp + 0x18]
jmp 0x48233e
mov dword [esp], ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor edx, edx
sub esp, 4
add esp, 0x2c
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esi + 8]
mov dword [ebx], eax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4823e0
mov eax, dword [esi + 8]
mov dword [eax + 4], ebx
mov eax, dword [esp + 0x18]
mov dword [esi + 8], ebx
test eax, eax
jne 0x482295
mov eax, dword [ebx + 0x8c]
test eax, eax
jne 0x482420
cmp eax, dword [esi + 0xd4]
je 0x4823f5
mov eax, dword [esi + 0x28]
mov dword [ebx + 0xc], 0
mov dword [ebx + 8], eax
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x4823f0
mov eax, dword [esi + 0x28]
mov dword [eax + 0xc], ebx
mov dword [esi + 0x28], ebx
jmp 0x482295
mov dword [esi + 0x14], ecx
jmp 0x482260
mov dword [esi + 0x10], edx
jmp 0x482250
mov dword [esi + 0x1c], ebx
jmp 0x482292
mov dword [esi + 0xc], ebx
jmp 0x482366
mov dword [esi + 0x2c], ebx
jmp 0x4823a5
mov eax, dword [esi + 0x20]
mov dword [ebx + 0xc], 0
mov dword [ebx + 8], eax
mov eax, dword [esi + 0x24]
test eax, eax
je 0x482436
mov eax, dword [esi + 0x20]
mov dword [eax + 0xc], ebx
mov dword [esi + 0x20], ebx
jmp 0x482295
call fcn.00488c10
mov dword [ebx + 0x88], eax
mov eax, dword [ebx + 0x8c]
jmp 0x482383
mov dword [esi + 0x24], ebx
jmp 0x48240f