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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6078a8
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.005334b0
test eax, eax
jne 0x54102c
push 0x3c
push edi
mov ecx, esi
call fcn.00534100
mov ecx, dword [esi + 0x31ec]
mov edx, dword [ecx + 0x38]
test edx, edx
je 0x540d37
add ecx, 0x48
call fcn.00531360
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 0x54102c
mov eax, dword [esi + 0x17c]
cmp dword [eax + 0x14c], 4
jne 0x540d7b
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x24]
push ecx
push edx
push ebx
push edi
mov ecx, esi
call fcn.00533700
cmp eax, 0x2733
je 0x540d71
cmp eax, 0x7533
jne 0x540eea
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x24]
push eax
push ecx
jmp 0x540d56
lea edx, [ebp + 0x1b]
push edx
push edi
mov ecx, esi
call fcn.00533890
cmp eax, 0x2733
je 0x54100d
cmp eax, 0x7533
je 0x54100d
test eax, eax
jne 0x54102c
mov al, byte [ebp + 0x1b]
test al, al
je 0x540e67
mov eax, dword [esi + 0x17c]
mov cl, byte [eax + 0x151]
test cl, cl
jne 0x540dfa
mov ecx, dword [0x6cd49c]
push 1
push ecx
mov ecx, esi
call fcn.00532ca0
mov edx, dword [0x6cd49c]
mov ecx, dword [esi + 0x9c]
push edx
call fcn.0053aa00
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.00533e60
test eax, eax
jne 0x54102c
push 0x3c
push edi
mov ecx, esi
call fcn.00534100
mov ecx, dword [esi + 0x31ec]
mov edx, dword [ecx + 0x38]
test edx, edx
je 0x540e41
add ecx, 0x48
call fcn.00531360
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 0x54102c
push edi
mov ecx, esi
call fcn.00533f80
cmp eax, 0x2733
je 0x540e49
cmp eax, 0x7533
je 0x540e49
test eax, eax
jne 0x54102c
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.00533c70
test eax, eax
jne 0x54102c
push 0x3c
push edi
mov ecx, esi
call fcn.00534100
mov ecx, dword [esi + 0x31ec]
mov edx, dword [ecx + 0x38]
test edx, edx
je 0x540ebb
add ecx, 0x48
call fcn.00531360
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 0x54102c
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x24]
push eax
push ecx
push ebx
push edi
mov ecx, esi
call fcn.005339d0
cmp eax, 0x2733
je 0x541000
cmp eax, 0x7533
je 0x541000
test eax, eax
jne 0x54102c
test ebx, ebx
je 0x540feb
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.005d838b
mov ecx, dword [0x6cdf34]
add esp, 0x20
push 1
push ecx
mov ecx, esi
call fcn.00532ca0
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.00532e20
mov edi, eax
test edi, edi
je 0x540fc1
mov eax, dword [esi + 0x31ec]
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 0
mov dword [eax + 0x160], edi
call fcn.005df556
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.0057c350
mov ecx, esi
call fcn.00534910
lea ecx, [ebp + 0x14]
mov dword [esi + 0x8c], 4
mov byte [ebp - 4], 0
call fcn.005df556
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 0x540ecb
lea eax, [ebp + 0x1b]
push eax
jmp 0x540d7f
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x14