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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xbc
mov eax, dword [0x54300c]
xor eax, esp
mov dword [esp + 0xb8], eax
push ebx
push esi
mov eax, ecx
xor ebx, ebx
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x6c]
mov dword [esp + 0x18], ecx
mov byte [esp + 0xf], bl
push edi
mov edi, 0x3e8
mov dword [esp + 0x24], edi
test eax, eax
je 0x477b31
cmp dword [eax], 0xbab1e
jne 0x477b31
cmp byte [eax + 0xe2], bl
je 0x47783e
lea eax, [ebx + 8]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.004b3dd4
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
test eax, eax
je 0x4778ab
lea esp, [esp]
lea edx, [esp + 0x5c]
mov ecx, eax
call fcn.00477740
mov edi, eax
xor edx, edx
mov eax, 1
or esi, 0xffffffff
test edi, eax
je 0x477877
mov ecx, dword [esp + edx*4 + 0x5c]
cmp ecx, 0xffffffff
jae 0x477877
inc ebx
mov esi, ecx
mov ecx, eax
rol ecx, 0x10
test edi, ecx
je 0x47788a
cmp dword [esp + edx*4 + 0x5c], 0xffffffff
jae 0x47788a
inc ebx
jmp 0x47788f
cmp esi, 0xffffffff
je 0x477897
inc edx
rol eax, 1
cmp edx, 5
jb 0x477864
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x477850
mov edi, 0x3e8
mov esi, dword [esp + 0x18]
lea edx, [esp + 0x28]
mov ecx, esi
call fcn.004796f0
mov eax, dword [esp + 0x28]
test eax, eax
js 0x4778ce
cmp eax, 0x3e8
cmovl edi, eax
mov dword [esp + 0x24], edi
lea eax, [ebx + 1]
cmp eax, 0xa
jbe 0x47790a
shl eax, 3
push eax
call dword [0x5449e0]
mov edi, eax
add esp, 4
mov dword [esp + 0x1c], edi
test edi, edi
jne 0x477905
lea eax, [edi + 3]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.004b3dd4
mov esp, ebp
pop ebp
ret
mov byte [esp + 0x13], 1
xor edx, edx
mov dword [esp + 0x14], edx
test ebx, ebx
je 0x477a35
mov eax, dword [esi + 4]
mov dword [esp + 0x28], eax
test eax, eax
je 0x477a35
jmp 0x477930
lea edx, [esp + 0x5c]
mov ecx, eax
call fcn.00477740
mov dword [esp + 0x2c], eax
xor esi, esi
xor ecx, ecx
mov edx, 1
mov dword [esp + 0x20], ecx
or edi, 0xffffffff
mov ecx, esi
shl edx, cl
test eax, edx
je 0x47798a
mov eax, dword [esp + esi*4 + 0x5c]
cmp eax, 0xffffffff
jae 0x477984
mov ecx, dword [esp + 0x1c]
mov edi, eax
mov eax, dword [esp + 0x14]
mov edx, 1
mov dword [esp + 0x20], 0x29
mov dword [ecx + eax*8], edi
mov word [ecx + eax*8 + 4], dx
inc eax
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x20]
jmp 0x47798c
xor edx, edx
lea ecx, [esi + 0x10]
mov eax, 1
shl eax, cl
test dword [esp + 0x2c], eax
je 0x4779d7
mov eax, dword [esp + esi*4 + 0x5c]
cmp eax, 0xffffffff
jae 0x4779d7
push 0
push 0
mov edi, eax
or edx, 0x32
push 0
push edi
mov dword [esp + 0x30], edx
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [esp + 0x14]
mov edx, 4
mov ecx, dword [esp + 0x1c]
mov dword [ecx + eax*8], edi
mov word [ecx + eax*8 + 4], dx
inc eax
mov dword [esp + 0x14], eax
jmp 0x4779dc
cmp edi, 0xffffffff
je 0x477a08
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
push ecx
push dword [eax + 0xdc]
push edi
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x477b03
mov eax, dword [esp + 0x2c]
inc esi
cmp esi, 5
jb 0x477941
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 4]
mov dword [esp + 0x28], eax
test eax, eax
jne 0x477930
mov edx, dword [esp + 0x14]
test edx, edx
je 0x477a35
mov ecx, dword [esp + 0x1c]
push eax
push eax
call fcn.004923b0
add esp, 8
test eax, eax
jg 0x477a53
mov eax, dword [esp + 0x18]
push 0
push dword [esp + 0x28]
add eax, 0xdc
push 0
push eax
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
test ebx, ebx
je 0x477ac8
mov eax, dword [esp + 0x18]
mov ebx, dword [eax + 4]
mov dword [esp + 0x24], ebx
test ebx, ebx
je 0x477acc
lea edx, [esp + 0x5c]
mov ecx, ebx
call fcn.00477740
mov ebx, eax
xor esi, esi
mov edi, 1
lea ecx, [esi + 0x10]
mov edx, edi
bts edx, ecx
test ebx, edx
je 0x477ab9
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0
push eax
push 0
push dword [esp + esi*4 + 0x64]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
mov eax, dword [esp + 0x18]
push 0
push dword [eax + 0xdc]
push dword [esp + esi*4 + 0x64]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
inc esi
rol edi, 1
cmp esi, 5
jb 0x477a76
mov ebx, dword [esp + 0x24]
mov ebx, dword [ebx + 4]
mov dword [esp + 0x24], ebx
test ebx, ebx
jne 0x477a62
mov eax, dword [esp + 0x18]
push dword [eax + 0xdc]
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
cmp byte [esp + 0x13], 0
je 0x477aec
push dword [esp + 0x1c]
call dword [0x5449e8]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.004b3dd4
mov esp, ebp
pop ebp
ret
cmp byte [esp + 0x13], 0
je 0x477b17
push dword [esp + 0x1c]
call dword [0x5449e8]
add esp, 4
mov eax, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.004b3dd4
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xc4]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004b3dd4
mov esp, ebp
pop ebp
ret