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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6075a8
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.00533290
test eax, eax
jne 0x540dfc
push 0x3c
push edi
mov ecx, esi
call fcn.00533ee0
mov ecx, dword [esi + 0x31ec]
mov edx, dword [ecx + 0x38]
test edx, edx
je 0x540b07
add ecx, 0x48
call fcn.00531140
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 0x540dfc
mov eax, dword [esi + 0x17c]
cmp dword [eax + 0x14c], 4
jne 0x540b4b
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x24]
push ecx
push edx
push ebx
push edi
mov ecx, esi
call fcn.005334e0
cmp eax, 0x2733
je 0x540b41
cmp eax, 0x7533
jne 0x540cba
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x24]
push eax
push ecx
jmp 0x540b26
lea edx, [ebp + 0x1b]
push edx
push edi
mov ecx, esi
call fcn.00533670
cmp eax, 0x2733
je 0x540ddd
cmp eax, 0x7533
je 0x540ddd
test eax, eax
jne 0x540dfc
mov al, byte [ebp + 0x1b]
test al, al
je 0x540c37
mov eax, dword [esi + 0x17c]
mov cl, byte [eax + 0x151]
test cl, cl
jne 0x540bca
mov ecx, dword [0x6cd49c]
push 1
push ecx
mov ecx, esi
call fcn.00532a80
mov edx, dword [0x6cd49c]
mov ecx, dword [esi + 0x9c]
push edx
call fcn.0053a7e0
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.00533c40
test eax, eax
jne 0x540dfc
push 0x3c
push edi
mov ecx, esi
call fcn.00533ee0
mov ecx, dword [esi + 0x31ec]
mov edx, dword [ecx + 0x38]
test edx, edx
je 0x540c11
add ecx, 0x48
call fcn.00531140
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 0x540dfc
push edi
mov ecx, esi
call fcn.00533d60
cmp eax, 0x2733
je 0x540c19
cmp eax, 0x7533
je 0x540c19
test eax, eax
jne 0x540dfc
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.00533a50
test eax, eax
jne 0x540dfc
push 0x3c
push edi
mov ecx, esi
call fcn.00533ee0
mov ecx, dword [esi + 0x31ec]
mov edx, dword [ecx + 0x38]
test edx, edx
je 0x540c8b
add ecx, 0x48
call fcn.00531140
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 0x540dfc
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x24]
push eax
push ecx
push ebx
push edi
mov ecx, esi
call fcn.005337b0
cmp eax, 0x2733
je 0x540dd0
cmp eax, 0x7533
je 0x540dd0
test eax, eax
jne 0x540dfc
test ebx, ebx
je 0x540dbb
mov edx, dword [0x6c826c]
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.005d809b
mov ecx, dword [0x6cdf34]
add esp, 0x20
push 1
push ecx
mov ecx, esi
call fcn.00532a80
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.00532c00
mov edi, eax
test edi, edi
je 0x540d91
mov eax, dword [esi + 0x31ec]
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 0
mov dword [eax + 0x160], edi
call fcn.005df266
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.0057c090
mov ecx, esi
call fcn.005346f0
lea ecx, [ebp + 0x14]
mov dword [esi + 0x8c], 4
mov byte [ebp - 4], 0
call fcn.005df266
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 0x540c9b
lea eax, [ebp + 0x1b]
push eax
jmp 0x540b4f
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x14