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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x609548
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.00535080
test eax, eax
jne 0x542bcc
push 0x3c
push edi
mov ecx, esi
call fcn.00535cd0
mov ecx, dword [esi + 0x31ec]
mov edx, dword [ecx + 0x38]
test edx, edx
je 0x5428d7
add ecx, 0x48
call fcn.00532f30
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 0x542bcc
mov eax, dword [esi + 0x17c]
cmp dword [eax + 0x14c], 4
jne 0x54291b
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x24]
push ecx
push edx
push ebx
push edi
mov ecx, esi
call fcn.005352d0
cmp eax, 0x2733
je 0x542911
cmp eax, 0x7533
jne 0x542a8a
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x24]
push eax
push ecx
jmp 0x5428f6
lea edx, [ebp + 0x1b]
push edx
push edi
mov ecx, esi
call fcn.00535460
cmp eax, 0x2733
je 0x542bad
cmp eax, 0x7533
je 0x542bad
test eax, eax
jne 0x542bcc
mov al, byte [ebp + 0x1b]
test al, al
je 0x542a07
mov eax, dword [esi + 0x17c]
mov cl, byte [eax + 0x151]
test cl, cl
jne 0x54299a
mov ecx, dword [0x6cf4ac]
push 1
push ecx
mov ecx, esi
call fcn.00534870
mov edx, dword [0x6cf4ac]
mov ecx, dword [esi + 0x9c]
push edx
call fcn.0053c5b0
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.00535a30
test eax, eax
jne 0x542bcc
push 0x3c
push edi
mov ecx, esi
call fcn.00535cd0
mov ecx, dword [esi + 0x31ec]
mov edx, dword [ecx + 0x38]
test edx, edx
je 0x5429e1
add ecx, 0x48
call fcn.00532f30
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 0x542bcc
push edi
mov ecx, esi
call fcn.00535b50
cmp eax, 0x2733
je 0x5429e9
cmp eax, 0x7533
je 0x5429e9
test eax, eax
jne 0x542bcc
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.00535840
test eax, eax
jne 0x542bcc
push 0x3c
push edi
mov ecx, esi
call fcn.00535cd0
mov ecx, dword [esi + 0x31ec]
mov edx, dword [ecx + 0x38]
test edx, edx
je 0x542a5b
add ecx, 0x48
call fcn.00532f30
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 0x542bcc
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x24]
push eax
push ecx
push ebx
push edi
mov ecx, esi
call fcn.005355a0
cmp eax, 0x2733
je 0x542ba0
cmp eax, 0x7533
je 0x542ba0
test eax, eax
jne 0x542bcc
test ebx, ebx
je 0x542b8b
mov edx, dword [0x6ca27c]
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.005d9fbb
mov ecx, dword [0x6cff44]
add esp, 0x20
push 1
push ecx
mov ecx, esi
call fcn.00534870
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 + 0x31dc]
push edx
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.005349f0
mov edi, eax
test edi, edi
je 0x542b61
mov eax, dword [esi + 0x31ec]
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 0
mov dword [eax + 0x160], edi
call fcn.005e118c
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 + 0x31d0]
call fcn.0057df90
mov ecx, esi
call fcn.005364e0
lea ecx, [ebp + 0x14]
mov dword [esi + 0x8c], 4
mov byte [ebp - 4], 0
call fcn.005e118c
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 0x542a6b
lea eax, [ebp + 0x1b]
push eax
jmp 0x54291f
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x14