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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf8
mov eax, dword [0x718924]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp + 0x18]
push edi
mov dword [ebp - 0xf4], eax
xor edi, edi
mov dword [ebp - 0xc4], ebx
lea eax, [ebp - 0x88]
mov dword [ebp - 0xd4], edi
mov dword [ebp - 0xcc], eax
mov byte [ebp - 0xb5], 0
movups xmmword [ebp - 0x24], xmm0
movups xmmword [ebp - 0x14], xmm0
test ebx, ebx
je 0x515a8c
cmp dword [ebx], 0xbab1e
jne 0x515a8c
cmp byte [ebx + 0x10b], 0
je 0x515346
lea eax, [edi + 8]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb998
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0xec], esi
test esi, esi
jns 0x51536a
pop esi
pop edi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb998
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 4]
mov dword [ebp - 0xd8], eax
test eax, eax
je 0x5153cb
lea ecx, [ebp - 0x38]
push ecx
push eax
call fcn.00513c00
add esp, 8
mov ebx, eax
xor eax, eax
mov esi, 1
nop dword [eax]
lea ecx, [eax + 0x10]
mov edx, esi
bts edx, ecx
test ebx, edx
je 0x5153ac
cmp dword [ebp + eax*4 - 0x38], 0xffffffff
jae 0x5153ac
inc eax
rol esi, 1
inc edi
cmp eax, 5
jb 0x515390
mov eax, dword [ebp - 0xd8]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0xd8], eax
test eax, eax
jne 0x515377
mov ebx, dword [ebp - 0xc4]
mov esi, dword [ebp - 0xec]
lea eax, [ebp - 0xc0]
push eax
push ebx
call fcn.005151c0
mov eax, dword [ebp - 0xc0]
add esp, 8
test eax, eax
js 0x5153f0
cmp eax, esi
cmovl esi, eax
mov dword [ebp - 0xec], esi
mov esi, dword [ebp + 0x10]
mov eax, edi
add edi, esi
mov dword [ebp - 0xd8], eax
cmp edi, 0xa
jbe 0x515442
lea eax, [edi*8]
push eax
call dword [0x7192f0]
mov edi, eax
add esp, 4
mov dword [ebp - 0xcc], edi
test edi, edi
jne 0x515433
pop esi
lea eax, [edi + 3]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb998
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xd8]
mov byte [ebp - 0xb5], 1
jmp 0x515448
lea edi, [ebp - 0x88]
xor ecx, ecx
test eax, eax
mov eax, dword [sym.imp.WS2_32.dll_WSAEventSelect]
mov dword [ebp - 0xd0], ecx
mov dword [ebp - 0xe8], eax
je 0x5155bd
mov eax, dword [ebx + 4]
mov dword [ebp - 0xbc], eax
test eax, eax
je 0x5155bd
lea ecx, [ebp - 0x38]
push ecx
push eax
call fcn.00513c00
mov ebx, eax
add esp, 8
mov eax, dword [ebp - 0xd0]
xor esi, esi
mov dword [ebp - 0xc8], ebx
lea eax, [edi + eax*8]
mov dword [ebp - 0xdc], eax
nop word [eax + eax]
mov ecx, esi
mov edx, 1
shl edx, cl
lea ecx, [esi + 0x10]
mov eax, edx
bts eax, ecx
test ebx, eax
je 0x515597
mov eax, dword [ebp + esi*4 - 0x38]
cmp eax, 0xffffffff
jae 0x515597
mov ebx, dword [ebp - 0xdc]
mov edi, ebx
inc dword [ebp - 0xd0]
add ebx, 8
mov dword [ebp - 0xdc], ebx
xor ebx, ebx
mov dword [edi], eax
xor eax, eax
mov word [edi + 4], ax
lea eax, [ebx + 1]
test dword [ebp - 0xc8], edx
je 0x5154f9
lea ebx, [eax + 0x28]
mov word [edi + 4], ax
shl eax, cl
test dword [ebp - 0xc8], eax
je 0x515568
mov eax, dword [ebp + esi*4 - 0x38]
lea ecx, [ebp - 0xc0]
push ecx
lea ecx, [ebp - 0xe0]
mov dword [ebp - 0xe4], eax
push ecx
push 0x1008
xorps xmm0, xmm0
mov dword [ebp - 0xc0], 4
push 0xffff
push eax
or ebx, 0x32
movups xmmword [ebp - 0x24], xmm0
movups xmmword [ebp - 0x14], xmm0
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x515563
cmp dword [ebp - 0xe0], 1
jne 0x515563
push eax
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0xe4]
call dword [sym.imp.WS2_32.dll_send]
or word [edi + 4], 4
mov eax, dword [ebp - 0xc4]
push ebx
push dword [eax + 0x104]
push dword [ebp + esi*4 - 0x38]
call dword [ebp - 0xe8]
test eax, eax
jne 0x51572f
mov ebx, dword [ebp - 0xc8]
inc esi
cmp esi, 5
jb 0x5154a0
mov eax, dword [ebp - 0xbc]
mov edi, dword [ebp - 0xcc]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0xbc], eax
test eax, eax
jne 0x515474
mov ecx, dword [ebp - 0xd0]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0xbc], 0
test esi, esi
je 0x5156f1
mov esi, dword [ebp - 0xf0]
lea edi, [edi + ecx*8]
add edi, 4
add esi, 4
nop
movzx edx, word [esi]
mov al, dl
and al, 1
movzx ecx, al
mov al, dl
neg ecx
sbb ecx, ecx
and ecx, 0x29
mov ebx, ecx
or ebx, 4
and al, 2
cmove ebx, ecx
test dl, 4
je 0x515661
mov eax, dword [esi - 4]
lea ecx, [ebp - 0xe4]
push ecx
lea ecx, [ebp - 0xe0]
mov dword [ebp - 0xc0], eax
push ecx
push 0x1008
xorps xmm0, xmm0
mov dword [ebp - 0xe4], 4
push 0xffff
push eax
or ebx, 0x32
movups xmmword [ebp - 0x24], xmm0
movups xmmword [ebp - 0x14], xmm0
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x515661
cmp dword [ebp - 0xe0], 1
jne 0x515661
push eax
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0xc0]
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [ebp - 0xc4]
push ebx
push dword [eax + 0x104]
push dword [esi - 4]
call dword [ebp - 0xe8]
test eax, eax
jne 0x51572f
mov eax, dword [esi - 4]
xor ecx, ecx
mov dword [edi - 4], eax
xor eax, eax
mov word [edi], ax
movzx eax, word [esi]
mov edx, eax
test al, 1
je 0x5156a2
mov eax, 1
mov word [edi], ax
mov ecx, eax
movzx edx, word [esi]
movzx eax, dx
movzx edx, cx
mov ebx, eax
test al, 2
je 0x5156ba
or ecx, 2
mov word [edi], cx
movzx ebx, word [esi]
movzx edx, cx
test bl, 4
je 0x5156c5
or edx, 4
mov word [edi], dx
mov eax, dword [ebp - 0xbc]
add edi, 8
mov ecx, dword [ebp - 0xd0]
inc eax
inc ecx
mov dword [ebp - 0xbc], eax
add esi, 8
mov dword [ebp - 0xd0], ecx
cmp eax, dword [ebp + 0x10]
jb 0x5155e0
mov esi, dword [ebp + 0x10]
test ecx, ecx
je 0x5159e6
mov ebx, dword [ebp - 0xcc]
push 0
push 0
push ecx
push ebx
call fcn.00534a10
mov edi, eax
add esp, 0x10
mov dword [ebp - 0xf8], edi
test edi, edi
jns 0x51575d
pop esi
pop edi
mov eax, 0xc
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb998
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0xb5], 0
je 0x515747
push dword [ebp - 0xcc]
call dword [0x7192f4]
add esp, 4
pop esi
pop edi
mov eax, 4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb998
mov esp, ebp
pop ebp
ret
jle 0x515767
mov dword [ebp - 0xd4], edi
jmp 0x515785
mov eax, dword [ebp - 0xc4]
push 0
push dword [ebp - 0xec]
add eax, 0x104
push 0
push eax
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
mov edx, dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
xor eax, eax
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xc0], edx
test esi, esi
je 0x515903
mov ecx, dword [ebp - 0xd8]
lea ecx, [ecx*8 + 6]
add ecx, ebx
mov dword [ebp - 0xdc], ecx
nop word [eax + eax]
movsx ebx, word [ecx]
xor esi, esi
mov ecx, dword [ebp - 0xf0]
shl eax, 3
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xc8], ebx
mov dword [ebp - 0xb4], esi
mov eax, dword [eax + ecx]
lea ecx, [ebp - 0xb4]
push ecx
push esi
push eax
mov dword [ebp - 0xe4], eax
call edx
test eax, eax
jne 0x515862
mov ecx, dword [ebp - 0xb4]
mov eax, esi
test cl, 0x29
mov ebx, ecx
setne al
movzx edx, ax
mov eax, edx
or eax, 4
and bl, 0x32
mov ebx, dword [ebp - 0xb4]
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 2
and bl, 4
movzx ecx, ax
mov eax, edx
cmove ecx, eax
cmp dword [ebp - 0xf4], 0
movzx eax, cx
mov esi, eax
je 0x51585c
test edi, edi
jne 0x51585c
mov ebx, dword [ebp - 0xc8]
cmp dword [ebp - 0xb4], edi
je 0x515862
inc dword [ebp - 0xd4]
jmp 0x515862
mov ebx, dword [ebp - 0xc8]
mov eax, dword [ebp - 0xc4]
push 0
push dword [eax + 0x104]
push dword [ebp - 0xe4]
call dword [ebp - 0xe8]
test edi, edi
jne 0x515885
movzx eax, si
jmp 0x5158c7
mov edx, ebx
mov eax, esi
or eax, 1
and dl, 1
movzx ecx, ax
movzx eax, si
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 4
and bl, 4
mov ebx, dword [ebp - 0xc8]
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 2
and bl, 2
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx eax, cx
mov ecx, dword [ebp - 0xe0]
mov edx, dword [ebp - 0xf0]
mov word [ecx + edx + 6], ax
mov eax, dword [ebp - 0xbc]
mov ecx, dword [ebp - 0xdc]
inc eax
mov edx, dword [ebp - 0xc0]
add ecx, 8
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xdc], ecx
cmp eax, dword [ebp + 0x10]
jb 0x5157c0
cmp dword [ebp - 0xd8], 0
je 0x5159d4
mov eax, dword [ebp - 0xc4]
mov eax, dword [eax + 4]
mov dword [ebp - 0xbc], eax
test eax, eax
je 0x5159d4
mov ebx, dword [ebp - 0xf8]
nop dword [eax]
lea ecx, [ebp - 0x38]
push ecx
push eax
call fcn.00513c00
add esp, 8
mov dword [ebp - 0xf8], eax
xor esi, esi
mov edi, 1
nop word [eax + eax]
lea ecx, [esi + 0x10]
mov edx, edi
bts edx, ecx
test eax, edx
je 0x5159bd
lea eax, [ebp - 0xb4]
mov dword [ebp - 0xb4], 0
push eax
push 0
push dword [ebp + esi*4 - 0x38]
call dword [ebp - 0xc0]
test eax, eax
jne 0x515997
cmp dword [ebp - 0xf4], eax
je 0x515997
test ebx, ebx
jne 0x515997
cmp dword [ebp - 0xb4], ebx
je 0x515997
inc dword [ebp - 0xd4]
mov eax, dword [ebp - 0xc4]
push 0
push dword [eax + 0x104]
push dword [ebp + esi*4 - 0x38]
call dword [ebp - 0xe8]
mov eax, dword [ebp - 0xf8]
inc esi
rol edi, 1
cmp esi, 5
jb 0x515950
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0xbc], eax
test eax, eax
jne 0x515930
mov eax, dword [ebp - 0xc4]
push dword [eax + 0x104]
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
cmp byte [ebp - 0xb5], 0
je 0x5159fe
push dword [ebp - 0xcc]
call dword [0x7192f4]
add esp, 4
mov ecx, dword [ebp - 0xf4]
test ecx, ecx
je 0x515a10
mov eax, dword [ebp - 0xd4]
mov dword [ecx], eax
cmp byte [ebp + 0x1c], 0
je 0x515a79
cmp dword [ebp - 0xd0], 0
jne 0x515a79
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0xc0], 0
cmp dword [eax], 0xbab1e
jne 0x515a79
cmp byte [eax + 0x10b], 0
jne 0x515a79
lea ecx, [ebp - 0xc0]
push ecx
push eax
call fcn.005151c0
add esp, 8
test eax, eax
jne 0x515a79
mov eax, dword [ebp - 0xc0]
test eax, eax
je 0x515a79
mov ecx, dword [ebp - 0xec]
cmp eax, ecx
jg 0x515a6c
test eax, eax
jns 0x515a6e
mov eax, ecx
cdq
push edx
push eax
call fcn.00534ec0
add esp, 8
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb998
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop ebx
call fcn.004cb998
mov esp, ebp
pop ebp
ret