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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
mov eax, dword [0x10373f78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp + 0x18]
push edi
xor edi, edi
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xa8], esi
lea eax, [ebp - 0x68]
mov dword [ebp - 0xbc], edi
mov dword [ebp - 0xb8], edi
mov dword [ebp - 0xb0], eax
mov byte [ebp - 0x95], 0
test esi, esi
je 0x10163f1d
cmp dword [esi], 0xbab1e
jne 0x10163f1d
cmp byte [esi + 0xe3], 0
je 0x1016377e
lea eax, [edi + 8]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.102649e4
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0xc8], ebx
test ebx, ebx
jns 0x101637a2
pop ebx
pop edi
mov eax, 0xa
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.102649e4
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 4]
mov dword [ebp - 0xa0], eax
test eax, eax
je 0x1016381e
nop
lea ecx, [ebp - 0x18]
push ecx
push eax
call fcn.10161f60
add esp, 8
mov ebx, eax
xor edx, edx
mov eax, 1
or esi, 0xffffffff
test ebx, eax
je 0x101637d9
mov ecx, dword [ebp + edx*4 - 0x18]
cmp ecx, 0xffffffff
jae 0x101637d9
inc edi
mov esi, ecx
mov ecx, eax
rol ecx, 0x10
test ebx, ecx
je 0x101637ec
cmp dword [ebp + edx*4 - 0x18], 0xffffffff
jae 0x101637ec
inc edi
jmp 0x101637f1
cmp esi, 0xffffffff
je 0x101637f9
inc edx
rol eax, 1
cmp edx, 5
jb 0x101637c6
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xbc], edi
mov eax, dword [eax + 4]
mov dword [ebp - 0xa0], eax
test eax, eax
jne 0x101637b0
mov esi, dword [ebp - 0xa8]
mov ebx, dword [ebp - 0xc8]
lea eax, [ebp - 0xa4]
push eax
push esi
call fcn.10163600
mov eax, dword [ebp - 0xa4]
add esp, 8
test eax, eax
js 0x10163843
cmp eax, ebx
cmovl ebx, eax
mov dword [ebp - 0xc8], ebx
mov eax, dword [ebp + 0x10]
add eax, edi
cmp byte [ebp + 0x20], 0
lea ecx, [eax + 1]
cmove ecx, eax
cmp ecx, 0xa
jbe 0x1016388f
lea eax, [ecx*8]
push eax
call dword [0x10373010]
add esp, 4
mov dword [ebp - 0xb0], eax
test eax, eax
jne 0x10163888
pop ebx
pop edi
mov eax, 3
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.102649e4
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0x95], 1
mov eax, dword [sym.imp.WS2_32.dll_WSAEventSelect]
xor ebx, ebx
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xc0], eax
test edi, edi
je 0x101639ba
mov eax, dword [esi + 4]
mov dword [ebp - 0x9c], eax
test eax, eax
je 0x101639ba
nop dword [eax + eax]
lea ecx, [ebp - 0x18]
push ecx
push eax
call fcn.10161f60
add esp, 8
mov dword [ebp - 0xa0], eax
xor esi, esi
mov edx, 1
mov ecx, esi
shl edx, cl
or edi, 0xffffffff
xor ebx, ebx
test eax, edx
je 0x10163917
mov eax, dword [ebp + esi*4 - 0x18]
cmp eax, 0xffffffff
jae 0x10163917
mov ecx, dword [ebp - 0xb0]
mov edi, eax
mov eax, dword [ebp - 0xac]
mov edx, 0x300
mov ebx, 0x29
mov dword [ecx + eax*8], edi
mov word [ecx + eax*8 + 4], dx
inc eax
mov dword [ebp - 0xac], eax
lea ecx, [esi + 0x10]
mov eax, 1
shl eax, cl
test dword [ebp - 0xa0], eax
je 0x10163966
mov eax, dword [ebp + esi*4 - 0x18]
cmp eax, 0xffffffff
jae 0x10163966
push 0
push 0
mov edi, eax
or ebx, 0x32
push 0
push edi
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [ebp - 0xac]
mov edx, 0x10
mov ecx, dword [ebp - 0xb0]
mov dword [ecx + eax*8], edi
mov word [ecx + eax*8 + 4], dx
inc eax
mov dword [ebp - 0xac], eax
jmp 0x1016396b
cmp edi, 0xffffffff
je 0x10163997
mov eax, dword [ebp - 0xa8]
push ebx
push dword [eax + 0xdc]
push edi
call dword [ebp - 0xc0]
test eax, eax
jne 0x10163a93
mov eax, dword [ebp - 0xa0]
inc esi
cmp esi, 5
jb 0x101638d5
mov eax, dword [ebp - 0x9c]
mov eax, dword [eax + 4]
mov dword [ebp - 0x9c], eax
test eax, eax
jne 0x101638c0
mov ebx, dword [ebp - 0xac]
mov edi, dword [ebp - 0xbc]
cmp dword [ebp + 0x10], 0
mov dword [ebp - 0xc4], 0
jbe 0x10163b3b
mov eax, dword [ebp - 0xb0]
mov esi, dword [ebp - 0xcc]
lea eax, [eax + ebx*8]
add eax, 4
add esi, 4
mov dword [ebp - 0xa0], eax
nop dword [eax]
movzx edx, word [esi]
mov al, dl
and al, 1
movzx ecx, al
mov al, dl
neg ecx
sbb ecx, ecx
and ecx, 0x29
mov dword [ebp - 0x9c], ecx
or dword [ebp - 0x9c], 4
and al, 2
mov eax, dword [ebp - 0x9c]
cmove eax, ecx
test dl, 4
je 0x10163a3e
push 0
push 0
push 0
push dword [esi - 4]
or eax, 0x32
mov dword [ebp - 0x9c], eax
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [ebp - 0x9c]
push eax
mov eax, dword [ebp - 0xa8]
push dword [eax + 0xdc]
push dword [esi - 4]
call dword [ebp - 0xc0]
test eax, eax
jne 0x10163c6a
mov ecx, dword [ebp - 0xa0]
xor edx, edx
mov eax, dword [esi - 4]
mov dword [ecx - 4], eax
xor eax, eax
mov word [ecx], ax
movzx eax, word [esi]
mov ebx, eax
mov dword [ebp - 0xa4], ebx
mov ebx, dword [ebp - 0xac]
test al, 1
je 0x10163ac6
mov eax, 0x300
mov word [ecx], ax
mov edx, eax
movzx eax, word [esi]
jmp 0x10163acc
cmp byte [ebp - 0x95], 0
je 0x10163c82
mov ecx, dword [ebp - 0xb0]
push ecx
call dword [0x10373014]
add esp, 4
mov eax, 4
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.102649e4
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xa4]
movzx edi, dx
movzx eax, ax
mov dword [ebp - 0xa4], edi
mov edi, eax
mov dword [ebp - 0xb4], edi
mov edi, dword [ebp - 0xbc]
test al, 2
je 0x10163afb
or edx, 0x400
mov word [ecx], dx
movzx eax, dx
movzx edx, word [esi]
jmp 0x10163b07
mov eax, dword [ebp - 0xa4]
mov edx, dword [ebp - 0xb4]
test dl, 4
je 0x10163b12
or eax, 0x10
mov word [ecx], ax
mov eax, dword [ebp - 0xc4]
inc ebx
inc eax
mov dword [ebp - 0xac], ebx
add ecx, 8
mov dword [ebp - 0xc4], eax
add esi, 8
mov dword [ebp - 0xa0], ecx
cmp eax, dword [ebp + 0x10]
jb 0x101639f0
test ebx, ebx
jne 0x10163c98
cmp byte [ebp + 0x20], bl
je 0x10163e7c
mov dword [ebp - 0xa0], ebx
mov eax, dword [ebp - 0xa8]
push 0
push dword [ebp - 0xc8]
add eax, 0xdc
push 0
push eax
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
mov edx, dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
xor eax, eax
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xa4], edx
cmp dword [ebp + 0x10], eax
jbe 0x10163d97
mov ecx, dword [ebp - 0xb0]
lea ecx, [ecx + edi*8]
mov edi, dword [ebp - 0xa0]
add ecx, 6
mov dword [ebp - 0xb4], ecx
movsx ebx, word [ecx]
xor esi, esi
mov ecx, dword [ebp - 0xcc]
shl eax, 3
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0x94], esi
mov eax, dword [eax + ecx]
lea ecx, [ebp - 0x94]
push ecx
push esi
push eax
mov dword [ebp - 0xc4], eax
call edx
test eax, eax
jne 0x10163ce4
mov ecx, dword [ebp - 0x94]
mov eax, esi
test cl, 0x29
mov ebx, ecx
setne al
movzx edx, ax
mov eax, edx
or eax, 4
and bl, 0x32
mov ebx, dword [ebp - 0x94]
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 2
and bl, 4
movzx ecx, ax
mov eax, edx
cmove ecx, eax
cmp dword [ebp - 0xd0], 0
movzx eax, cx
mov esi, eax
je 0x10163cde
test edi, edi
jne 0x10163cde
cmp dword [ebp - 0x94], edi
je 0x10163cde
mov eax, dword [ebp - 0xa8]
inc dword [ebp - 0xb8]
push edi
push dword [eax + 0xdc]
push dword [ebp - 0xc4]
call dword [ebp - 0xc0]
movzx eax, si
jmp 0x10163d4f
cmp byte [ebp - 0x95], 0
je 0x10163c82
push dword [ebp - 0xb0]
call dword [0x10373014]
add esp, 4
pop ebx
pop edi
mov eax, 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.102649e4
mov esp, ebp
pop ebp
ret
push 0
push 0
push ebx
push dword [ebp - 0xb0]
call fcn.10181620
mov esi, eax
add esp, 0x10
mov dword [ebp - 0xa0], esi
test esi, esi
jns 0x10163ccd
pop ebx
pop edi
mov eax, 0xc
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.102649e4
mov esp, ebp
pop ebp
ret
jle 0x10163b52
mov dword [ebp - 0xb8], esi
jmp 0x10163b70
mov ebx, dword [ebp - 0x9c]
mov eax, dword [ebp - 0xa8]
push 0
push dword [eax + 0xdc]
push dword [ebp - 0xc4]
call dword [ebp - 0xc0]
test edi, edi
jne 0x10163d07
movzx eax, si
jmp 0x10163d4f
mov eax, esi
mov edx, ebx
or eax, 1
and edx, 0x300
movzx ecx, ax
movzx eax, si
mov esi, dword [ebp - 0x9c]
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 4
and bl, 0x10
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 2
and esi, 0x400
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx eax, cx
mov ecx, dword [ebp - 0xd4]
mov edx, dword [ebp - 0xcc]
mov word [ecx + edx + 6], ax
mov eax, dword [ebp - 0xd8]
mov ecx, dword [ebp - 0xb4]
inc eax
mov edx, dword [ebp - 0xa4]
add ecx, 8
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xb4], ecx
cmp eax, dword [ebp + 0x10]
jb 0x10163ba5
mov ebx, dword [ebp - 0xac]
mov edi, dword [ebp - 0xbc]
test edi, edi
je 0x10163e6a
mov eax, dword [ebp - 0xa8]
mov eax, dword [eax + 4]
mov dword [ebp - 0xb4], eax
test eax, eax
je 0x10163e6a
mov ebx, dword [ebp - 0xa0]
nop dword [eax]
lea ecx, [ebp - 0x18]
push ecx
push eax
call fcn.10161f60
add esp, 8
mov dword [ebp - 0xd4], eax
xor esi, esi
mov edi, 1
nop word [eax + eax]
lea ecx, [esi + 0x10]
mov edx, edi
bts edx, ecx
test eax, edx
je 0x10163e4d
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0
push eax
push 0
push dword [ebp + esi*4 - 0x18]
call dword [ebp - 0xa4]
test eax, eax
jne 0x10163e27
cmp dword [ebp - 0xd0], eax
je 0x10163e27
test ebx, ebx
jne 0x10163e27
cmp dword [ebp - 0x94], ebx
je 0x10163e27
inc dword [ebp - 0xb8]
mov eax, dword [ebp - 0xa8]
push 0
push dword [eax + 0xdc]
push dword [ebp + esi*4 - 0x18]
call dword [ebp - 0xc0]
mov eax, dword [ebp - 0xd4]
inc esi
rol edi, 1
cmp esi, 5
jb 0x10163de0
mov eax, dword [ebp - 0xb4]
mov eax, dword [eax + 4]
mov dword [ebp - 0xb4], eax
test eax, eax
jne 0x10163dc0
mov ebx, dword [ebp - 0xac]
mov eax, dword [ebp - 0xa8]
push dword [eax + 0xdc]
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
cmp byte [ebp - 0x95], 0
je 0x10163e94
push dword [ebp - 0xb0]
call dword [0x10373014]
add esp, 4
mov ecx, dword [ebp - 0xd0]
test ecx, ecx
je 0x10163ea6
mov eax, dword [ebp - 0xb8]
mov dword [ecx], eax
cmp byte [ebp + 0x1c], 0
je 0x10163f0a
test ebx, ebx
jne 0x10163f0a
cmp byte [ebp + 0x20], bl
jne 0x10163f0a
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xa4], ebx
cmp dword [eax], 0xbab1e
jne 0x10163f0a
cmp byte [eax + 0xe3], bl
jne 0x10163f0a
lea ecx, [ebp - 0xa4]
push ecx
push eax
call fcn.10163600
add esp, 8
test eax, eax
jne 0x10163f0a
mov eax, dword [ebp - 0xa4]
test eax, eax
je 0x10163f0a
mov ecx, dword [ebp - 0xc8]
cmp eax, ecx
jg 0x10163efd
test eax, eax
jns 0x10163eff
mov eax, ecx
cdq
push edx
push eax
call fcn.10181b50
add esp, 8
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.102649e4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.102649e4
mov esp, ebp
pop ebp
ret