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

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.1001baa0
mov edi, dword [ebp + 0x10]
add esp, 4
cmp word [esi + 0x2b4], 0x11e
mov dword [ebp - 4], eax
mov dword [ebp + 8], edi
jne 0x1001d20b
push esi
call fcn.1001bb20
add esp, 4
test eax, eax
jne 0x1001d20b
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x1001d247
push esi
call fcn.1001bb20
add esp, 4
test eax, eax
je 0x1001d244
push edi
push dword [ebp + 0xc]
lea eax, [esi + 0x2ac]
push eax
call fcn.100297c0
add esp, 0xc
test eax, eax
jne 0x1001d411
xor ebx, ebx
xor edi, edi
mov dword [ebp + 0xc], ebx
jmp 0x1001d247
mov ebx, dword [ebp + 0xc]
cmp dword [esi + 0x2ac], 0
lea eax, [esi + 0x2ac]
je 0x1001d26b
lea ecx, [ebp + 0xc]
push ecx
push eax
call fcn.10029910
mov ebx, dword [ebp + 0xc]
mov edi, eax
add esp, 8
mov dword [ebp + 8], edi
test edi, edi
je 0x1001d4b3
test ebx, ebx
je 0x1001d4b3
test byte [esi + 0x2d0], 2
jne 0x1001d2b4
cmp dword [esi + 0x2b0], 0xffffffff
jne 0x1001d2b4
push str.invalid_sock
push str.lws_issue_raw
push 1
push esi
push 0x1001bbf0
push esi
call fcn.1001c4d0
add esp, 4
push eax
call fcn.1001dc10
mov ebx, dword [ebp + 0xc]
add esp, 0x18
mov ecx, dword [esi + 8]
mov eax, dword [ecx + 0x18]
test eax, eax
jne 0x1001d2ce
mov eax, dword [ecx + 0xc]
test eax, eax
jne 0x1001d2ce
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4cc]
add eax, 0x14
cmp eax, edi
cmovbe edi, eax
cmp dword [esi + 0x25c], 0
je 0x1001d319
push esi
call fcn.1001bb20
mov ecx, dword [esi + 0x25c]
add esp, 4
mov edx, dword [esi + 0x2b0]
push 0x10
test eax, eax
je 0x1001d30b
lea eax, [ecx + 0x10]
push eax
push 0
push edi
push ebx
push edx
call dword [sym.imp.WS2_32.dll_sendto]
jmp 0x1001d347
push ecx
push 0
push edi
push ebx
push edx
call dword [sym.imp.WS2_32.dll_sendto]
jmp 0x1001d347
mov eax, dword [esi + 0x24c]
test byte [eax + 0x22], 1
je 0x1001d337
push edi
push ebx
push dword [esi + 0x2b0]
call sub.msvcrt.dll__write
add esp, 0xc
jmp 0x1001d347
push 0
push edi
push ebx
push dword [esi + 0x2b0]
call dword [sym.imp.WS2_32.dll_send]
mov ecx, eax
test ecx, ecx
jns 0x1001d3a1
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
cmp eax, 0x2733
je 0x1001d38c
call edi
cmp eax, 0x2733
je 0x1001d38c
call edi
cmp eax, 0x2714
je 0x1001d38c
or dword [esi + 0x2d4], 0x2000
or dword [esi + 0x2d0], 0x1000
or eax, 0xffffffff
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call edi
cmp eax, 0x2733
jne 0x1001d39c
or dword [esi + 0x2d8], 0x40
mov ecx, 0xfffffffc
or dword [esi + 0x2d4], 0x2000
xor edx, edx
cmp ecx, 0xfffffffc
mov eax, ecx
push esi
cmove eax, edx
xor edi, edi
test eax, eax
cmovns edi, eax
call fcn.1001bb20
add esp, 4
test eax, eax
je 0x1001d46b
test edi, edi
je 0x1001d3e1
lea eax, [esi + 0x2ac]
push edi
push eax
call fcn.10029990
add esp, 8
push esi
call fcn.1001bb20
add esp, 4
test eax, eax
jne 0x1001d459
cmp word [esi + 0x2b4], 0x11e
mov ebx, dword [ebp + 8]
mov edi, ebx
je 0x1001d411
mov eax, dword [esi + 0x2d4]
test al, 0x10
je 0x1001d41b
and eax, 0xffffffef
mov dword [esi + 0x2d4], eax
pop ebx
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x80]
test al, 1
je 0x1001d448
and eax, 0xfffffffe
push esi
mov dword [esi + 0x80], eax
call fcn.100256a0
add esp, 4
or ecx, 0xffffffff
test eax, eax
cmovne ebx, ecx
mov eax, ebx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x94]
test eax, eax
je 0x1001d459
and dword [eax + 0x120], 0xffffffef
push esi
call fcn.1002a110
add esp, 4
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 8]
cmp edi, ebx
je 0x1001d462
mov eax, ebx
sub eax, edi
push eax
mov eax, dword [ebp + 0xc]
add eax, edi
push eax
lea eax, [esi + 0x2ac]
push eax
call fcn.100297c0
add esp, 0xc
test eax, eax
js 0x1001d411
mov eax, dword [esi + 0x25c]
test eax, eax
je 0x1001d4a1
movups xmm0, xmmword [eax]
movups xmmword [eax + 0x10], xmm0
push esi
call fcn.1002a110
add esp, 4
mov eax, ebx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret