Function at 0x525f63
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.00412773
test eax, eax
jne 0x525f86
xor eax, eax
jmp 0x5261f5
cmp dword [ebx + 4], 0xffffffff
jne 0x525fa6
push ebx
push 0
push 0x1774
call fcn.0042c564
push eax
call fcn.00525130
xor eax, eax
jmp 0x5261f5
cmp dword [0x55d2c0], 0
je 0x525fb5
push edi
call fcn.00415144
mov esi, dword [ebx + 0x904]
test esi, esi
je 0x525fe9
cmp dword [esi + 0x1c], 0xffffffff
jne 0x525fe2
mov eax, dword [esi + 0x40]
mov dword [ebp - 4], eax
push esi
push dword [ebx + 0x904]
call fcn.004c6cb6
mov dword [ebx + 0x904], eax
mov esi, dword [ebp - 4]
jmp 0x525fbb
mov esi, dword [esi + 0x40]
test esi, esi
jne 0x525fbf
cmp dword [ebx + 0x904], 0
je 0x526031
test edi, edi
je 0x52601c
cmp byte [edi], 0
je 0x52601c
push dword [ebp + 0xc]
push edi
push dword [ebx + 0x904]
call fcn.004c6a50
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x52601c
mov eax, dword [ebp - 4]
mov dword [ebx + 0x904], eax
mov eax, dword [ebx + 0x904]
mov edx, dword [eax + 0x1c]
mov dword [ebp + 0xc], edx
mov dword [eax + 0x1c], 0xffffffff
mov edi, dword [eax]
test edi, edi
je 0x5261d4
cmp byte [edi], 0
je 0x5261d4
cmp dword [0x563fdc], 0
je 0x526063
push ebx
push dword [ebp + 0xc]
push edi
call fcn.0048a100
test eax, eax
je 0x526063
mov eax, 1
jmp 0x5261f5
push 1
call fcn.00412c1c
push edi
call fcn.0054c2d0
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 0x52614a
call sub.WSOCK32.dll_WSAGetLastError
mov esi, eax
cmp esi, 0x2733
jne 0x5260dd
mov eax, dword [ebx + 0x904]
test eax, eax
je 0x5260b2
cmp edi, dword [eax]
jne 0x5260b2
mov edx, dword [ebp + 0xc]
mov dword [eax + 0x1c], edx
xor edi, edi
test edi, edi
je 0x5260d6
push 0
push edi
push dword [ebx + 0x904]
call fcn.004c6a50
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x5260d6
mov eax, dword [ebp - 4]
mov dword [ebx + 0x904], eax
xor eax, eax
jmp 0x5261f5
test esi, esi
je 0x52612a
push esi
call fcn.005269d0
push eax
push 0
push 0x1775
call fcn.0042c564
push eax
lea edx, [ebp - 0x10c]
push edx
call sub.USER32.dll_wsprintfA
add esp, 0xc
xor ecx, ecx
mov dword [0x56ac00], ecx
mov dword [0x56ac10], 1
push dword [0x55f8a0]
lea eax, [ebp - 0x10c]
push eax
push dword [ebx]
call fcn.004ef100
push ebx
call fcn.0052527e
push ebx
push 0
push 0x5e4
call fcn.0042c564
push eax
call fcn.00525130
xor eax, eax
jmp 0x5261f5
test esi, esi
jg 0x526150
xor esi, esi
cmp esi, dword [ebp - 8]
jge 0x526181
push 0
push 0
lea eax, [esi + edi]
push eax
push dword [ebx + 0x904]
call fcn.004c6b77
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x52617a
mov edx, dword [ebp - 4]
mov dword [ebx + 0x904], edx
mov byte [edi + esi], 0
mov dword [ebp - 8], esi
mov eax, dword [ebx + 0x17fc]
test eax, eax
jle 0x52619d
add eax, dword [ebp - 8]
sar eax, 1
jns 0x526195
adc eax, 0
mov dword [ebx + 0x17fc], eax
jmp 0x5261a6
mov edx, dword [ebp - 8]
mov dword [ebx + 0x17fc], edx
mov ecx, dword [ebp - 8]
add dword [ebx + 0x17f8], ecx
mov eax, dword [0x563fe0]
cmp eax, dword [ebx + 0x17f8]
jge 0x5261c2
mov dword [ebx + 0x17f8], eax
cmp byte [ebx + 0x1c9c], 0
je 0x5261d4
push ebx
push 0
push edi
call fcn.0042c20b
cmp dword [ebx + 0x904], 0
je 0x5261f0
push ebx
push 0
push 0x804c
push dword [0x56cee8]
call sub.USER32.dll_PostMessageA
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc