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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebx + 4], 3
mov dword [ebx + 0x2c], 0x40e07b
push esi
push edi
mov esi, eax
mov dword [ebx + 0x34], esi
xor eax, eax
lea ecx, [ebx + 0x10]
xor edx, edx
mov dword [ecx], edx
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 eax, eax
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
mov edi, 0x100000
test dword [esi + 0x1c], edi
je 0x4175d3
push edx
push edx
push edx
push edx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebx + 0x44], eax
test eax, eax
jne 0x4175c4
push str.CreateEvent
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041b8e6
pop ecx
pop ecx
mov eax, dword [ebx + 0x44]
or dword [ebx + 0x48], 0xffffffff
or eax, 1
mov dword [ebx + 0x20], eax
xor edx, edx
push edx
lea eax, [ebx + 0x10]
push eax
push edx
lea eax, [ebp - 4]
push eax
push 1
push dword [ebp + 0xc]
push dword [esi + 0x74]
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
jne 0x41763f
test dword [esi + 0x1c], 0x40000
je 0x41766c
and dword [ebx + 0x24], eax
mov eax, dword [esi + 0x34]
inc dword [esi + 0x30]
inc dword [esi + 0x6c]
lea ecx, [eax + 1]
mov dword [esi + 0x34], ecx
test eax, eax
jne 0x417625
mov eax, dword [esi + 0x1c]
test al, 0x40
jne 0x417625
or eax, 0x40
mov dword [esi + 0x1c], eax
test al, 0x20
je 0x417625
mov esi, dword [esi + 8]
inc dword [esi + 0xc]
mov ecx, dword [ebp + 8]
lea eax, [ecx + 0x18]
mov esi, dword [eax]
lea edx, [ebx + 8]
mov dword [edx], esi
mov dword [esi + 4], edx
mov dword [ebx + 0xc], eax
mov dword [eax], edx
jmp 0x4176fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x41766c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov ecx, esi
call fcn.0041b96d
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
mov dword [ecx + 8], esi
or eax, 0xffffffff
jmp 0x417704
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebx + 0x24], eax
mov eax, dword [esi + 0x34]
inc dword [esi + 0x30]
inc dword [esi + 0x6c]
lea ecx, [eax + 1]
mov dword [esi + 0x34], ecx
test eax, eax
jne 0x41769e
mov eax, dword [esi + 0x1c]
test al, 0x40
jne 0x41769e
or eax, 0x40
mov dword [esi + 0x1c], eax
test al, 0x20
je 0x41769e
mov eax, dword [esi + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
add eax, 0x18
mov edx, dword [eax]
lea ecx, [ebx + 8]
mov dword [ecx], edx
mov dword [edx + 4], ecx
mov dword [ebx + 0xc], eax
mov dword [eax], ecx
mov eax, dword [ebx + 0x24]
add dword [esi + 0x20], eax
test dword [esi + 0x1c], edi
je 0x417702
push 0xc
push 0xffffffffffffffff
push ebx
push 0x418a4e
push dword [ebx + 0x44]
lea eax, [ebx + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x417702
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x4176e9
call esi
jmp 0x4176f5
call esi
and eax, 0xffff
or eax, 0x80070000
mov ecx, dword [ebp + 8]
mov dword [ebx + 0x10], eax
mov eax, ebx
call fcn.0041bced
xor eax, eax
pop edi
pop esi
leave
ret