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

Disassembly:
sub esp, 0xd8
mov eax, dword [0x10173400]
xor eax, esp
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0xe0]
push ebx
push ebp
push esi
mov esi, dword [esp + 0xe8]
xor ebp, ebp
mov dword [esp + 0x28], eax
mov ebx, 0xa
mov eax, dword [esp + 0xf8]
mov dword [esp + 0x20], esi
mov dword [esp + 0x40], eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x10], ebx
mov dword [esp + 0x38], ebp
mov byte [esp + 0xf], 0
push edi
lea edi, [esp + 0x94]
mov dword [esp + 0x18], edi
test esi, esi
je 0x1009e648
cmp dword [esi], 0xbab1e
jne 0x1009e648
cmp byte [esi + 0x117], 0
je 0x1009df65
lea eax, [ebx - 2]
jmp 0x1009e64d
cmp dword [esp + 0xf8], ebp
jge 0x1009df75
mov eax, ebx
jmp 0x1009e64d
lea eax, [esp + 0x20]
push eax
push esi
call fcn.1009ddf0
mov eax, dword [esp + 0x28]
add esp, 8
test eax, eax
js 0x1009df9e
mov ecx, dword [esp + 0xf8]
cmp eax, ecx
cmovl ecx, eax
mov dword [esp + 0xf8], ecx
push 0x50
lea eax, [esp + 0x98]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [esi + 4]
xorps xmm0, xmm0
mov eax, dword [sym.imp.WS2_32.dll_WSAEventSelect]
add esp, 0xc
mov dword [esp + 0x28], ecx
mov esi, 0x300
mov dword [esp + 0x38], eax
movups xmmword [esp + 0x48], xmm0
movups xmmword [esp + 0x58], xmm0
test ecx, ecx
je 0x1009e176
nop dword [eax]
lea eax, [esp + 0x48]
push eax
push ecx
call fcn.1009c8b0
xor ebx, ebx
add esp, 8
cmp dword [esp + 0x5c], ebx
jbe 0x1009e15b
nop word [eax + eax]
mov dl, byte [esp + ebx + 0x60]
mov eax, 0
test dl, 1
mov edi, 0x29
mov cl, dl
cmove edi, eax
mov eax, esi
xor esi, esi
test cl, 1
cmove eax, esi
lea esi, [ebx*4]
movzx eax, ax
mov ecx, eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x1c], ecx
test dl, 2
je 0x1009e08d
mov eax, dword [esp + esi + 0x48]
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x44]
mov dword [esp + 0x20], eax
push ecx
push 0x1008
push 0xffff
push eax
or edi, 0x32
mov dword [esp + 0x34], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1009e07f
cmp dword [esp + 0x40], 1
jne 0x1009e07f
push eax
push eax
push eax
push dword [esp + 0x28]
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [esp + 0x30]
or eax, 0x10
movzx ecx, ax
mov dword [esp + 0x1c], ecx
test cx, cx
je 0x1009e12c
mov edx, dword [esp + 0x18]
test ebp, ebp
je 0x1009e0af
mov eax, dword [esp + esi + 0x48]
cmp eax, dword [edx + ebp*8 - 8]
jne 0x1009e0af
or word [edx + ebp*8 - 4], cx
jmp 0x1009e12c
mov eax, dword [esp + 0x14]
cmp ebp, eax
jb 0x1009e114
add eax, 0x64
push 8
push eax
mov dword [esp + 0x38], eax
call dword [0x10173010]
mov esi, eax
add esp, 8
test esi, esi
je 0x1009e3e3
mov ecx, dword [esp + 0x14]
shl ecx, 3
push ecx
push dword [esp + 0x1c]
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
cmp byte [esp + 0x13], 0
je 0x1009e0fd
push dword [esp + 0x18]
call dword [0x10173004]
add esp, 4
mov eax, dword [esp + 0x30]
mov edx, esi
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
mov byte [esp + 0x13], 1
lea esi, [ebx*4]
mov eax, dword [esp + esi + 0x48]
mov dword [edx + ebp*8], eax
mov word [edx + ebp*8 + 4], cx
inc ebp
mov dword [esp + 0x3c], ebp
test edi, edi
je 0x1009e14b
mov eax, dword [esp + 0x24]
push edi
push dword [eax + 0x108]
push dword [esp + esi + 0x50]
call dword [esp + 0x44]
test eax, eax
jne 0x1009e401
inc ebx
mov esi, 0x300
cmp ebx, dword [esp + 0x5c]
jb 0x1009e000
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx + 0x10]
mov dword [esp + 0x28], ecx
test ecx, ecx
jne 0x1009dfe0
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0xf4]
mov dword [esp + 0x40], ebp
mov dword [esp + 0x28], 0
test esi, esi
je 0x1009e2e2
mov esi, dword [esp + 0x2c]
add esi, 4
movzx edx, word [esi]
mov al, dl
and al, 1
movzx ecx, al
neg ecx
sbb ecx, ecx
and ecx, 0x29
mov dword [esp + 0x14], ecx
or dword [esp + 0x14], 4
test dl, 2
mov eax, dword [esp + 0x14]
cmove eax, ecx
test dl, 4
je 0x1009e20e
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], 4
push ecx
lea ecx, [esp + 0x24]
or eax, 0x32
push ecx
push 0x1008
mov dword [esp + 0x20], eax
mov eax, dword [esi - 4]
push 0xffff
push eax
mov dword [esp + 0x30], eax
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1009e20a
cmp dword [esp + 0x20], 1
jne 0x1009e20a
push eax
push eax
push eax
push dword [esp + 0x28]
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x28]
push dword [eax + 0x108]
push dword [esi - 4]
call dword [esp + 0x44]
test eax, eax
jne 0x1009e43a
cmp ebp, ebx
jb 0x1009e27f
lea eax, [ebx + 0x64]
push 8
push eax
mov dword [esp + 0x24], eax
call dword [0x10173010]
add esp, 8
mov dword [esp + 0x30], eax
test eax, eax
je 0x1009e41f
lea ecx, [ebx*8]
push ecx
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
cmp byte [esp + 0x13], 0
je 0x1009e26e
push edi
call dword [0x10173004]
add esp, 4
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x18], edi
mov byte [esp + 0x13], 1
mov eax, dword [esi - 4]
mov dword [edi + ebp*8], eax
xor eax, eax
mov word [edi + ebp*8 + 4], ax
test byte [esi], 1
je 0x1009e29b
mov eax, 0x300
mov word [edi + ebp*8 + 4], ax
test byte [esi], 2
movzx ecx, ax
je 0x1009e2b0
or eax, 0x400
mov word [edi + ebp*8 + 4], ax
movzx ecx, ax
test byte [esi], 4
je 0x1009e2bd
or ecx, 0x10
mov word [edi + ebp*8 + 4], cx
mov eax, dword [esp + 0x28]
inc ebp
inc eax
mov dword [esp + 0x3c], ebp
add esi, 8
mov dword [esp + 0x28], eax
cmp eax, dword [esp + 0xf4]
jb 0x1009e198
mov esi, dword [esp + 0xf4]
test ebp, ebp
jne 0x1009e455
cmp byte [esp + 0x104], 0
je 0x1009e5be
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x24]
push 0
push dword [esp + 0xfc]
add eax, 0x108
push 0
push eax
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
mov ecx, dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
mov dword [esp + 0x20], ecx
test esi, esi
je 0x1009e513
mov eax, dword [esp + 0x40]
lea ebp, [eax*8 + 6]
add ebp, edi
xor edi, edi
nop dword [eax]
movsx eax, word [ebp]
lea edx, [esp + 0x68]
mov dword [esp + 0x1c], eax
xor esi, esi
mov eax, dword [esp + 0x2c]
push edx
push esi
mov dword [esp + 0x70], esi
mov eax, dword [eax + edi*8]
push eax
mov dword [esp + 0x34], eax
call ecx
test eax, eax
jne 0x1009e486
mov ecx, dword [esp + 0x68]
mov eax, esi
test cl, 0x29
mov ebx, ecx
setne al
movzx edx, ax
mov eax, edx
or eax, 4
test bl, 0x32
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 2
test bl, 4
mov ebx, dword [esp + 0x14]
movzx ecx, ax
mov eax, edx
cmove ecx, eax
cmp dword [esp + 0x44], 0
movzx eax, cx
mov esi, eax
je 0x1009e486
test ebx, ebx
jne 0x1009e486
cmp dword [esp + 0x68], ebx
je 0x1009e486
mov eax, dword [esp + 0x24]
inc dword [esp + 0x34]
push ebx
push dword [eax + 0x108]
push dword [esp + 0x30]
call dword [esp + 0x44]
movzx eax, si
jmp 0x1009e4ed
cmp byte [esp + 0x13], 0
je 0x1009e430
push dword [esp + 0x18]
call dword [0x10173004]
add esp, 4
mov eax, 3
jmp 0x1009e64d
cmp byte [esp + 0x13], 0
je 0x1009e44b
push dword [esp + 0x18]
call dword [0x10173004]
add esp, 4
mov eax, 4
jmp 0x1009e64d
cmp byte [esp + 0x13], 0
je 0x1009e430
push edi
call dword [0x10173004]
add esp, 4
mov eax, 3
jmp 0x1009e64d
cmp byte [esp + 0x13], 0
je 0x1009e44b
push edi
call dword [0x10173004]
add esp, 4
mov eax, 4
jmp 0x1009e64d
push 0
push 0
push ebp
push edi
call fcn.100bea00
mov ebx, eax
add esp, 0x10
mov dword [esp + 0x14], ebx
test ebx, ebx
jns 0x1009e477
mov eax, 0xc
jmp 0x1009e64d
jle 0x1009e2fe
mov dword [esp + 0x34], ebx
jmp 0x1009e31b
mov eax, dword [esp + 0x24]
push 0
push dword [eax + 0x108]
push dword [esp + 0x30]
call dword [esp + 0x44]
test ebx, ebx
jne 0x1009e4a3
movzx eax, si
jmp 0x1009e4ed
mov ebx, dword [esp + 0x1c]
mov eax, esi
or eax, 1
test dword [esp + 0x1c], 0x300
movzx ecx, ax
movzx eax, si
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 4
test bl, 0x10
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 2
test ebx, 0x400
mov ebx, dword [esp + 0x14]
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx eax, cx
mov ecx, dword [esp + 0x2c]
add ebp, 8
mov word [ecx + edi*8 + 6], ax
inc edi
mov ecx, dword [esp + 0x20]
cmp edi, dword [esp + 0xf4]
jb 0x1009e340
mov ebp, dword [esp + 0x3c]
mov edi, dword [esp + 0x18]
cmp dword [esp + 0x40], 0
je 0x1009e5ac
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 4]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x1009e5ac
mov ebp, dword [esp + 0x20]
mov edi, eax
lea eax, [esp + 0x48]
push eax
push edi
call fcn.1009c8b0
xor esi, esi
add esp, 8
cmp dword [esp + 0x5c], esi
jbe 0x1009e599
mov edi, dword [esp + 0x24]
lea eax, [esp + 0x68]
mov dword [esp + 0x68], 0
push eax
push 0
push dword [esp + esi*4 + 0x50]
call ebp
test eax, eax
jne 0x1009e57e
cmp dword [esp + 0x44], eax
je 0x1009e57e
test ebx, ebx
jne 0x1009e57e
cmp dword [esp + 0x68], ebx
je 0x1009e57e
inc dword [esp + 0x34]
push 0
push dword [edi + 0x108]
push dword [esp + esi*4 + 0x50]
call dword [esp + 0x44]
inc esi
cmp esi, dword [esp + 0x5c]
jb 0x1009e551
mov edi, dword [esp + 0x2c]
mov edi, dword [edi + 0x10]
mov dword [esp + 0x2c], edi
test edi, edi
jne 0x1009e537
mov ebp, dword [esp + 0x3c]
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x24]
push dword [ebx + 0x108]
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
jmp 0x1009e5c2
mov ebx, dword [esp + 0x24]
cmp byte [esp + 0x13], 0
je 0x1009e5d3
push edi
call dword [0x10173004]
add esp, 4
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x1009e5e1
mov eax, dword [esp + 0x34]
mov dword [ecx], eax
cmp byte [esp + 0x100], 0
je 0x1009e644
test ebp, ebp
jne 0x1009e644
cmp byte [esp + 0x104], 0
jne 0x1009e644
cmp dword [ebx], 0xbab1e
mov dword [esp + 0x20], ebp
jne 0x1009e644
cmp byte [ebx + 0x117], 0
jne 0x1009e644
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.1009ddf0
add esp, 8
test eax, eax
jne 0x1009e644
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1009e644
mov ecx, dword [esp + 0xf8]
cmp eax, ecx
jg 0x1009e637
test eax, eax
jns 0x1009e639
mov eax, ecx
cdq
push edx
push eax
call fcn.100beeb0
add esp, 8
xor eax, eax
jmp 0x1009e64d
mov eax, 1
mov ecx, dword [esp + 0xe4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100ef512
add esp, 0xd8
ret