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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov byte [ebp - 1], 0
mov dword [ebp - 0x24], edi
lea esi, [ebp - 0xc8]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], esi
test eax, eax
je 0x4c1b9d
cmp dword [eax], 0xbab1e
jne 0x4c1b9d
cmp byte [eax + 0xe2], 0
je 0x4c15e9
lea eax, [edi + 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x30], ebx
test ebx, ebx
jns 0x4c1600
pop ebx
pop edi
mov eax, 0xa
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4c1672
nop word [eax + eax]
lea ecx, [ebp - 0x4c]
push ecx
push eax
call fcn.004bfe00
add esp, 8
mov ebx, eax
xor edx, edx
mov eax, 1
or esi, 0xffffffff
test ebx, eax
je 0x4c1639
mov ecx, dword [ebp + edx*4 - 0x4c]
cmp ecx, 0xffffffff
jae 0x4c1639
inc edi
mov esi, ecx
mov ecx, eax
rol ecx, 0x10
test ebx, ecx
je 0x4c164c
cmp dword [ebp + edx*4 - 0x4c], 0xffffffff
jae 0x4c164c
inc edi
jmp 0x4c1651
cmp esi, 0xffffffff
je 0x4c1659
inc edx
rol eax, 1
cmp edx, 5
jb 0x4c1626
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], edi
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x4c1610
mov ebx, dword [ebp - 0x30]
lea esi, [ebp - 0xc8]
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call fcn.004c14a0
mov eax, dword [ebp - 0x10]
add esp, 8
test eax, eax
js 0x4c1690
cmp eax, ebx
cmovl ebx, eax
mov dword [ebp - 0x30], 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 0x4c16cc
lea eax, [ecx*8]
push eax
call dword [0x68dc1c]
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
test esi, esi
jne 0x4c16c8
pop ebx
pop edi
lea eax, [esi + 3]
pop esi
mov esp, ebp
pop ebp
ret
mov byte [ebp - 1], 1
mov eax, dword [sym.imp.WS2_32.dll_WSAEventSelect]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x28], eax
test edi, edi
je 0x4c17c2
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 8], eax
test eax, eax
je 0x4c17c2
lea ecx, [ebp - 0x4c]
push ecx
push eax
call fcn.004bfe00
add esp, 8
mov dword [ebp - 0xc], eax
xor esi, esi
mov edx, 1
mov ecx, esi
shl edx, cl
or edi, 0xffffffff
xor ebx, ebx
test eax, edx
je 0x4c173d
mov eax, dword [ebp + esi*4 - 0x4c]
cmp eax, 0xffffffff
jae 0x4c173d
mov ecx, dword [ebp - 0x18]
mov edi, eax
mov eax, dword [ebp - 0x14]
mov edx, 1
mov ebx, 0x29
mov dword [ecx + eax*8], edi
mov word [ecx + eax*8 + 4], dx
inc eax
mov dword [ebp - 0x14], eax
lea ecx, [esi + 0x10]
mov eax, 1
shl eax, cl
test dword [ebp - 0xc], eax
je 0x4c1780
mov eax, dword [ebp + esi*4 - 0x4c]
cmp eax, 0xffffffff
jae 0x4c1780
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 - 0x14]
mov edx, 4
mov ecx, dword [ebp - 0x18]
mov dword [ecx + eax*8], edi
mov word [ecx + eax*8 + 4], dx
inc eax
mov dword [ebp - 0x14], eax
jmp 0x4c1785
cmp edi, 0xffffffff
je 0x4c17a8
mov eax, dword [ebp + 8]
push ebx
push dword [eax + 0xdc]
push edi
call dword [ebp - 0x28]
test eax, eax
jne 0x4c19a7
mov eax, dword [ebp - 0xc]
inc esi
cmp esi, 5
jb 0x4c1704
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
mov dword [ebp - 8], eax
test eax, eax
jne 0x4c16f2
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x18]
cmp dword [ebp + 0x10], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x2c], 0
jbe 0x4c18bb
lea eax, [esi + 4]
lea eax, [eax + ebx*8]
mov dword [ebp - 0xc], eax
lea esi, [ecx + 4]
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 - 8], ecx
or dword [ebp - 8], 4
and al, 2
mov eax, dword [ebp - 8]
cmove eax, ecx
test dl, 4
je 0x4c1821
push 0
push 0
push 0
push dword [esi - 4]
or eax, 0x32
mov dword [ebp - 8], eax
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0xdc]
push dword [esi - 4]
call dword [ebp - 0x28]
test eax, eax
jne 0x4c19a7
mov ecx, dword [ebp - 0xc]
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 - 0x10], ebx
mov ebx, dword [ebp - 0x14]
test al, 1
je 0x4c1867
mov eax, 1
mov word [ecx], ax
mov edx, eax
movzx eax, word [esi]
jmp 0x4c186a
mov eax, dword [ebp - 0x10]
movzx edi, dx
movzx eax, ax
mov dword [ebp - 0x10], edi
mov edi, eax
mov dword [ebp - 0x1c], edi
mov edi, dword [ebp - 0x24]
test al, 2
je 0x4c188d
or edx, 2
mov word [ecx], dx
movzx eax, dx
movzx edx, word [esi]
jmp 0x4c1893
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
test dl, 4
je 0x4c189e
or eax, 4
mov word [ecx], ax
mov eax, dword [ebp - 0x2c]
inc ebx
inc eax
mov dword [ebp - 0x14], ebx
add ecx, 8
mov dword [ebp - 0x2c], eax
add esi, 8
mov dword [ebp - 0xc], ecx
cmp eax, dword [ebp + 0x10]
jb 0x4c17e2
mov esi, dword [ebp + 0x18]
test ebx, ebx
jne 0x4c19c5
cmp byte [ebp + 0x20], 0
je 0x4c1b24
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
push 0
push dword [ebp - 0x30]
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 - 0x38], eax
mov dword [ebp - 0x10], edx
cmp dword [ebp + 0x10], eax
jbe 0x4c1a80
lea ecx, [edi*8 + 6]
mov edi, dword [ebp - 0xc]
add ecx, esi
mov dword [ebp - 0x1c], ecx
movsx ebx, word [ecx]
xor esi, esi
mov ecx, dword [ebp + 0xc]
shl eax, 3
mov dword [ebp - 0x34], eax
mov dword [ebp - 8], ebx
mov dword [ebp - 0x78], esi
mov eax, dword [eax + ecx]
lea ecx, [ebp - 0x78]
push ecx
push esi
push eax
mov dword [ebp - 0x2c], eax
call edx
test eax, eax
jne 0x4c19fa
mov ecx, dword [ebp - 0x78]
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 - 0x78]
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 + 0x18], 0
movzx eax, cx
mov esi, eax
je 0x4c19f7
test edi, edi
jne 0x4c19f7
cmp dword [ebp - 0x78], edi
je 0x4c19f7
mov eax, dword [ebp + 8]
inc dword [ebp - 0x20]
push edi
push dword [eax + 0xdc]
push dword [ebp - 0x2c]
call dword [ebp - 0x28]
movzx eax, si
jmp 0x4c1a53
cmp byte [ebp - 1], 0
je 0x4c19b9
push dword [ebp - 0x18]
call dword [0x68dc20]
add esp, 4
pop ebx
pop edi
mov eax, 4
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x18]
push 0
push 0
push ebx
push esi
call fcn.004dcbf0
add esp, 0x10
mov dword [ebp - 0xc], eax
test eax, eax
jns 0x4c19e9
pop ebx
pop edi
mov eax, 0xc
pop esi
mov esp, ebp
pop ebp
ret
jle 0x4c18da
mov dword [ebp - 0x20], eax
jmp 0x4c18f2
mov ebx, dword [ebp - 8]
mov eax, dword [ebp + 8]
push 0
push dword [eax + 0xdc]
push dword [ebp - 0x2c]
call dword [ebp - 0x28]
test edi, edi
jne 0x4c1a14
movzx eax, si
jmp 0x4c1a53
mov edx, ebx
mov eax, esi
or eax, 1
and dl, 1
movzx ecx, ax
movzx eax, si
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 4
and bl, 4
mov ebx, dword [ebp - 8]
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 2
and bl, 2
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx eax, cx
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp + 0xc]
mov word [ecx + edx + 6], ax
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x1c]
inc eax
mov edx, dword [ebp - 0x10]
add ecx, 8
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x1c], ecx
cmp eax, dword [ebp + 0x10]
jb 0x4c1918
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x24]
test edi, edi
je 0x4c1b12
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4c1b12
mov ebx, dword [ebp - 0xc]
lea ecx, [ebp - 0x4c]
push ecx
push eax
call fcn.004bfe00
add esp, 8
mov dword [ebp - 0x34], eax
xor esi, esi
mov edi, 1
nop
lea ecx, [esi + 0x10]
mov edx, edi
bts edx, ecx
test eax, edx
je 0x4c1b02
lea eax, [ebp - 0x78]
mov dword [ebp - 0x78], 0
push eax
push 0
push dword [ebp + esi*4 - 0x4c]
call dword [ebp - 0x10]
test eax, eax
jne 0x4c1ae5
cmp dword [ebp + 0x18], eax
je 0x4c1ae5
test ebx, ebx
jne 0x4c1ae5
cmp dword [ebp - 0x78], ebx
je 0x4c1ae5
inc dword [ebp - 0x20]
mov eax, dword [ebp + 8]
push 0
push dword [eax + 0xdc]
push dword [ebp + esi*4 - 0x4c]
call dword [ebp - 0x28]
mov eax, dword [ebp - 0x34]
inc esi
rol edi, 1
cmp esi, 5
jb 0x4c1ab0
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x4c1a98
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
push dword [eax + 0xdc]
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
mov esi, dword [ebp + 0x18]
cmp byte [ebp - 1], 0
je 0x4c1b36
push dword [ebp - 0x18]
call dword [0x68dc20]
add esp, 4
test esi, esi
je 0x4c1b3f
mov eax, dword [ebp - 0x20]
mov dword [esi], eax
cmp byte [ebp + 0x1c], 0
je 0x4c1b94
test ebx, ebx
jne 0x4c1b94
cmp byte [ebp + 0x20], bl
jne 0x4c1b94
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], ebx
cmp dword [eax], 0xbab1e
jne 0x4c1b94
cmp byte [eax + 0xe2], bl
jne 0x4c1b94
lea ecx, [ebp - 0x10]
push ecx
push eax
call fcn.004c14a0
add esp, 8
test eax, eax
jne 0x4c1b94
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4c1b94
mov ecx, dword [ebp - 0x30]
cmp eax, ecx
jg 0x4c1b87
test eax, eax
jns 0x4c1b89
mov eax, ecx
cdq
push edx
push eax
call fcn.004dd010
add esp, 8
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret