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

Disassembly:
sub esp, 0xc0
mov eax, dword [0x57906c]
xor eax, esp
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0xc8]
push ebp
push esi
xor ebp, ebp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xdc]
lea esi, [esp + 0x74]
push edi
mov edi, dword [esp + 0xd0]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x18], esi
mov byte [esp + 0xf], 0
test edi, edi
je 0x4ced95
cmp dword [edi], 0xbab1e
jne 0x4ced95
cmp byte [edi + 0xe2], 0
je 0x4ce7a7
pop edi
pop esi
lea eax, [ebp + 8]
pop ebp
mov ecx, dword [esp + 0xbc]
xor ecx, esp
call fcn.004c61ad
add esp, 0xc0
ret
cmp dword [esp + 0xdc], ebp
jge 0x4ce7cd
pop edi
pop esi
mov eax, 0xa
pop ebp
mov ecx, dword [esp + 0xbc]
xor ecx, esp
call fcn.004c61ad
add esp, 0xc0
ret
push ebx
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x4ce838
lea eax, [esp + 0x68]
push eax
push ebx
call fcn.004cd140
add esp, 8
mov edi, eax
xor edx, edx
mov eax, 1
nop dword [eax]
or esi, 0xffffffff
test edi, eax
je 0x4ce803
mov ecx, dword [esp + edx*4 + 0x68]
cmp ecx, 0xffffffff
jae 0x4ce803
inc ebp
mov esi, ecx
mov ecx, eax
rol ecx, 0x10
test edi, ecx
je 0x4ce818
mov ecx, dword [esp + edx*4 + 0x68]
cmp ecx, 0xffffffff
jae 0x4ce818
inc ebp
mov esi, ecx
cmp esi, 0xffffffff
je 0x4ce825
inc edx
rol eax, 1
cmp edx, 5
jb 0x4ce7f0
mov ebx, dword [ebx + 4]
mov dword [esp + 0x34], ebp
test ebx, ebx
jne 0x4ce7d5
mov edi, dword [esp + 0x20]
lea esi, [esp + 0x7c]
lea eax, [esp + 0x2c]
push eax
push edi
call fcn.004ce610
mov eax, dword [esp + 0x34]
add esp, 8
test eax, eax
js 0x4ce861
mov ecx, dword [esp + 0xe0]
cmp eax, ecx
cmovl ecx, eax
mov dword [esp + 0xe0], ecx
mov eax, dword [esp + 0xdc]
add eax, ebp
cmp byte [esp + 0xec], 0
lea ecx, [eax + 1]
cmove ecx, eax
cmp ecx, 0xa
jbe 0x4ce8b9
lea eax, [ecx*8]
push eax
call dword [0x5790a0]
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
test esi, esi
jne 0x4ce8b4
lea eax, [esi + 3]
pop ebx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0xbc]
xor ecx, esp
call fcn.004c61ad
add esp, 0xc0
ret
mov byte [esp + 0x13], 1
xor edx, edx
mov dword [esp + 0x18], edx
test ebp, ebp
je 0x4ce9b9
mov eax, dword [edi + 4]
mov dword [esp + 0x14], eax
test eax, eax
je 0x4ce9b9
lea ecx, [esp + 0x68]
push ecx
push eax
call fcn.004cd140
add esp, 8
mov dword [esp + 0x24], eax
xor esi, esi
nop word [eax + eax]
mov edx, 1
mov ecx, esi
shl edx, cl
or edi, 0xffffffff
xor ebx, ebx
test eax, edx
mov edx, dword [esp + 0x18]
je 0x4ce92c
mov eax, dword [esp + esi*4 + 0x68]
cmp eax, 0xffffffff
jae 0x4ce92c
mov edi, eax
mov ecx, 0x300
mov eax, dword [esp + 0x1c]
mov ebx, 0x29
mov dword [eax + edx*8], edi
mov word [eax + edx*8 + 4], cx
inc edx
mov dword [esp + 0x18], edx
lea ecx, [esi + 0x10]
mov eax, 1
shl eax, cl
test dword [esp + 0x24], eax
je 0x4ce971
mov eax, dword [esp + esi*4 + 0x68]
cmp eax, 0xffffffff
jae 0x4ce971
push 0
push 0
mov edi, eax
or ebx, 0x32
push 0
push edi
call dword [sym.imp.WS2_32.dll_send]
mov edx, dword [esp + 0x18]
mov ecx, 0x10
mov eax, dword [esp + 0x1c]
mov dword [eax + edx*8], edi
mov word [eax + edx*8 + 4], cx
inc edx
mov dword [esp + 0x18], edx
cmp edi, 0xffffffff
je 0x4ce9a2
mov eax, dword [esp + 0x20]
push ebx
push dword [eax + 0xdc]
push edi
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x4ceabd
mov eax, dword [esp + 0x24]
inc esi
cmp esi, 5
jb 0x4ce8f0
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4ce8d6
mov esi, dword [esp + 0x1c]
cmp dword [esp + 0xdc], 0
mov dword [esp + 0x14], 0
jbe 0x4cea9e
lea edi, [esi + 4]
mov esi, dword [esp + 0x30]
lea edi, [edi + edx*8]
add esi, 4
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 0x4cea14
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 + 0x20]
push ebx
push dword [eax + 0xdc]
push dword [esi - 4]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x4ceabd
mov eax, dword [esi - 4]
xor ecx, ecx
mov dword [edi - 4], eax
xor eax, eax
mov word [edi], ax
movzx eax, word [esi]
mov edx, eax
test al, 1
je 0x4cea53
mov eax, 0x300
mov word [edi], ax
mov ecx, eax
movzx edx, word [esi]
movzx eax, dx
movzx edx, cx
mov ebx, eax
test al, 2
je 0x4cea6e
or ecx, 0x400
mov word [edi], cx
movzx ebx, word [esi]
movzx edx, cx
test bl, 4
je 0x4cea79
or edx, 0x10
mov word [edi], dx
mov eax, dword [esp + 0x14]
add edi, 8
mov edx, dword [esp + 0x18]
inc eax
inc edx
mov dword [esp + 0x14], eax
add esi, 8
mov dword [esp + 0x18], edx
cmp eax, dword [esp + 0xdc]
jb 0x4ce9e0
test edx, edx
jne 0x4ceadb
mov bl, byte [esp + 0xec]
test bl, bl
je 0x4ced05
mov ebx, dword [esp + 0x1c]
xor edi, edi
mov dword [esp + 0x2c], edi
jmp 0x4ceaf3
cmp byte [esp + 0x13], 0
je 0x4cead1
push dword [esp + 0x1c]
call dword [0x5790a4]
add esp, 4
mov eax, 4
jmp 0x4ce89b
mov ebx, dword [esp + 0x1c]
push 0
push 0
push edx
push ebx
call fcn.004ec3a0
add esp, 0x10
mov dword [esp + 0x2c], eax
mov edi, eax
test edi, edi
jg 0x4ceb15
mov ecx, dword [esp + 0x20]
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, edi
test edi, edi
cmovle eax, ecx
mov dword [esp + 0x28], eax
cmp dword [esp + 0xdc], ecx
jbe 0x4cec49
mov dword [esp + 0x28], eax
lea eax, [ebp*8 + 6]
add eax, ebx
xor ebp, ebp
mov dword [esp + 0x14], eax
movsx ebx, word [eax]
xor esi, esi
lea eax, [esp + 0x3c]
mov dword [esp + 0x24], ebx
push eax
mov eax, dword [esp + 0x34]
push esi
mov dword [esp + 0x44], esi
push dword [eax + ebp*8]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x4cebc3
mov ecx, dword [esp + 0x3c]
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 [esp + 0x3c]
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 [esp + 0x38], 0
movzx eax, cx
mov esi, eax
je 0x4cebbf
test edi, edi
jg 0x4cebbf
cmp dword [esp + 0x3c], 0
mov ebx, dword [esp + 0x24]
je 0x4cebc3
inc dword [esp + 0x28]
jmp 0x4cebc3
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push 0
push dword [eax + 0xdc]
mov eax, dword [esp + 0x38]
push dword [eax + ebp*8]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test edi, edi
jle 0x4cec2c
mov eax, esi
mov edx, ebx
or eax, 1
and edx, 0x300
movzx ecx, ax
movzx eax, si
mov esi, dword [esp + 0x24]
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
mov eax, dword [esp + 0x30]
mov word [eax + ebp*8 + 6], cx
mov eax, dword [esp + 0x14]
inc ebp
add eax, 8
mov dword [esp + 0x14], eax
cmp ebp, dword [esp + 0xdc]
jb 0x4ceb42
mov ebp, dword [esp + 0x34]
test ebp, ebp
je 0x4cecee
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
test eax, eax
je 0x4cecee
mov ebx, dword [esp + 0x2c]
lea ecx, [esp + 0x68]
push ecx
push eax
call fcn.004cd140
add esp, 8
mov ebp, eax
xor esi, esi
mov edi, 1
nop
lea ecx, [esi + 0x10]
mov edx, edi
bts edx, ecx
test ebp, edx
je 0x4cecdb
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 0x4cecbd
cmp dword [esp + 0x38], eax
je 0x4cecbd
test ebx, ebx
jg 0x4cecbd
cmp dword [esp + 0x3c], eax
je 0x4cecbd
inc dword [esp + 0x28]
mov eax, dword [esp + 0x20]
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 0x4cec80
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4cec68
mov eax, dword [esp + 0x20]
push dword [eax + 0xdc]
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
mov bl, byte [esp + 0xec]
cmp byte [esp + 0x13], 0
je 0x4ced19
push dword [esp + 0x1c]
call dword [0x5790a4]
add esp, 4
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x4ced27
mov eax, dword [esp + 0x28]
mov dword [ecx], eax
cmp byte [esp + 0xe8], 0
je 0x4ced8e
cmp dword [esp + 0x18], 0
jne 0x4ced8e
test bl, bl
jne 0x4ced8e
mov eax, dword [esp + 0x20]
mov dword [esp + 0x2c], 0
cmp dword [eax], 0xbab1e
jne 0x4ced8e
cmp byte [eax + 0xe2], bl
jne 0x4ced8e
lea ecx, [esp + 0x2c]
push ecx
push eax
call fcn.004ce610
add esp, 8
test eax, eax
jne 0x4ced8e
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4ced8e
mov ecx, dword [esp + 0xe0]
cmp eax, ecx
jg 0x4ced81
test eax, eax
jns 0x4ced83
mov eax, ecx
cdq
push edx
push eax
call fcn.004ec8a0
add esp, 8
xor eax, eax
jmp 0x4ce89b
mov ecx, dword [esp + 0xc8]
mov eax, 1
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004c61ad
add esp, 0xc0
ret