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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d40d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x10], esp
push ebx
push eax
push ecx
push edx
push edi
mov ecx, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
call fcn.005139c0
test eax, eax
jne 0x51dcd9
push 0x3c
push edi
mov ecx, esi
call fcn.005145a0
mov ecx, dword [esi + 0x30fc]
mov edx, dword [ecx + 0x38]
test edx, edx
je 0x51d9e7
add ecx, 0x48
call fcn.00511c40
mov eax, 0x7540
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
test eax, eax
jne 0x51dcd9
mov eax, dword [esi + 0xd4]
cmp dword [eax + 0x140], 4
jne 0x51da2b
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x24]
push ecx
push edx
push ebx
push edi
mov ecx, esi
call fcn.00513c00
cmp eax, 0x2733
je 0x51da21
cmp eax, 0x7533
jne 0x51db9a
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x24]
push eax
push ecx
jmp 0x51da06
lea edx, [ebp + 0x1b]
push edx
push edi
mov ecx, esi
call fcn.00513d90
cmp eax, 0x2733
je 0x51dcba
cmp eax, 0x7533
je 0x51dcba
test eax, eax
jne 0x51dcd9
mov al, byte [ebp + 0x1b]
test al, al
je 0x51db17
mov eax, dword [esi + 0xd4]
mov cl, byte [eax + 0x145]
test cl, cl
jne 0x51daaa
mov ecx, dword [0x692080]
push 1
push ecx
mov ecx, esi
call fcn.005132d0
mov edx, dword [0x692080]
mov ecx, dword [esi + 0x8c]
push edx
call fcn.00518410
mov eax, 0x7559
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push edi
mov ecx, esi
call fcn.00514350
test eax, eax
jne 0x51dcd9
push 0x3c
push edi
mov ecx, esi
call fcn.005145a0
mov ecx, dword [esi + 0x30fc]
mov edx, dword [ecx + 0x38]
test edx, edx
je 0x51daf1
add ecx, 0x48
call fcn.00511c40
mov eax, 0x7540
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
test eax, eax
jne 0x51dcd9
push edi
mov ecx, esi
call fcn.00514470
cmp eax, 0x2733
je 0x51daf9
cmp eax, 0x7533
je 0x51daf9
test eax, eax
jne 0x51dcd9
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ebx
push eax
push ecx
push edx
push edi
mov ecx, esi
call fcn.00514170
test eax, eax
jne 0x51dcd9
push 0x3c
push edi
mov ecx, esi
call fcn.005145a0
mov ecx, dword [esi + 0x30fc]
mov edx, dword [ecx + 0x38]
test edx, edx
je 0x51db6b
add ecx, 0x48
call fcn.00511c40
mov eax, 0x7540
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
test eax, eax
jne 0x51dcd9
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x24]
push eax
push ecx
push ebx
push edi
mov ecx, esi
call fcn.00513ed0
cmp eax, 0x2733
je 0x51dcad
cmp eax, 0x7533
je 0x51dcad
test eax, eax
jne 0x51dcd9
test ebx, ebx
je 0x51dc98
mov edx, dword [0x68d01c]
mov dword [ebp + 0x14], edx
mov eax, dword [ebp - 0x1b]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x21]
and eax, 0xff
and ecx, 0xff
push eax
mov eax, dword [ebp - 0x22]
and edx, 0xff
push ecx
mov ecx, dword [ebp - 0x23]
push edx
mov edx, dword [ebp - 0x24]
and eax, 0xff
and ecx, 0xff
push eax
and edx, 0xff
push ecx
push edx
lea eax, [ebp + 0x14]
push str.PORT__d__d__d__d__d__d_r_n
push eax
mov byte [ebp - 4], 1
call fcn.005a6a18
mov ecx, dword [0x692b48]
add esp, 0x20
push 1
push ecx
mov ecx, esi
call fcn.005132d0
mov edx, dword [ebp + 0x14]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push str.send___PORT
dec ecx
push 0
push ecx
push edx
mov edx, dword [esi + 0x30ec]
push edx
call sub.WSOCK32.dll_send
push eax
mov ecx, esi
call fcn.00513450
mov edi, eax
test edi, edi
je 0x51dc71
mov eax, dword [esi + 0x30fc]
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 0
mov dword [eax + 0xf8], edi
call fcn.005adc4d
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 6
lea ecx, [esi + 0x30e0]
call fcn.0054fb50
mov ecx, esi
call fcn.00514da0
lea ecx, [ebp + 0x14]
mov dword [esi + 0x7c], 4
mov byte [ebp - 4], 0
call fcn.005adc4d
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x24]
push ecx
push edx
jmp 0x51db7b
lea eax, [ebp + 0x1b]
push eax
jmp 0x51da2f
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x14