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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002d73b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x840
mov eax, dword [0x1003a1d0]
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x824]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x84c], edi
call fcn.1001cd30
mov ebx, eax
xor esi, esi
mov dword [ebp - 0x820], ebx
mov dword [ebp - 0x81c], esi
mov dword [ebp - 4], esi
call fcn.10010b00
call fcn.10010b00
mov dword [ebp - 0x830], eax
mov dword [ebp - 0x82c], edx
mov dword [ebp - 0x828], 0x800
mov byte [ebp - 0x815], 0
mov dword [ebp - 0x834], esi
mov dword [edi + 0x405d8], 1
lea esp, [esp]
cmp dword [edi + 0x405d4], esi
je 0x1001e081
mov byte [ebp - 4], 1
mov eax, esi
inc esi
cmp eax, 0xa
jge 0x1001dd2e
mov eax, dword [edi + 0x405d4]
test eax, eax
je 0x1001dd2e
push 0xa
call fcn.10010af0
add esp, 4
jmp 0x1001dd10
call fcn.10010b00
mov esi, dword [ebp - 0x830]
mov ecx, dword [ebp - 0x82c]
sub eax, esi
sbb edx, ecx
mov dword [ebp - 0x844], edx
js 0x1001dd70
jg 0x1001dd54
cmp eax, 0x3e8
jbe 0x1001dd70
lea ecx, [edi + 0x40030]
call fcn.1001f5a0
call fcn.10010b00
mov dword [ebp - 0x830], eax
mov dword [ebp - 0x82c], edx
lea ecx, [edi + 0x405dc]
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.10010b00
mov dword [ebp - 0x83c], eax
mov eax, dword [edi + 0x405f8]
mov ebx, dword [eax]
mov dword [ebp - 0x838], edx
jmp 0x1001dda0
cmp ebx, dword [edi + 0x405f8]
je 0x1001df0d
mov esi, dword [ebx + 0x18]
movzx eax, byte [esi + 0x10]
mov ecx, dword [esi + 0x18]
imul eax, eax, 0x78
cdq
add eax, ecx
adc edx, dword [esi + 0x1c]
mov ecx, dword [ebp - 0x838]
add eax, 0x78
adc edx, 0
cmp ecx, edx
mov dword [ebp - 0x840], esi
jl 0x1001dece
jg 0x1001dde7
cmp dword [ebp - 0x83c], eax
jbe 0x1001dece
movzx eax, word [esi + 0x20]
mov ecx, dword [edi + 0x40610]
cdq
add ecx, eax
mov eax, dword [edi + 0x40614]
push 0x10
adc eax, edx
mov dword [edi + 0x40610], ecx
push esi
mov dword [edi + 0x40614], eax
movzx eax, word [esi + 0x20]
mov edx, dword [edi + 0x4064c]
push 0
push eax
lea ecx, [esi + 0x22]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_sendto]
mov dl, byte [esi + 0x10]
inc dl
mov byte [esi + 0x10], dl
mov cl, byte [edi + 0x405d0]
mov al, dl
cmp al, cl
jbe 0x1001dece
mov al, byte [ebx + 0x21]
test al, al
mov ecx, ebx
jne 0x1001de75
mov eax, dword [ebx + 8]
mov dl, byte [eax + 0x21]
test dl, dl
jne 0x1001de60
mov ebx, eax
mov eax, dword [ebx]
mov dl, byte [eax + 0x21]
test dl, dl
je 0x1001de4e
jmp 0x1001de75
mov eax, dword [ebx + 4]
mov dl, byte [eax + 0x21]
test dl, dl
jne 0x1001de73
cmp ebx, dword [eax + 8]
jne 0x1001de73
mov ebx, eax
jmp 0x1001de60
mov ebx, eax
push ecx
lea eax, [ebp - 0x844]
push eax
lea ecx, [edi + 0x405f4]
call fcn.1001d390
mov eax, dword [ebp - 0x820]
lea ecx, [eax + 4]
mov dword [ebp - 0x844], ecx
mov ecx, dword [ecx]
lea edx, [ebp - 0x840]
push edx
push ecx
push eax
lea ecx, [ebp - 0x824]
call fcn.1001cd50
push 1
lea ecx, [ebp - 0x824]
mov esi, eax
call fcn.1001d2f0
mov edx, dword [ebp - 0x844]
mov dword [edx], esi
mov eax, dword [esi + 4]
mov dword [eax], esi
jmp 0x1001dda0
mov al, byte [ebx + 0x21]
test al, al
jne 0x1001dda0
mov eax, dword [ebx + 8]
mov cl, byte [eax + 0x21]
test cl, cl
jne 0x1001def3
mov ebx, eax
mov eax, dword [ebx]
mov cl, byte [eax + 0x21]
test cl, cl
je 0x1001dee3
jmp 0x1001dda0
mov eax, dword [ebx + 4]
mov cl, byte [eax + 0x21]
test cl, cl
jne 0x1001df06
cmp ebx, dword [eax + 8]
jne 0x1001df06
mov ebx, eax
jmp 0x1001def3
mov ebx, eax
jmp 0x1001dda0
lea ecx, [edi + 0x405dc]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ebx, [ebx]
mov eax, dword [ebp - 0x81c]
test eax, eax
je 0x1001e06d
mov edx, dword [ebp - 0x820]
mov eax, dword [edx]
mov esi, dword [eax + 8]
mov ecx, edx
cmp eax, ecx
je 0x1001df64
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov dword [ecx], edx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
push eax
mov dword [ecx + 4], edx
call fcn.10020755
mov eax, dword [ebp - 0x81c]
add esp, 4
dec eax
mov dword [ebp - 0x81c], eax
mov eax, dword [edi + 4]
test eax, eax
mov dword [ebp - 0x828], 0x800
je 0x1001dfc3
lea eax, [ebp - 0x834]
push eax
lea ecx, [ebp - 0x815]
push ecx
xor ecx, ecx
mov cx, word [esi + 0x20]
lea edx, [ebp - 0x828]
push edx
lea eax, [ebp - 0x814]
push eax
lea edx, [esi + 0x22]
push ecx
push edx
lea ecx, [edi + 0x40024]
call fcn.1001ec80
test eax, eax
je 0x1001dfc3
movzx edx, word [ebp - 0x828]
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
push esi
push edx
lea edx, [ebp - 0x814]
push edx
call dword [eax + 8]
test esi, esi
je 0x1001df20
mov eax, dword [edi + 0x4061c]
cmp eax, dword [edi + 0x40618]
jge 0x1001e053
lea ebx, [edi + 0x40620]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x40640]
test eax, eax
je 0x1001e001
mov ecx, dword [eax + 4]
mov dword [edi + 0x40640], ecx
dec dword [edi + 0x40644]
jmp 0x1001e01c
push 8
call fcn.100192b4
add esp, 4
test eax, eax
je 0x1001e01a
xor edx, edx
mov ecx, eax
mov dword [ecx], edx
mov dword [ecx + 4], edx
jmp 0x1001e01c
xor eax, eax
mov dword [eax + 4], 0
mov dword [eax], esi
mov ecx, dword [edi + 0x4063c]
test ecx, ecx
jne 0x1001e037
mov dword [edi + 0x40638], eax
jmp 0x1001e03a
mov dword [ecx + 4], eax
mov ecx, dword [edi + 0x4061c]
inc ecx
mov dword [edi + 0x4063c], eax
mov dword [edi + 0x4061c], ecx
push ebx
jmp 0x1001df14
push esi
call fcn.10020755
add esp, 4
jmp 0x1001df20
mov ebx, dword [ebp - 0x820]
mov dword [ebp - 4], 0
xor esi, esi
jmp 0x1001dd00
mov dword [edi + 0x405d8], esi
mov eax, dword [ebx]
cmp eax, ebx
mov dword [ebx], ebx
mov dword [ebx + 4], ebx
je 0x1001e0a3
mov esi, dword [eax]
push eax
call fcn.10020755
add esp, 4
cmp esi, ebx
mov eax, esi
jne 0x1001e092
push ebx
call fcn.10020755
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
add esp, 4
call fcn.1001fde5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret