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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10128378
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push edi
mov eax, dword [0x1019f010]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [esi + 0xa4]
mov dword [ebp - 0x14], eax
xor edi, edi
xor ebx, ebx
cmp dword [esi + 0x1a0], edi
jle 0x1003814a
lea eax, [esi + 0x188]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x1a0], edi
jle 0x1003813d
mov ebx, dword [esi + 0x1a4]
cmp ebx, dword [esi + 0x1a8]
je 0x1003811d
mov eax, dword [ebx + 4]
mov dword [esi + 0x1a4], eax
mov dword [eax + 8], edi
jmp 0x1003812d
cmp ebx, edi
je 0x1003813d
mov dword [esi + 0x1a4], edi
mov dword [esi + 0x1a8], edi
cmp ebx, edi
je 0x1003813d
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
dec dword [esi + 0x1a0]
lea eax, [esi + 0x188]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], edi
cmp ebx, edi
je 0x10038259
lea eax, [esi + 0x188]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x18]
mov edi, dword [ebx + 0x14]
xor edx, edx
cmp word [esi + 0x58], 2
lea ecx, [esi + 0x58]
setne dl
sub eax, dword [ebx + 0x14]
dec edx
and edx, 0xfffffff4
add edx, 0x1c
push edx
push ecx
mov ecx, dword [esi + 0x14]
push 0
push eax
push edi
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
mov edi, eax
test edi, edi
jle 0x1003819e
sub dword [esi + 0x1b8], edi
lea eax, [esi + 0x188]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jle 0x100381db
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebx + 0x14]
mov edx, dword [esi]
push edi
push eax
mov eax, dword [edx + 0x90]
mov ecx, esi
call eax
cmp eax, 2
jne 0x100381e0
mov ecx, dword [esi + 0x1c]
push ecx
call fcn.10103120
add esp, 4
jmp 0x100381e0
cmp edi, 0xffffffff
je 0x10038206
mov edi, dword [ebp - 0x14]
push ebx
add edi, 0x1c
call fcn.1002bed0
test eax, eax
jne 0x100380e0
mov edx, dword [ebx]
push ebx
push eax
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x100380e0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1003826f
lea edi, [esi + 0x188]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x1a4]
xor ecx, ecx
cmp eax, ecx
je 0x1003823a
mov dword [eax + 8], ebx
mov ecx, dword [esi + 0x1a4]
mov dword [ebx + 4], ecx
jmp 0x10038246
mov dword [ebx + 8], ecx
mov dword [ebx + 4], ecx
mov dword [esi + 0x1a8], ebx
inc dword [esi + 0x1a0]
push edi
mov dword [esi + 0x1a4], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x14]
push ebx
add edi, 0x1c
mov dword [esi + 8], 1
mov dword [esi + 0xc], 3
mov dword [esi + 0x10], eax
call fcn.1002bed0
test eax, eax
jne 0x1003829d
mov edx, dword [ebx]
push ebx
push eax
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret