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

Disassembly:
sub esp, 0xc0
mov eax, dword [0x4a2074]
xor eax, esp
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0xc8]
push ebx
push esi
mov esi, dword [esp + 0xcc]
lea ebx, [esp + 0x74]
push edi
xor edi, edi
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xe0]
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], ebx
mov byte [esp + 0xf], 0
test esi, esi
je 0x417ceb
cmp dword [esi], 0xbab1e
jne 0x417ceb
cmp byte [esi + 0xe2], 0
je 0x4176d7
lea eax, [edi + 8]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xbc]
xor ecx, esp
call fcn.0045d9c6
add esp, 0xc0
ret
cmp dword [esp + 0xdc], edi
jge 0x4176fd
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [esp + 0xbc]
xor ecx, esp
call fcn.0045d9c6
add esp, 0xc0
ret
push ebp
mov ebp, dword [esi + 4]
test ebp, ebp
je 0x417766
lea eax, [esp + 0x68]
push eax
push ebp
call fcn.00416030
add esp, 8
mov ebx, eax
xor edx, edx
mov eax, 1
nop dword [eax]
or esi, 0xffffffff
test ebx, eax
je 0x417733
mov ecx, dword [esp + edx*4 + 0x68]
cmp ecx, 0xffffffff
jae 0x417733
inc edi
mov esi, ecx
mov ecx, eax
rol ecx, 0x10
test ebx, ecx
je 0x417746
cmp dword [esp + edx*4 + 0x68], 0xffffffff
jae 0x417746
inc edi
jmp 0x41774b
cmp esi, 0xffffffff
je 0x417753
inc edx
rol eax, 1
cmp edx, 5
jb 0x417720
mov ebp, dword [ebp + 4]
mov dword [esp + 0x30], edi
test ebp, ebp
jne 0x417705
mov esi, dword [esp + 0x1c]
lea ebx, [esp + 0x7c]
lea eax, [esp + 0x14]
push eax
push esi
call fcn.00417570
mov eax, dword [esp + 0x1c]
add esp, 8
test eax, eax
js 0x41778f
mov ecx, dword [esp + 0xe0]
cmp eax, ecx
cmovl ecx, eax
mov dword [esp + 0xe0], ecx
mov eax, dword [esp + 0xdc]
add eax, edi
cmp byte [esp + 0xec], 0
lea ecx, [eax + 1]
cmove ecx, eax
cmp ecx, 0xa
jbe 0x4177e7
lea eax, [ecx*8]
push eax
call dword [0x4a2048]
mov ebx, eax
add esp, 4
mov dword [esp + 0x20], ebx
test ebx, ebx
jne 0x4177e2
lea eax, [ebx + 3]
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xbc]
xor ecx, esp
call fcn.0045d9c6
add esp, 0xc0
ret
mov byte [esp + 0x13], 1
xor ebp, ebp
mov dword [esp + 0x34], ebp
test edi, edi
je 0x4178d3
mov eax, dword [esi + 4]
mov dword [esp + 0x18], eax
test eax, eax
je 0x4178d3
lea ecx, [esp + 0x68]
push ecx
push eax
call fcn.00416030
add esp, 8
mov dword [esp + 0x14], eax
xor edi, edi
nop dword [eax + eax]
mov edx, 1
mov ecx, edi
shl edx, cl
or esi, 0xffffffff
xor ebx, ebx
test eax, edx
je 0x417851
mov edx, dword [esp + 0x20]
mov eax, 0x300
mov esi, dword [esp + edi*4 + 0x68]
mov ebx, 0x29
mov dword [edx + ebp*8], esi
mov word [edx + ebp*8 + 4], ax
inc ebp
mov dword [esp + 0x34], ebp
lea ecx, [edi + 0x10]
mov eax, 1
shl eax, cl
test dword [esp + 0x14], eax
je 0x41788b
mov esi, dword [esp + edi*4 + 0x68]
or ebx, 0x32
push 0
push 0
push 0
push esi
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [esp + 0x20]
mov ecx, 0x10
mov dword [eax + ebp*8], esi
mov word [eax + ebp*8 + 4], cx
inc ebp
mov dword [esp + 0x34], ebp
cmp esi, 0xffffffff
je 0x4178b8
mov eax, dword [esp + 0x1c]
push ebx
push dword [eax + 0xdc]
push esi
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x4179e9
mov eax, dword [esp + 0x14]
inc edi
cmp edi, 5
jb 0x417820
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x417804
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x20]
cmp dword [esp + 0xdc], 0
mov dword [esp + 0x18], 0
jbe 0x4179cf
mov esi, dword [esp + 0x2c]
lea eax, [ebp*8 + 4]
add eax, ebx
add esi, 4
mov dword [esp + 0x14], 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 ebx, ecx
or ebx, 4
and al, 2
cmove ebx, ecx
test dl, 4
je 0x417934
push 0
push 0
push 0
push dword [esi - 4]
or ebx, 0x32
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [esp + 0x1c]
push ebx
push dword [eax + 0xdc]
push dword [esi - 4]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x4179e9
mov ecx, dword [esp + 0x14]
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
test al, 1
je 0x417977
mov eax, 0x300
mov word [ecx], ax
mov edx, eax
movzx ebx, word [esi]
movzx eax, bx
movzx ebx, dx
mov edi, eax
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x30]
test al, 2
je 0x41799c
or edx, 0x400
mov word [ecx], dx
movzx eax, word [esi]
movzx ebx, dx
jmp 0x4179a0
mov eax, dword [esp + 0x14]
test al, 4
je 0x4179aa
or ebx, 0x10
mov word [ecx], bx
mov eax, dword [esp + 0x18]
inc ebp
inc eax
mov dword [esp + 0x34], ebp
add ecx, 8
mov dword [esp + 0x18], eax
add esi, 8
mov dword [esp + 0x14], ecx
cmp eax, dword [esp + 0xdc]
jb 0x417900
test ebp, ebp
jne 0x417a07
cmp byte [esp + 0xec], 0
je 0x417c5b
xor ebx, ebx
mov dword [esp + 0x18], ebx
jmp 0x417a22
cmp byte [esp + 0x13], 0
je 0x4179fd
push dword [esp + 0x20]
call dword [0x4a204c]
add esp, 4
mov eax, 4
jmp 0x4177c9
push 0
push 0
push ebp
push dword [esp + 0x2c]
call fcn.00434b90
mov ebx, eax
add esp, 0x10
mov dword [esp + 0x18], ebx
test ebx, ebx
jg 0x417a40
mov ecx, dword [esp + 0x1c]
push 0
push dword [esp + 0xe4]
add ecx, 0xdc
push 0
push ecx
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
xor ecx, ecx
mov eax, ebx
test ebx, ebx
cmovle eax, ecx
xor esi, esi
mov dword [esp + 0x24], eax
cmp dword [esp + 0xdc], ecx
jbe 0x417ba4
mov ebp, dword [esp + 0x20]
add ebp, 6
mov dword [esp + 0x24], eax
lea ebp, [ebp + edi*8]
mov edi, dword [esp + 0x1c]
nop
movsx eax, word [ebp]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x30]
push 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
push dword [eax + esi*8]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x417b18
mov ecx, dword [esp + 0x3c]
test cl, 0x29
mov ebx, ecx
setne al
movzx edx, ax
mov eax, edx
or eax, 4
and bl, 0x32
mov ebx, dword [esp + 0x3c]
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 2
and bl, 4
mov ebx, dword [esp + 0x18]
movzx ecx, ax
mov eax, edx
cmove ecx, eax
cmp dword [esp + 0x28], 0
movzx ecx, cx
mov eax, ecx
mov dword [esp + 0x38], eax
je 0x417b18
mov dword [esp + 0x38], eax
test ebx, ebx
jg 0x417b18
cmp dword [esp + 0x3c], 0
mov dword [esp + 0x38], eax
je 0x417b18
mov eax, dword [esp + 0x2c]
inc dword [esp + 0x24]
push 0
push dword [edi + 0xdc]
push dword [eax + esi*8]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
jmp 0x417b8b
mov eax, dword [esp + 0x2c]
push 0
push dword [edi + 0xdc]
push dword [eax + esi*8]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test ebx, ebx
jle 0x417b8b
mov ebx, dword [esp + 0x38]
mov eax, ebx
mov edx, dword [esp + 0x14]
or eax, 1
movzx ecx, ax
and edx, 0x300
movzx eax, bx
mov ebx, dword [esp + 0x14]
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 4
and bl, 0x10
mov ebx, dword [esp + 0x14]
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 2
and ebx, 0x400
mov ebx, dword [esp + 0x18]
movzx ecx, ax
mov eax, edx
cmove ecx, eax
mov eax, dword [esp + 0x2c]
mov word [eax + esi*8 + 6], cx
inc esi
add ebp, 8
cmp esi, dword [esp + 0xdc]
jb 0x417a70
mov ebp, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
test edi, edi
je 0x417c49
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
test eax, eax
je 0x417c49
nop
lea ecx, [esp + 0x68]
push ecx
push eax
call fcn.00416030
add esp, 8
mov ebp, eax
xor esi, esi
mov edi, 1
lea ecx, [esi + 0x10]
mov edx, edi
bts edx, ecx
test ebp, edx
je 0x417c32
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], 0
push eax
push 0
push dword [esp + esi*4 + 0x70]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x417c14
cmp dword [esp + 0x28], eax
je 0x417c14
test ebx, ebx
jg 0x417c14
cmp dword [esp + 0x3c], eax
je 0x417c14
inc dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
push 0
push dword [eax + 0xdc]
push dword [esp + esi*4 + 0x70]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
inc esi
rol edi, 1
cmp esi, 5
jb 0x417bd7
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x417bc0
mov ebp, dword [esp + 0x34]
mov ebx, dword [esp + 0x1c]
push dword [ebx + 0xdc]
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
jmp 0x417c5f
mov ebx, dword [esp + 0x1c]
cmp byte [esp + 0x13], 0
je 0x417c73
push dword [esp + 0x20]
call dword [0x4a204c]
add esp, 4
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x417c81
mov eax, dword [esp + 0x24]
mov dword [ecx], eax
cmp byte [esp + 0xe8], 0
je 0x417ce4
test ebp, ebp
jne 0x417ce4
cmp byte [esp + 0xec], 0
jne 0x417ce4
cmp dword [ebx], 0xbab1e
mov dword [esp + 0x28], ebp
jne 0x417ce4
cmp byte [ebx + 0xe2], 0
jne 0x417ce4
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.00417570
add esp, 8
test eax, eax
jne 0x417ce4
mov eax, dword [esp + 0x28]
test eax, eax
je 0x417ce4
mov ecx, dword [esp + 0xe0]
cmp eax, ecx
jg 0x417cd7
test eax, eax
jns 0x417cd9
mov eax, ecx
cdq
push edx
push eax
call fcn.004351a0
add esp, 8
xor eax, eax
jmp 0x4177c9
mov ecx, dword [esp + 0xc8]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045d9c6
add esp, 0xc0
ret