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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov edi, 1
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
xor edx, edx
mov dword [ebp - 8], edx
mov eax, dword [esi + 4]
test eax, eax
je 0x4d5cad
cmp byte [eax], 0x2d
jne 0x4d5cad
push 0x74
push eax
call fcn.00401278
add esp, 8
test eax, eax
je 0x4d5c7a
xor edx, edx
mov dword [ebp - 4], edx
push 0x6e
mov ecx, dword [esi + 4]
push ecx
call fcn.00401278
add esp, 8
test eax, eax
je 0x4d5c93
mov dword [ebp - 8], 1
push 0x62
mov eax, dword [esi + 4]
push eax
call fcn.00401278
add esp, 8
test eax, eax
je 0x4d5cac
mov dword [ebp - 0x10], 1
inc edi
cmp dword [esi + edi*4], 0
jne 0x4d5cc6
push 0
push 0
mov edx, dword [esi]
push edx
push 0
call fcn.0045bf34
jmp 0x4d6119
mov dword [ebp - 0xc], edi
push 0x4fc85f
mov ecx, dword [ebp - 0xc]
mov eax, dword [esi + ecx*4]
push eax
call fcn.004015a0
add esp, 8
test eax, eax
je 0x4d5d2d
push 0
mov edx, dword [0x4fc5d0]
push edx
mov ecx, dword [ebp - 0xc]
mov eax, dword [esi + ecx*4]
push eax
call fcn.004d3ed4
mov ebx, eax
test ebx, ebx
jne 0x4d5da2
push 0
push 0x145c
call fcn.0041f178
push eax
mov eax, dword [ebp - 0xc]
mov edx, dword [esi + eax*4]
push edx
push 0x4fc863
push 0x50cbd8
call sub.USER32.dll_wsprintfA
add esp, 0x10
xor eax, eax
jmp 0x4d6119
mov edx, dword [ebp - 0xc]
mov ecx, dword [esi + edx*4]
push ecx
call fcn.004d3e38
mov ebx, eax
test ebx, ebx
jne 0x4d5d6c
push 0
push 0x145d
call fcn.0041f178
push eax
mov eax, dword [ebp - 0xc]
mov edx, dword [esi + eax*4]
push edx
push 0x4fc87a
push 0x50cbd8
call sub.USER32.dll_wsprintfA
add esp, 0x10
xor eax, eax
jmp 0x4d6119
cmp dword [ebx + 0xe4], 2
je 0x4d5da2
push 0
push 0x145e
call fcn.0041f178
push eax
mov edx, dword [ebp - 0xc]
mov ecx, dword [esi + edx*4]
push ecx
push 0x4fc891
push 0x50cbd8
call sub.USER32.dll_wsprintfA
add esp, 0x10
xor eax, eax
jmp 0x4d6119
cmp dword [ebx + 0xec], 0
je 0x4d5dd1
push 0
push 0x145f
call fcn.0041f178
push eax
push 0x4fc8a8
push 0x50cbd8
call sub.USER32.dll_wsprintfA
add esp, 0xc
xor eax, eax
jmp 0x4d6119
inc edi
cmp dword [ebp - 0x10], 0
je 0x4d5df7
cmp dword [esi + edi*4], 0
je 0x4d5df7
mov edx, dword [esi + edi*4]
push edx
call fcn.00409a14
pop ecx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jg 0x4d5df6
xor ecx, ecx
mov dword [ebp - 0x10], ecx
inc edi
cmp dword [esi + edi*4], 0
jne 0x4d5e3e
cmp dword [ebp - 8], 0
jne 0x4d5e16
push 0
push 0
mov eax, dword [esi]
push eax
push 0
call fcn.0045bf34
jmp 0x4d6119
mov edx, dword [ebp + 0xc]
push esi
mov esi, 0x4fc8ba
mov edi, edx
mov eax, edi
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop esi
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00401318
pop ecx
mov edi, eax
jmp 0x4d5ee9
cmp dword [ebp - 4], 0
je 0x4d5e4c
mov eax, dword [esi + edi*4]
cmp byte [eax], 0x26
je 0x4d5e95
mov edx, dword [ebp + 0xc]
mov byte [edx], 0
push esi
mov ecx, dword [ebp + 0xc]
push ecx
push edi
call fcn.004b6b5c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp + 0xc]
push edx
call fcn.00401318
pop ecx
mov edi, eax
cmp dword [ebp - 8], 0
je 0x4d5edb
mov eax, dword [ebp + 0xc]
cmp byte [eax + edi - 1], 0xa
je 0x4d5edb
push 0x4fc8be
mov edx, dword [ebp + 0xc]
push edx
call fcn.0040123c
add esp, 8
add edi, 2
jmp 0x4d5edb
mov ecx, dword [ebp + 0x10]
push ecx
mov eax, dword [esi + edi*4]
push eax
call fcn.0041d5c8
test eax, eax
jne 0x4d5ed0
push 0
push 0x1457
call fcn.0041f178
push eax
mov edx, dword [esi + edi*4]
push edx
push 0x4fc8c2
push 0x50cbd8
call sub.USER32.dll_wsprintfA
add esp, 0x10
xor eax, eax
jmp 0x4d6119
mov edx, dword [eax]
add edx, dword [eax + 8]
mov dword [ebp - 0x14], edx
mov edi, dword [eax + 4]
cmp dword [ebp - 0x10], 0
je 0x4d5ee9
cmp edi, dword [ebp - 0x10]
jle 0x4d5ee9
mov edi, dword [ebp - 0x10]
cmp dword [ebx + 0xe4], 2
jne 0x4d60dd
cmp dword [ebx + 0xdc], 0
je 0x4d5f95
mov eax, dword [ebx + 0xe0]
add eax, edi
cmp eax, 0x4000
jle 0x4d5f3f
push 0
push 0x1458
call fcn.0041f178
push eax
mov edx, dword [ebp - 0xc]
mov ecx, dword [esi + edx*4]
push ecx
push 0x4fc8d9
push 0x50cbd8
call sub.USER32.dll_wsprintfA
add esp, 0x10
xor eax, eax
jmp 0x4d6119
mov edx, dword [ebx + 0xe0]
add edx, edi
add edx, 5
push edx
mov ecx, dword [ebx + 0xdc]
push ecx
call fcn.0040c9f0
add esp, 8
test eax, eax
jne 0x4d5f71
push 2
push 0
mov eax, dword [esi]
push eax
push 0
call fcn.0045bf34
jmp 0x4d6119
mov edx, eax
mov dword [ebx + 0xdc], edx
push edi
mov ecx, dword [ebp - 0x14]
push ecx
add edx, dword [ebx + 0xe0]
push edx
call fcn.00401128
add esp, 0xc
add dword [ebx + 0xe0], edi
jmp 0x4d5fdb
lea eax, [edi + 5]
push eax
call fcn.0040c55c
pop ecx
mov dword [ebx + 0xdc], eax
cmp dword [ebx + 0xdc], 0
jne 0x4d5fc1
push 2
push 0
mov edx, dword [esi]
push edx
push 0
call fcn.0045bf34
jmp 0x4d6119
push edi
mov ecx, dword [ebp - 0x14]
push ecx
mov eax, dword [ebx + 0xdc]
push eax
call fcn.00401128
add esp, 0xc
mov dword [ebx + 0xe0], edi
mov eax, dword [ebx + 0xe0]
cmp eax, 0x2000
jle 0x4d5fed
mov eax, 0x2000
push 0
push eax
mov edx, dword [ebx + 0xdc]
push edx
mov ecx, dword [ebx + 0x118]
push ecx
call sub.WSOCK32.dll_send
mov edi, eax
test edi, edi
jge 0x4d6060
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4d601c
cmp eax, 0x2734
jne 0x4d603a
push 0x23
push 0x438
mov eax, dword [0x4fd9ec]
push eax
mov edx, dword [ebx + 0x118]
push edx
call sub.WSOCK32.dll_WSAAsyncSelect
jmp 0x4d60dd
push 0
push 0x1459
call fcn.0041f178
push eax
push 0x4fc8f0
push 0x50cbd8
call sub.USER32.dll_wsprintfA
add esp, 0xc
xor eax, eax
jmp 0x4d6119
push 0
call fcn.0040ef0c
pop ecx
mov dword [ebx + 0x110], eax
test edi, edi
jle 0x4d60a3
add dword [ebx + 0x104], edi
cmp edi, dword [ebx + 0xe0]
jge 0x4d60a3
sub dword [ebx + 0xe0], edi
mov edx, dword [ebx + 0xe0]
push edx
mov eax, dword [ebx + 0xdc]
mov edx, eax
add edx, edi
push edx
push eax
call fcn.0040114c
add esp, 0xc
jmp 0x4d60dd
mov ecx, dword [ebx + 0xdc]
push ecx
call fcn.0040c454
pop ecx
xor eax, eax
mov dword [ebx + 0xdc], eax
xor edx, edx
mov dword [ebx + 0xe0], edx
cmp dword [0x4fb7f4], 0
je 0x4d60dd
push ebx
push 0
push 0x43a
mov ecx, dword [0x4fd9ec]
push ecx
call sub.USER32.dll_PostMessageA
push 0x4fc902
mov eax, dword [ebp - 0xc]
mov edx, dword [esi + eax*4]
push edx
call fcn.004015a0
add esp, 8
test eax, eax
je 0x4d6114
push 0
mov ecx, dword [ebx + 0x11c]
push ecx
mov eax, dword [ebp - 0xc]
mov edx, dword [esi + eax*4]
push edx
call fcn.004d3ed4
mov ebx, eax
test ebx, ebx
jne 0x4d5ee9
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc