Function at 0x4776a0
Capabilities:
Get socket status
Print debug messages
Send data
Send data on socket

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x168
mov dword [ebp - 0x158], ecx
mov eax, dword [ebp - 0x158]
cmp dword [eax + 0x1d8], 0
je 0x4776e1
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x158]
mov eax, dword [edx + 0x1d8]
push eax
mov ecx, dword [ebp - 0x158]
call fcn.00476dc0
jmp 0x477be5
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x158]
mov edx, dword [ecx + 0x144]
mov dword [ebp - 0x15c], edx
mov eax, dword [ebp - 0x15c]
add eax, 1
mov dword [ebp - 0x160], eax
mov ecx, dword [ebp - 0x15c]
mov dl, byte [ecx]
mov byte [ebp - 0x161], dl
add dword [ebp - 0x15c], 1
cmp byte [ebp - 0x161], 0
jne 0x477709
mov eax, dword [ebp - 0x15c]
sub eax, dword [ebp - 0x160]
mov dword [ebp - 0x168], eax
mov ecx, dword [ebp - 0x168]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 0x158]
cmp dword [ecx + 0x144], 0
jne 0x477788
mov dword [ebp - 0x13c], 0x19b
mov edx, dword [ebp - 0x13c]
mov dword [ebp - 0x138], edx
push 0x4aec94
lea eax, [ebp - 0x138]
push eax
call sub.MSVCR90.dll__CxxThrowException
cmp dword [ebp - 8], 0
jle 0x477b34
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x124], 0
jmp 0x4777b7
mov ecx, dword [ebp - 0x124]
add ecx, 1
mov dword [ebp - 0x124], ecx
mov edx, dword [ebp - 0x124]
cmp edx, dword [ebp - 0x120]
jae 0x4777e4
mov eax, dword [ebp - 0x124]
mov ecx, dword [ebp - 0x158]
mov edx, dword [ebp + eax*4 - 0x11c]
cmp edx, dword [ecx + 0x14c]
jne 0x4777e2
jmp 0x4777e4
jmp 0x4777a8
mov eax, dword [ebp - 0x124]
cmp eax, dword [ebp - 0x120]
jne 0x477823
cmp dword [ebp - 0x120], 0x40
jae 0x477823
mov ecx, dword [ebp - 0x124]
mov edx, dword [ebp - 0x158]
mov eax, dword [edx + 0x14c]
mov dword [ebp + ecx*4 - 0x11c], eax
mov ecx, dword [ebp - 0x120]
add ecx, 1
mov dword [ebp - 0x120], ecx
xor edx, edx
jne 0x47779c
lea eax, [ebp - 0x10]
push eax
push 0
lea ecx, [ebp - 0x120]
push ecx
push 0
mov edx, dword [ebp - 0x158]
mov eax, dword [edx + 0x14c]
add eax, 1
push eax
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x477922
mov dword [ebp - 0x128], 0
jmp 0x477878
mov ecx, dword [ebp - 0x128]
add ecx, 1
mov dword [ebp - 0x128], ecx
mov edx, dword [ebp - 0x128]
cmp edx, dword [ebp - 0x120]
jae 0x4778f3
mov eax, dword [ebp - 0x128]
mov ecx, dword [ebp - 0x158]
mov edx, dword [ebp + eax*4 - 0x11c]
cmp edx, dword [ecx + 0x14c]
jne 0x4778ee
mov eax, dword [ebp - 0x120]
sub eax, 1
cmp dword [ebp - 0x128], eax
jae 0x4778dd
mov ecx, dword [ebp - 0x128]
mov edx, dword [ebp - 0x128]
mov eax, dword [ebp + edx*4 - 0x118]
mov dword [ebp + ecx*4 - 0x11c], eax
mov ecx, dword [ebp - 0x128]
add ecx, 1
mov dword [ebp - 0x128], ecx
jmp 0x4778a1
mov edx, dword [ebp - 0x120]
sub edx, 1
mov dword [ebp - 0x120], edx
jmp 0x4778f3
jmp 0x477869
xor eax, eax
jne 0x47785d
mov dword [ebp - 0x144], 0x6d
mov ecx, dword [ebp - 0x144]
mov dword [ebp - 0x140], ecx
push 0x4aec94
lea edx, [ebp - 0x140]
push edx
call sub.MSVCR90.dll__CxxThrowException
cmp dword [ebp - 4], 0
jne 0x4779f1
mov dword [ebp - 0x12c], 0
jmp 0x477947
mov eax, dword [ebp - 0x12c]
add eax, 1
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x12c]
cmp ecx, dword [ebp - 0x120]
jae 0x4779c2
mov edx, dword [ebp - 0x12c]
mov eax, dword [ebp - 0x158]
mov ecx, dword [ebp + edx*4 - 0x11c]
cmp ecx, dword [eax + 0x14c]
jne 0x4779bd
mov edx, dword [ebp - 0x120]
sub edx, 1
cmp dword [ebp - 0x12c], edx
jae 0x4779ac
mov eax, dword [ebp - 0x12c]
mov ecx, dword [ebp - 0x12c]
mov edx, dword [ebp + ecx*4 - 0x118]
mov dword [ebp + eax*4 - 0x11c], edx
mov eax, dword [ebp - 0x12c]
add eax, 1
mov dword [ebp - 0x12c], eax
jmp 0x477970
mov ecx, dword [ebp - 0x120]
sub ecx, 1
mov dword [ebp - 0x120], ecx
jmp 0x4779c2
jmp 0x477938
xor edx, edx
jne 0x47792c
mov dword [ebp - 0x14c], 0x192
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x148], eax
push 0x4aec94
lea ecx, [ebp - 0x148]
push ecx
call sub.MSVCR90.dll__CxxThrowException
cmp dword [ebp - 4], 0
je 0x477b2f
lea edx, [ebp - 0x120]
push edx
mov eax, dword [ebp - 0x158]
mov ecx, dword [eax + 0x14c]
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x477b2f
push 0
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x158]
mov ecx, dword [eax + 0x144]
add ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x158]
mov eax, dword [edx + 0x14c]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x477a58
cmp dword [ebp - 4], 0
jne 0x477b1d
mov dword [ebp - 0x130], 0
jmp 0x477a73
mov ecx, dword [ebp - 0x130]
add ecx, 1
mov dword [ebp - 0x130], ecx
mov edx, dword [ebp - 0x130]
cmp edx, dword [ebp - 0x120]
jae 0x477aee
mov eax, dword [ebp - 0x130]
mov ecx, dword [ebp - 0x158]
mov edx, dword [ebp + eax*4 - 0x11c]
cmp edx, dword [ecx + 0x14c]
jne 0x477ae9
mov eax, dword [ebp - 0x120]
sub eax, 1
cmp dword [ebp - 0x130], eax
jae 0x477ad8
mov ecx, dword [ebp - 0x130]
mov edx, dword [ebp - 0x130]
mov eax, dword [ebp + edx*4 - 0x118]
mov dword [ebp + ecx*4 - 0x11c], eax
mov ecx, dword [ebp - 0x130]
add ecx, 1
mov dword [ebp - 0x130], ecx
jmp 0x477a9c
mov edx, dword [ebp - 0x120]
sub edx, 1
mov dword [ebp - 0x120], edx
jmp 0x477aee
jmp 0x477a64
xor eax, eax
jne 0x477a58
mov dword [ebp - 0x154], 0x66
mov ecx, dword [ebp - 0x154]
mov dword [ebp - 0x150], ecx
push 0x4aec94
lea edx, [ebp - 0x150]
push edx
call sub.MSVCR90.dll__CxxThrowException
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 4]
mov dword [ebp - 0x14], ecx
jmp 0x477788
mov edx, dword [ebp - 0x158]
mov eax, dword [edx + 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 0x134], 0
jmp 0x477b62
mov ecx, dword [ebp - 0x134]
add ecx, 1
mov dword [ebp - 0x134], ecx
mov edx, dword [ebp - 0x134]
cmp edx, dword [ebp - 0x120]
jae 0x477bdd
mov eax, dword [ebp - 0x134]
mov ecx, dword [ebp - 0x158]
mov edx, dword [ebp + eax*4 - 0x11c]
cmp edx, dword [ecx + 0x14c]
jne 0x477bd8
mov eax, dword [ebp - 0x120]
sub eax, 1
cmp dword [ebp - 0x134], eax
jae 0x477bc7
mov ecx, dword [ebp - 0x134]
mov edx, dword [ebp - 0x134]
mov eax, dword [ebp + edx*4 - 0x118]
mov dword [ebp + ecx*4 - 0x11c], eax
mov ecx, dword [ebp - 0x134]
add ecx, 1
mov dword [ebp - 0x134], ecx
jmp 0x477b8b
mov edx, dword [ebp - 0x120]
sub edx, 1
mov dword [ebp - 0x120], edx
jmp 0x477bdd
jmp 0x477b53
xor eax, eax
jne 0x477b47
mov esp, ebp
pop ebp
ret 4