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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10136a38
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push edi
mov eax, dword [0x101b2070]
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 0x10042a3a
lea eax, [esi + 0x188]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x1a0], edi
jle 0x10042a2d
mov ebx, dword [esi + 0x1a4]
cmp ebx, dword [esi + 0x1a8]
je 0x10042a0d
mov eax, dword [ebx + 4]
mov dword [esi + 0x1a4], eax
mov dword [eax + 8], edi
jmp 0x10042a1d
cmp ebx, edi
je 0x10042a2d
mov dword [esi + 0x1a4], edi
mov dword [esi + 0x1a8], edi
cmp ebx, edi
je 0x10042a2d
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 0x10042b49
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 0x10042a8e
sub dword [esi + 0x1bc], edi
lea eax, [esi + 0x188]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jle 0x10042acb
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 + 0x94]
mov ecx, esi
call eax
cmp eax, 2
jne 0x10042ad0
mov ecx, dword [esi + 0x1c]
push ecx
call fcn.10033ad0
add esp, 4
jmp 0x10042ad0
cmp edi, 0xffffffff
je 0x10042af6
mov edi, dword [ebp - 0x14]
push ebx
add edi, 0x1c
call fcn.10041140
test eax, eax
jne 0x100429d0
mov edx, dword [ebx]
push ebx
push eax
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x100429d0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x10042b5f
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 0x10042b2a
mov dword [eax + 8], ebx
mov ecx, dword [esi + 0x1a4]
mov dword [ebx + 4], ecx
jmp 0x10042b36
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.10041140
test eax, eax
jne 0x10042b8d
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