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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, edx
mov dword [ebp - 4], ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebx + 0x3c], eax
lea ecx, [ebx + 0x20]
mov dword [ebx + 4], 3
xor eax, eax
mov dword [ebx + 0x44], esi
mov edi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
test dword [esi + 0x2c], 0x80000
je 0x527ef6
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebx + 0x54], eax
test eax, eax
jne 0x527ee9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x40ef8c
mov ecx, eax
call fcn.0052863b
or eax, 1
lea ecx, [ebx + 0x20]
or dword [ebx + 0x58], 0xffffffff
mov dword [ebx + 0x30], eax
push edi
push ecx
push edi
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 0x90]
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
jne 0x527f5d
test dword [esi + 0x2c], 0x20000
je 0x527fc1
mov dword [ebx + 0x34], edi
mov ecx, dword [esi + 0x40]
inc dword [esi + 0x3c]
inc dword [esi + 0x88]
lea eax, [ecx + 1]
mov dword [esi + 0x40], eax
test ecx, ecx
jne 0x527f50
mov eax, dword [esi + 0x2c]
test al, 4
jne 0x527f50
or eax, 4
mov dword [esi + 0x2c], eax
test al, 8
je 0x527f50
mov eax, dword [esi + 4]
inc dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, eax
inc dword [eax + 0x10]
jmp 0x528053
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x527fc1
mov dword [ebx + 0x34], edi
mov ecx, dword [esi + 0x40]
inc dword [esi + 0x3c]
inc dword [esi + 0x88]
lea eax, [ecx + 1]
mov dword [esi + 0x40], eax
test ecx, ecx
jne 0x527f9a
mov eax, dword [esi + 0x2c]
test al, 4
jne 0x527f9a
or eax, 4
mov dword [esi + 0x2c], eax
test al, 8
je 0x527f9a
mov eax, dword [esi + 4]
inc dword [eax + 4]
mov esi, dword [ebp - 4]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
inc dword [esi + 0x10]
call edi
test eax, eax
jg 0x527fb0
call edi
jmp 0x527fba
call edi
movzx eax, ax
or eax, 0x80070000
mov ecx, esi
jmp 0x528050
mov eax, edi
cmp dword [ebp + 0x10], eax
jbe 0x527fd4
mov ecx, dword [ebp + 0xc]
add edi, dword [ecx + eax*8]
inc eax
cmp eax, dword [ebp + 0x10]
jb 0x527fcb
mov dword [ebx + 0x34], edi
mov ecx, dword [esi + 0x40]
inc dword [esi + 0x3c]
inc dword [esi + 0x88]
lea eax, [ecx + 1]
mov dword [esi + 0x40], eax
test ecx, ecx
jne 0x528004
mov eax, dword [esi + 0x2c]
test al, 4
jne 0x528004
or eax, 4
mov dword [esi + 0x2c], eax
test al, 8
je 0x528004
mov eax, dword [esi + 4]
inc dword [eax + 4]
mov edi, dword [ebp - 4]
inc dword [edi + 0x10]
mov eax, dword [ebx + 0x34]
add dword [esi + 0x30], eax
test dword [esi + 0x2c], 0x80000
je 0x52805a
push 0xc
push 0xffffffffffffffff
push ebx
push 0x5265a4
push dword [ebx + 0x54]
lea eax, [ebx + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x52805a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x528044
call esi
jmp 0x52804e
call esi
movzx eax, ax
or eax, 0x80070000
mov ecx, edi
mov dword [ebx + 0x20], eax
mov edx, ebx
call fcn.00526306
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret