Function at 0x4a4398
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 0x4a440d
cmp byte [eax], 0x2d
jne 0x4a440d
push 0x74
push eax
call fcn.004bce0c
add esp, 8
test eax, eax
je 0x4a43da
xor edx, edx
mov dword [ebp - 4], edx
push 0x6e
mov ecx, dword [esi + 4]
push ecx
call fcn.004bce0c
add esp, 8
test eax, eax
je 0x4a43f3
mov dword [ebp - 8], 1
push 0x62
mov eax, dword [esi + 4]
push eax
call fcn.004bce0c
add esp, 8
test eax, eax
je 0x4a440c
mov dword [ebp - 0x10], 1
inc edi
cmp dword [esi + edi*4], 0
jne 0x4a4426
push 0
push 0
mov edx, dword [esi]
push edx
push 0
call fcn.0043e834
jmp 0x4a4879
mov dword [ebp - 0xc], edi
push 0x4d3323
mov ecx, dword [ebp - 0xc]
mov eax, dword [esi + ecx*4]
push eax
call fcn.004bd0dc
add esp, 8
test eax, eax
je 0x4a448d
push 0
mov edx, dword [0x4d3094]
push edx
mov ecx, dword [ebp - 0xc]
mov eax, dword [esi + ecx*4]
push eax
call fcn.004a26b0
mov ebx, eax
test ebx, ebx
jne 0x4a4502
push 0
push 0x145c
call fcn.0040a8fc
push eax
mov eax, dword [ebp - 0xc]
mov edx, dword [esi + eax*4]
push edx
push 0x4d3327
push 0x4dea10
call sub.USER32.dll_wsprintfA
add esp, 0x10
xor eax, eax
jmp 0x4a4879
mov edx, dword [ebp - 0xc]
mov ecx, dword [esi + edx*4]
push ecx
call fcn.004a2614
mov ebx, eax
test ebx, ebx
jne 0x4a44cc
push 0
push 0x145d
call fcn.0040a8fc
push eax
mov eax, dword [ebp - 0xc]
mov edx, dword [esi + eax*4]
push edx
push 0x4d333e
push 0x4dea10
call sub.USER32.dll_wsprintfA
add esp, 0x10
xor eax, eax
jmp 0x4a4879
cmp dword [ebx + 0xe4], 2
je 0x4a4502
push 0
push 0x145e
call fcn.0040a8fc
push eax
mov edx, dword [ebp - 0xc]
mov ecx, dword [esi + edx*4]
push ecx
push 0x4d3355
push 0x4dea10
call sub.USER32.dll_wsprintfA
add esp, 0x10
xor eax, eax
jmp 0x4a4879
cmp dword [ebx + 0xec], 0
je 0x4a4531
push 0
push 0x145f
call fcn.0040a8fc
push eax
push 0x4d336c
push 0x4dea10
call sub.USER32.dll_wsprintfA
add esp, 0xc
xor eax, eax
jmp 0x4a4879
inc edi
cmp dword [ebp - 0x10], 0
je 0x4a4557
cmp dword [esi + edi*4], 0
je 0x4a4557
mov edx, dword [esi + edi*4]
push edx
call fcn.004c4ccc
pop ecx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jg 0x4a4556
xor ecx, ecx
mov dword [ebp - 0x10], ecx
inc edi
cmp dword [esi + edi*4], 0
jne 0x4a459e
cmp dword [ebp - 8], 0
jne 0x4a4576
push 0
push 0
mov eax, dword [esi]
push eax
push 0
call fcn.0043e834
jmp 0x4a4879
mov edx, dword [ebp + 0xc]
push esi
mov esi, 0x4d337e
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.004bceac
pop ecx
mov edi, eax
jmp 0x4a4649
cmp dword [ebp - 4], 0
je 0x4a45ac
mov eax, dword [esi + edi*4]
cmp byte [eax], 0x26
je 0x4a45f5
mov edx, dword [ebp + 0xc]
mov byte [edx], 0
push esi
mov ecx, dword [ebp + 0xc]
push ecx
push edi
call fcn.00488944
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp + 0xc]
push edx
call fcn.004bceac
pop ecx
mov edi, eax
cmp dword [ebp - 8], 0
je 0x4a463b
mov eax, dword [ebp + 0xc]
cmp byte [eax + edi - 1], 0xa
je 0x4a463b
push 0x4d3382
mov edx, dword [ebp + 0xc]
push edx
call fcn.004bcdd0
add esp, 8
add edi, 2
jmp 0x4a463b
mov ecx, dword [ebp + 0x10]
push ecx
mov eax, dword [esi + edi*4]
push eax
call fcn.00491a5c
test eax, eax
jne 0x4a4630
push 0
push 0x1457
call fcn.0040a8fc
push eax
mov edx, dword [esi + edi*4]
push edx
push 0x4d3386
push 0x4dea10
call sub.USER32.dll_wsprintfA
add esp, 0x10
xor eax, eax
jmp 0x4a4879
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 0x4a4649
cmp edi, dword [ebp - 0x10]
jle 0x4a4649
mov edi, dword [ebp - 0x10]
cmp dword [ebx + 0xe4], 2
jne 0x4a483d
cmp dword [ebx + 0xdc], 0
je 0x4a46f5
mov eax, dword [ebx + 0xe0]
add eax, edi
cmp eax, 0x4000
jle 0x4a469f
push 0
push 0x1458
call fcn.0040a8fc
push eax
mov edx, dword [ebp - 0xc]
mov ecx, dword [esi + edx*4]
push ecx
push str.__sockwrite:__s__s
push 0x4dea10
call sub.USER32.dll_wsprintfA
add esp, 0x10
xor eax, eax
jmp 0x4a4879
mov edx, dword [ebx + 0xe0]
add edx, edi
add edx, 5
push edx
mov ecx, dword [ebx + 0xdc]
push ecx
call fcn.004c7a38
add esp, 8
test eax, eax
jne 0x4a46d1
push 2
push 0
mov eax, dword [esi]
push eax
push 0
call fcn.0043e834
jmp 0x4a4879
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.004bccbc
add esp, 0xc
add dword [ebx + 0xe0], edi
jmp 0x4a473b
lea eax, [edi + 5]
push eax
call fcn.004c75a4
pop ecx
mov dword [ebx + 0xdc], eax
cmp dword [ebx + 0xdc], 0
jne 0x4a4721
push 2
push 0
mov edx, dword [esi]
push edx
push 0
call fcn.0043e834
jmp 0x4a4879
push edi
mov ecx, dword [ebp - 0x14]
push ecx
mov eax, dword [ebx + 0xdc]
push eax
call fcn.004bccbc
add esp, 0xc
mov dword [ebx + 0xe0], edi
mov eax, dword [ebx + 0xe0]
cmp eax, 0x2000
jle 0x4a474d
mov eax, 0x2000
push 0
push eax
mov edx, dword [ebx + 0xdc]
push edx
mov ecx, dword [ebx + 0x114]
push ecx
call sub.WSOCK32.dll_send
mov edi, eax
test edi, edi
jge 0x4a47c0
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4a477c
cmp eax, 0x2734
jne 0x4a479a
push 0x23
push 0x438
mov eax, dword [0x4d429c]
push eax
mov edx, dword [ebx + 0x114]
push edx
call sub.WSOCK32.dll_WSAAsyncSelect
jmp 0x4a483d
push 0
push 0x1459
call fcn.0040a8fc
push eax
push str.__sockwrite:__s
push 0x4dea10
call sub.USER32.dll_wsprintfA
add esp, 0xc
xor eax, eax
jmp 0x4a4879
push 0
call fcn.004c92e8
pop ecx
mov dword [ebx + 0x10c], eax
test edi, edi
jle 0x4a4803
add dword [ebx + 0x104], edi
cmp edi, dword [ebx + 0xe0]
jge 0x4a4803
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.004bcce0
add esp, 0xc
jmp 0x4a483d
mov ecx, dword [ebx + 0xdc]
push ecx
call fcn.004c749c
pop ecx
xor eax, eax
mov dword [ebx + 0xdc], eax
xor edx, edx
mov dword [ebx + 0xe0], edx
cmp dword [0x4d2374], 0
je 0x4a483d
push ebx
push 0
push 0x43a
mov ecx, dword [0x4d429c]
push ecx
call sub.USER32.dll_PostMessageA
push 0x4d33c6
mov eax, dword [ebp - 0xc]
mov edx, dword [esi + eax*4]
push edx
call fcn.004bd0dc
add esp, 8
test eax, eax
je 0x4a4874
push 0
mov ecx, dword [ebx + 0x118]
push ecx
mov eax, dword [ebp - 0xc]
mov edx, dword [esi + eax*4]
push edx
call fcn.004a26b0
mov ebx, eax
test ebx, ebx
jne 0x4a4649
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc