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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x653e98
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x7496c8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], 0
mov eax, dword [esi + 0xc0]
cmp dword [eax + 4], 0
je 0x566bad
push 1
mov ecx, dword [0x74f934]
push ecx
mov ecx, esi
call fcn.005581e0
lea ecx, [ebp - 0x28]
call fcn.00402500
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.00402500
mov byte [ebp - 4], 2
mov byte [esi + 0x321e], 0
mov eax, dword [esi + 0xc0]
cmp byte [eax + 0x199], 0
je 0x566a98
mov edx, dword [eax + 4]
push edx
lea ecx, [ebp - 0x20]
call fcn.00406fc0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x566a16
lea eax, [ebp - 0x1c]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
call ebx
mov edi, eax
test edi, edi
je 0x566a66
push edi
lea ecx, [ebp - 0x24]
call fcn.00402850
mov ecx, dword [ebp - 0x20]
test ecx, ecx
jne 0x566a49
lea ecx, [ebp - 0x1c]
push 0
push 0
push edi
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0xfde9
call ebx
test eax, eax
je 0x566a66
mov byte [esi + 0x321e], 1
cmp byte [esi + 0x321e], 0
jne 0x566a8a
mov eax, dword [esi + 0xc0]
mov ecx, dword [eax + 4]
push ecx
push 0x66ae98
lea edx, [ebp - 0x24]
push edx
call fcn.00402f80
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.004011f0
jmp 0x566aad
mov eax, dword [eax + 4]
push eax
push 0x66ae98
lea ecx, [ebp - 0x24]
push ecx
call fcn.00402f80
add esp, 0xc
mov eax, dword [esi + 0xc0]
cmp byte [eax + 0x19c], 0
jne 0x566afa
mov eax, dword [eax + 4]
cmp byte [eax], 0x2f
jne 0x566afa
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x566ac7
sub eax, edx
cmp eax, 1
je 0x566b95
push 0x66d294
mov edx, dword [ebp - 0x24]
inc edx
push edx
push str.CWD__s_s
lea eax, [ebp - 0x28]
push eax
call fcn.00402f80
mov byte [esi + 0x321d], 0
jmp 0x566b18
mov byte [esi + 0x321d], 1
push 0x66d294
mov ecx, dword [ebp - 0x24]
push ecx
push str.CWD__s_s
lea edx, [ebp - 0x28]
push edx
call fcn.00402f80
add esp, 0x10
mov edx, dword [ebp - 0x28]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x566b23
sub eax, edi
push str.send___CWD
push 0
push eax
push edx
mov eax, dword [esi + 0x31f4]
push eax
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.005582d0
mov edi, eax
test edi, edi
je 0x566b77
mov ecx, dword [esi + 0x3204]
mov dword [ecx + 0x140], edi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.00402570
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00402570
mov eax, edi
jmp 0x566bdb
push 9
lea ecx, [esi + 0x31e8]
call fcn.0059dc90
mov ecx, esi
call fcn.00557bf0
mov dword [esi + 0x9c], 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.00402570
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00402570
xor eax, eax
jmp 0x566bdb
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00613241
mov esp, ebp
pop ebp
ret