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

Disassembly:
push 0x38
push 0x445d98
call fcn.0042b0a0
mov dword [ebp - 0x20], edx
xor esi, esi
mov edi, dword [ebp + 0x10]
or esi, dword [ebp + 0x14]
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], edi
mov ecx, esi
mov eax, edi
shrd ecx, eax, 0x10
mov dword [ebp - 0x28], ecx
shr eax, 0x10
movzx eax, si
mov dword [ebp - 0x34], eax
xor bl, bl
push 0x461a50
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x483728], esi
jne 0x423743
cmp dword [0x48372c], edi
jne 0x423743
mov eax, dword [ebp + 0xc]
add eax, 9
mov edx, dword [0x483730]
cmp edx, eax
jne 0x423743
add edx, 0x1c
mov ecx, 0x461c14
call fcn.0040eb7d
mov ecx, dword [0x45f8f0]
cmp dword [ecx], 2
jne 0x423741
push 0x10
lea eax, [ecx + 0x2c]
push eax
push 0
push dword [0x483730]
push 0x483170
push dword [ecx + 0x18]
call dword [sym.imp.WS2_32.dll_sendto]
mov bl, 1
push 0x461a50
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call edi
test bl, bl
jne 0x423954
push 0x4619f8
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call esi
cmp dword [0x481f24], 0
jne 0x423913
xor ecx, ecx
cmp dword [0x45ec38], ecx
je 0x423913
cmp dword [0x45ed2c], ecx
je 0x423913
mov dword [ebp - 0x2c], ecx
mov eax, dword [0x45ed2c]
movzx edx, byte [eax + 0x1fb]
mov dword [ebp - 4], ecx
mov eax, dword [0x449648]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x38], ecx
movzx eax, word [eax + 8]
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x28]
lea eax, [edx + ebx]
cmp eax, ecx
jbe 0x42387e
xor eax, eax
mov dword [ebp - 0x24], eax
cmp eax, edx
jae 0x42387e
imul ecx, eax, 0x10018
mov eax, dword [0x45ed2c]
add eax, 0x1fc
add eax, ecx
mov dword [ebp - 0x1c], eax
cmp dword [eax + 0x10], ebx
je 0x4237eb
mov eax, dword [ebp - 0x24]
inc eax
jmp 0x4237c0
mov esi, 0x186a0
mov dword [ebp - 0x30], esi
mov ebx, dword [ebp - 0x1c]
lea eax, [ebx + 0xc]
xor edx, edx
inc edx
mov ecx, eax
call fcn.00401f16
test eax, eax
je 0x423816
mov eax, esi
dec esi
mov dword [ebp - 0x30], esi
test eax, eax
lea eax, [ebx + 0xc]
jne 0x4237f9
jmp 0x42387e
mov esi, dword [ebp - 0x28]
cmp dword [ebx + 0x10], esi
jne 0x423874
mov eax, dword [ebp - 0x1c]
add eax, 4
mov dword [ebp - 0x28], eax
mov ecx, eax
call fcn.0040eb84
cmp dword [ebx + 0x10], esi
jne 0x42386c
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 8], 0
jne 0x42386c
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x34]
cmp dword [eax], ecx
jle 0x42386c
mov eax, dword [ebp - 0x1c]
mov esi, dword [eax]
sub esi, ecx
cmp dword [ebp + 0xc], esi
cmovb esi, dword [ebp + 0xc]
mov dword [ebp - 0x2c], esi
push esi
mov eax, dword [ebp - 0x1c]
add ecx, 0x14
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.0043a150
add esp, 0xc
mov ecx, dword [ebp - 0x28]
call fcn.0040eb90
xor edx, edx
lea ecx, [ebx + 0xc]
call fcn.00401f16
mov dword [ebp - 4], 0xfffffffe
jmp 0x4238a7
push 0x4619f8
call edi
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x4238db
lea edx, [esi + 0x1c]
mov ecx, 0x461c14
call fcn.0040eb7d
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x20]
push dword [ebp + 8]
mov ecx, 0x45f8f0
call fcn.0040f15c
jmp 0x423954
mov esi, dword [ebp - 0x38]
xor edi, edi
shld edi, esi, 0x10
shl esi, 0x10
movzx eax, word [ebp - 0x3c]
cdq
or esi, eax
or edi, edx
cmp dword [ebp - 0x44], edi
ja 0x423900
jb 0x4238fc
cmp dword [ebp - 0x48], esi
jae 0x423900
xor al, al
jmp 0x423956
mov ecx, dword [0x45f8f0]
lea eax, [ecx + 0x2c]
push eax
push dword [ecx + 0x18]
push 1
push esi
push edi
jmp 0x42394c
push 0x4619f8
call edi
mov ebx, 0x461a50
push ebx
call esi
xorps xmm0, xmm0
movlpd qword [0x483728], xmm0
and dword [0x483730], 0
push ebx
call edi
mov ecx, dword [0x45f8f0]
lea eax, [ecx + 0x2c]
push eax
push dword [ecx + 0x18]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
mov edx, dword [ebp - 0x20]
call fcn.00426961
mov al, 1
call fcn.0042b0e6
ret