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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
push ebx
call fcn.0041261f
test eax, eax
jne 0x527ed2
xor eax, eax
jmp 0x528148
cmp dword [ebx + 4], 0xffffffff
jne 0x527ef2
push ebx
push 0
push 0x1774
call fcn.0042c771
push eax
call fcn.00526f48
xor eax, eax
jmp 0x528148
cmp dword [0x55f2b8], 0
je 0x527f01
push edi
call fcn.00415108
mov esi, dword [ebx + 0x908]
test esi, esi
je 0x527f35
cmp dword [esi + 0x1c], 0xffffffff
jne 0x527f2e
mov eax, dword [esi + 0x40]
mov dword [ebp - 4], eax
push esi
push dword [ebx + 0x908]
call fcn.004c6c7e
mov dword [ebx + 0x908], eax
mov esi, dword [ebp - 4]
jmp 0x527f07
mov esi, dword [esi + 0x40]
test esi, esi
jne 0x527f0b
cmp dword [ebx + 0x908], 0
je 0x527f7d
test edi, edi
je 0x527f68
cmp byte [edi], 0
je 0x527f68
push dword [ebp + 0xc]
push edi
push dword [ebx + 0x908]
call fcn.004c6a18
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x527f68
mov eax, dword [ebp - 4]
mov dword [ebx + 0x908], eax
mov eax, dword [ebx + 0x908]
mov edx, dword [eax + 0x1c]
mov dword [ebp + 0xc], edx
mov dword [eax + 0x1c], 0xffffffff
mov edi, dword [eax]
test edi, edi
je 0x528127
cmp byte [edi], 0
je 0x528127
cmp dword [0x566060], 0
je 0x527faf
push ebx
push dword [ebp + 0xc]
push edi
call fcn.00489bf0
test eax, eax
je 0x527faf
mov eax, 1
jmp 0x528148
push 1
call fcn.00412ac8
push ebx
push edi
call fcn.00527dc4
push edi
call fcn.0054e28c
pop ecx
mov dword [ebp - 8], eax
push 0
push dword [ebp - 8]
push edi
push dword [ebx + 4]
call sub.WSOCK32.dll_send
mov esi, eax
cmp esi, 0xffffffff
jne 0x52809d
call sub.WSOCK32.dll_WSAGetLastError
mov esi, eax
cmp esi, 0x2733
jne 0x528030
mov eax, dword [ebx + 0x908]
test eax, eax
je 0x528005
cmp edi, dword [eax]
jne 0x528005
mov edx, dword [ebp + 0xc]
mov dword [eax + 0x1c], edx
xor edi, edi
test edi, edi
je 0x528029
push 0
push edi
push dword [ebx + 0x908]
call fcn.004c6a18
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x528029
mov eax, dword [ebp - 4]
mov dword [ebx + 0x908], eax
xor eax, eax
jmp 0x528148
test esi, esi
je 0x52807d
push esi
call fcn.0052898c
push eax
push 0
push 0x1775
call fcn.0042c771
push eax
lea edx, [ebp - 0x10c]
push edx
call sub.USER32.dll_wsprintfA
add esp, 0xc
xor ecx, ecx
mov dword [0x56cd18], ecx
mov dword [0x56cd28], 1
push dword [0x5618ec]
lea eax, [ebp - 0x10c]
push eax
push dword [ebx]
call fcn.004f0245
push ebx
call fcn.00527096
push ebx
push 0
push 0x5e4
call fcn.0042c771
push eax
call fcn.00526f48
xor eax, eax
jmp 0x528148
test esi, esi
jg 0x5280a3
xor esi, esi
cmp esi, dword [ebp - 8]
jge 0x5280d4
push 0
push 0
lea eax, [esi + edi]
push eax
push dword [ebx + 0x908]
call fcn.004c6b3f
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x5280cd
mov edx, dword [ebp - 4]
mov dword [ebx + 0x908], edx
mov byte [edi + esi], 0
mov dword [ebp - 8], esi
mov eax, dword [ebx + 0x17fc]
test eax, eax
jle 0x5280f0
add eax, dword [ebp - 8]
sar eax, 1
jns 0x5280e8
adc eax, 0
mov dword [ebx + 0x17fc], eax
jmp 0x5280f9
mov edx, dword [ebp - 8]
mov dword [ebx + 0x17fc], edx
mov ecx, dword [ebp - 8]
add dword [ebx + 0x17f8], ecx
mov eax, dword [0x566064]
cmp eax, dword [ebx + 0x17f8]
jge 0x528115
mov dword [ebx + 0x17f8], eax
cmp byte [ebx + 0x1c9c], 0
je 0x528127
push ebx
push 0
push edi
call fcn.0042c460
cmp dword [ebx + 0x908], 0
je 0x528143
push ebx
push 0
push 0x804c
push dword [0x56f018]
call sub.USER32.dll_PostMessageA
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc