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

Disassembly:
sub esp, 0xbc
mov eax, dword [0x615e80]
xor eax, esp
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0xc4]
push ebp
push esi
mov esi, dword [esp + 0xc8]
xor ebp, ebp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xd8]
mov dword [esp + 0x14], esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ebp
mov byte [esp + 0xb], 0
push edi
lea edi, [esp + 0x74]
mov dword [esp + 0x20], edi
test esi, esi
je 0x52a127
cmp dword [esi], 0xbab1e
jne 0x52a127
cmp byte [esi + 0xe2], 0
je 0x529b07
pop edi
pop esi
lea eax, [ebp + 8]
pop ebp
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.00573140
add esp, 0xbc
ret
cmp dword [esp + 0xd8], ebp
jge 0x529b2d
pop edi
pop esi
mov eax, 0xa
pop ebp
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.00573140
add esp, 0xbc
ret
push ebx
mov ebx, dword [esi + 4]
test ebx, ebx
je 0x529b96
lea eax, [esp + 0x64]
push eax
push ebx
call fcn.005281e0
add esp, 8
mov edi, eax
xor edx, edx
mov eax, 1
nop dword [eax]
or esi, 0xffffffff
test edi, eax
je 0x529b63
mov ecx, dword [esp + edx*4 + 0x64]
cmp ecx, 0xffffffff
jae 0x529b63
inc ebp
mov esi, ecx
mov ecx, eax
rol ecx, 0x10
test edi, ecx
je 0x529b76
cmp dword [esp + edx*4 + 0x64], 0xffffffff
jae 0x529b76
inc ebp
jmp 0x529b7b
cmp esi, 0xffffffff
je 0x529b83
inc edx
rol eax, 1
cmp edx, 5
jb 0x529b50
mov ebx, dword [ebx + 4]
mov dword [esp + 0x2c], ebp
test ebx, ebx
jne 0x529b35
mov esi, dword [esp + 0x1c]
lea edi, [esp + 0x78]
lea eax, [esp + 0x14]
push eax
push esi
call fcn.00529980
mov eax, dword [esp + 0x1c]
add esp, 8
test eax, eax
js 0x529bbf
mov ecx, dword [esp + 0xdc]
cmp eax, ecx
cmovl ecx, eax
mov dword [esp + 0xdc], ecx
mov eax, dword [esp + 0xd8]
add eax, ebp
cmp byte [esp + 0xe8], 0
lea ecx, [eax + 1]
cmove ecx, eax
cmp ecx, 0xa
jbe 0x529c17
lea eax, [ecx*8]
push eax
call dword [0x615e24]
mov edi, eax
add esp, 4
mov dword [esp + 0x24], edi
test edi, edi
jne 0x529c12
lea eax, [edi + 3]
pop ebx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.00573140
add esp, 0xbc
ret
mov byte [esp + 0x13], 1
xor ebx, ebx
mov dword [esp + 0x20], ebx
test ebp, ebp
je 0x529d1b
mov eax, dword [esi + 4]
mov dword [esp + 0x14], eax
test eax, eax
je 0x529d1b
lea ecx, [esp + 0x64]
push ecx
push eax
call fcn.005281e0
add esp, 8
mov dword [esp + 0x18], eax
xor esi, esi
nop dword [eax + eax]
mov edx, 1
mov ecx, esi
shl edx, cl
or edi, 0xffffffff
xor ebx, ebx
test eax, edx
je 0x529c8c
mov eax, dword [esp + esi*4 + 0x64]
cmp eax, 0xffffffff
jae 0x529c8c
mov ecx, dword [esp + 0x24]
mov edi, eax
mov eax, dword [esp + 0x20]
mov edx, 0x300
mov ebx, 0x29
mov dword [ecx + eax*8], edi
mov word [ecx + eax*8 + 4], dx
inc eax
mov dword [esp + 0x20], eax
lea ecx, [esi + 0x10]
mov eax, 1
shl eax, cl
test dword [esp + 0x18], eax
je 0x529cd3
mov eax, dword [esp + esi*4 + 0x64]
cmp eax, 0xffffffff
jae 0x529cd3
push 0
push 0
mov edi, eax
or ebx, 0x32
push 0
push edi
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [esp + 0x20]
mov edx, 0x10
mov ecx, dword [esp + 0x24]
mov dword [ecx + eax*8], edi
mov word [ecx + eax*8 + 4], dx
inc eax
mov dword [esp + 0x20], eax
jmp 0x529cd8
cmp edi, 0xffffffff
je 0x529d00
mov eax, dword [esp + 0x1c]
push ebx
push dword [eax + 0xdc]
push edi
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x529e2d
mov eax, dword [esp + 0x18]
inc esi
cmp esi, 5
jb 0x529c50
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x529c34
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
cmp dword [esp + 0xd8], 0
mov dword [esp + 0x18], 0
jbe 0x529e14
mov esi, dword [esp + 0x30]
lea eax, [ebx*8 + 4]
add eax, edi
add esi, 4
mov dword [esp + 0x14], eax
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 edi, ecx
or edi, 4
and al, 2
cmove edi, ecx
test dl, 4
je 0x529d79
push 0
push 0
push 0
push dword [esi - 4]
or edi, 0x32
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [esp + 0x1c]
push edi
push dword [eax + 0xdc]
push dword [esi - 4]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x529e2d
mov ecx, dword [esp + 0x14]
xor edx, edx
mov eax, dword [esi - 4]
mov dword [ecx - 4], eax
xor eax, eax
mov word [ecx], ax
movzx eax, word [esi]
mov edi, eax
test al, 1
je 0x529dbc
mov eax, 0x300
mov word [ecx], ax
mov edx, eax
movzx edi, word [esi]
movzx eax, di
movzx edi, dx
mov ebx, eax
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x20]
test al, 2
je 0x529de1
or edx, 0x400
mov word [ecx], dx
movzx eax, word [esi]
movzx edi, dx
jmp 0x529de5
mov eax, dword [esp + 0x14]
test al, 4
je 0x529def
or edi, 0x10
mov word [ecx], di
mov eax, dword [esp + 0x18]
inc ebx
inc eax
mov dword [esp + 0x20], ebx
add ecx, 8
mov dword [esp + 0x18], eax
add esi, 8
mov dword [esp + 0x14], ecx
cmp eax, dword [esp + 0xd8]
jb 0x529d45
test ebx, ebx
jne 0x529e4b
cmp byte [esp + 0xe8], bl
je 0x52a099
xor esi, esi
mov dword [esp + 0x14], esi
jmp 0x529e66
cmp byte [esp + 0x13], 0
je 0x529e41
push dword [esp + 0x24]
call dword [0x615e28]
add esp, 4
mov eax, 4
jmp 0x529bf9
push 0
push 0
push ebx
push dword [esp + 0x30]
call fcn.00546f90
mov esi, eax
add esp, 0x10
mov dword [esp + 0x14], esi
test esi, esi
jg 0x529e86
mov ecx, dword [esp + 0x1c]
push 0
push dword [esp + 0xe0]
add ecx, 0xdc
push 0
push ecx
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
test esi, esi
jns 0x529e92
mov eax, 0xc
jmp 0x529bf9
xor ecx, ecx
mov eax, esi
test esi, esi
cmovle eax, ecx
xor edi, edi
mov dword [esp + 0x28], eax
cmp dword [esp + 0xd8], ecx
jbe 0x529fdd
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
lea eax, [eax + ebp*8]
add eax, 6
mov dword [esp + 0x18], eax
mov ebp, eax
movsx eax, word [ebp]
xor ebx, ebx
mov dword [esp + 0x18], eax
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x34]
push ebx
mov dword [esp + 0x40], ebx
push dword [eax + edi*8]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x529f55
mov ecx, dword [esp + 0x38]
mov eax, ebx
test cl, 0x29
mov ebx, ecx
setne al
movzx edx, ax
mov eax, edx
or eax, 4
and bl, 0x32
mov ebx, dword [esp + 0x38]
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 [esp + 0x34], 0
movzx eax, cx
mov ebx, eax
je 0x529f55
test esi, esi
jg 0x529f55
cmp dword [esp + 0x38], 0
je 0x529f55
mov eax, dword [esp + 0x1c]
inc dword [esp + 0x28]
push 0
push dword [eax + 0xdc]
mov eax, dword [esp + 0x38]
push dword [eax + edi*8]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
jmp 0x529fc4
mov eax, dword [esp + 0x1c]
push 0
push dword [eax + 0xdc]
mov eax, dword [esp + 0x38]
push dword [eax + edi*8]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test esi, esi
jle 0x529fc4
mov edx, dword [esp + 0x18]
mov eax, ebx
or eax, 1
and edx, 0x300
movzx ecx, ax
movzx eax, bx
mov ebx, dword [esp + 0x18]
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 4
and bl, 0x10
mov ebx, dword [esp + 0x18]
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 2
and ebx, 0x400
movzx ecx, ax
mov eax, edx
cmove ecx, eax
mov eax, dword [esp + 0x30]
mov word [eax + edi*8 + 6], cx
inc edi
add ebp, 8
cmp edi, dword [esp + 0xd8]
jb 0x529ec2
mov ebp, dword [esp + 0x2c]
mov ebx, dword [esp + 0x20]
test ebp, ebp
je 0x52a089
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x52a089
mov ebp, dword [esp + 0x14]
nop dword [eax]
lea ecx, [esp + 0x64]
push ecx
push eax
call fcn.005281e0
add esp, 8
mov ebx, eax
xor esi, esi
mov edi, 1
lea ecx, [esi + 0x10]
mov edx, edi
bts edx, ecx
test ebx, edx
je 0x52a072
lea eax, [esp + 0x38]
mov dword [esp + 0x38], 0
push eax
push 0
push dword [esp + esi*4 + 0x6c]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x52a054
cmp dword [esp + 0x34], eax
je 0x52a054
test ebp, ebp
jg 0x52a054
cmp dword [esp + 0x38], eax
je 0x52a054
inc dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
push 0
push dword [eax + 0xdc]
push dword [esp + esi*4 + 0x6c]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
inc esi
rol edi, 1
cmp esi, 5
jb 0x52a017
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 4]
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x52a000
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push dword [eax + 0xdc]
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
cmp byte [esp + 0x13], 0
je 0x52a0ad
push dword [esp + 0x24]
call dword [0x615e28]
add esp, 4
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x52a0bb
mov eax, dword [esp + 0x28]
mov dword [ecx], eax
cmp byte [esp + 0xe4], 0
je 0x52a120
test ebx, ebx
jne 0x52a120
cmp byte [esp + 0xe8], bl
jne 0x52a120
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], ebx
cmp dword [eax], 0xbab1e
jne 0x52a120
cmp byte [eax + 0xe2], bl
jne 0x52a120
lea ecx, [esp + 0x14]
push ecx
push eax
call fcn.00529980
add esp, 8
test eax, eax
jne 0x52a120
mov eax, dword [esp + 0x14]
test eax, eax
je 0x52a120
mov ecx, dword [esp + 0xdc]
cmp eax, ecx
jg 0x52a113
test eax, eax
jns 0x52a115
mov eax, ecx
cdq
push edx
push eax
call fcn.005474a0
add esp, 8
xor eax, eax
jmp 0x529bf9
mov ecx, dword [esp + 0xc4]
mov eax, 1
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00573140
add esp, 0xbc
ret