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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdf8
mov eax, dword [0x5d6b10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0xdf8], eax
mov ebx, ecx
mov eax, dword [ebp + 0x10]
xor ecx, ecx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0xdf4], ebx
mov dword [ebp - 0xdec], edi
mov dword [ebp - 0xde8], eax
mov dword [ebp - 0xde4], ecx
cmp dword [eax], ecx
jle 0x40760f
jmp 0x407580
movzx eax, byte [edi + esi]
push eax
call fcn.0054734d
add esp, 4
test eax, eax
je 0x407655
mov dword [ebx + 0x10024], 1
mov al, byte [edi + esi]
cmp al, 0xd
je 0x407832
cmp al, 8
jne 0x4075f2
mov eax, dword [ebx + 0x10240]
mov ecx, dword [ebp - 0xde4]
cmp eax, dword [ebx + 0x10028]
jle 0x407600
dec dword [ebx + 0x1022c]
dec eax
mov word [ebp + ecx - 0x804], 0x2008
mov byte [ebp + ecx - 0x802], 8
add ecx, 3
dec dword [ebx + 0x10230]
mov dword [ebp - 0xde4], ecx
mov dword [ebx + 0x10240], eax
jmp 0x407600
cmp al, 0x1a
jbe 0x40780f
mov ecx, dword [ebp - 0xde4]
mov eax, dword [ebp - 0xde8]
inc esi
cmp esi, dword [eax]
jl 0x407580
cmp dword [ebp + 0x14], 0
je 0x4078c1
push 0
push ecx
lea eax, [ebp - 0x804]
push eax
push dword [ebx + 0x1224c]
call dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [ebp - 0xde4]
cmp eax, ecx
je 0x4078c1
pop edi
pop esi
mov eax, 0xfffffffd
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005463d8
mov esp, ebp
pop ebp
ret 0x10
mov cl, byte [edi + esi]
cmp cl, 0xff
jne 0x4077ba
xor ebx, ebx
lea edi, [ebp - 0xde0]
lea esp, [esp]
mov eax, dword [ebp - 0xde8]
mov ecx, dword [eax]
lea eax, [esi + 2]
cmp eax, ecx
jge 0x40776e
mov eax, dword [ebp - 0xdec]
inc esi
mov al, byte [eax + esi + 1]
cmp al, 1
je 0x40775b
cmp al, 3
jne 0x4076a6
push 3
push 0xfb
jmp 0x407742
cmp al, 0x1f
jne 0x407734
mov eax, dword [ebp - 0xdec]
mov al, byte [eax + esi]
cmp al, 0xfd
jne 0x4076ef
push 0
push 0xfb
push 0xff
push 0
push 0xfd
push 0xff
push 0x1f
push 0xfd
push 0xff
push str._c_c_c_c_c_c_c_c_c
push edi
call fcn.00547a6f
add esp, 0x2c
jmp 0x407755
cmp al, 0xfa
jne 0x40775e
lea eax, [esi + 2]
cmp eax, ecx
jge 0x40775e
mov eax, dword [ebp - 0xdec]
mov edx, 1
lea ecx, [eax + 1]
add ecx, esi
sub edx, eax
mov dword [ebp - 0xdf0], edx
cmp byte [ecx - 1], 0xff
jne 0x40771d
cmp byte [ecx], 0xf0
je 0x40775b
inc ecx
inc esi
lea eax, [edx + ecx]
mov edx, dword [ebp - 0xde8]
cmp eax, dword [edx]
mov edx, dword [ebp - 0xdf0]
jl 0x407712
jmp 0x40775e
cmp al, 0xc8
jne 0x40775b
push 0xc8
push 0xfc
push 0xff
push str._c_c_c
push edi
call fcn.00547a6f
add esp, 0x14
add ebx, 3
add edi, 3
add esi, 2
mov ecx, dword [ebp - 0xdec]
cmp byte [ecx + esi], 0xff
je 0x407670
push 1
push 0xfb
push 0xff
lea eax, [ebp - 0xde0]
add eax, ebx
push str._c_c_c
push eax
call fcn.00547a6f
add esp, 0x14
lea eax, [ebx + 3]
mov ebx, dword [ebp - 0xdf4]
push 0
push eax
lea eax, [ebp - 0xde0]
push eax
push dword [ebx + 0x1224c]
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [ebp - 0xdec]
jmp 0x4075fa
cmp dword [ebx + 0x1022c], 0x200
jge 0x4075fa
mov eax, dword [ebx + 0x10230]
mov byte [eax + ebx + 0x12254], cl
mov ecx, dword [ebp - 0xde4]
inc dword [ebx + 0x10230]
inc dword [ebx + 0x1022c]
inc dword [ebx + 0x10240]
mov al, byte [edi + esi]
mov byte [ebp + ecx - 0x804], al
inc ecx
mov dword [ebp - 0xde4], ecx
mov dword [ebx + 0x10024], 1
jmp 0x407600
mov al, byte [edi + esi]
mov ecx, dword [ebp - 0xdf8]
pop edi
pop esi
pop ebx
mov byte [ecx], al
mov eax, 0xfffffff1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005463d8
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [ebp - 0xde8]
lea eax, [esi + 1]
mov ecx, dword [edx]
inc ecx
mov dword [edx], ecx
cmp eax, ecx
jge 0x407850
cmp byte [edi + esi + 1], 0xa
jne 0x407850
lea eax, [ecx + 1]
mov dword [edx], eax
push 0
push 2
push 0x576d04
push dword [ebx + 0x1224c]
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [ebx + 0x1022c]
lea ecx, [ebx + 0x12464]
mov byte [ebx + eax + 0x12254], 0
lea eax, [ebx + 0x12254]
push eax
push dword [ecx + 8]
call fcn.0042f4d2
cmp dword [ebx + 0x1022c], 0
je 0x4078a9
cmp dword [ebx + 0x12454], 0
je 0x4078a9
push 2
push ebx
push dword [ebx + 8]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
mov eax, 0xfffffff1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005463d8
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 0xde8]
pop edi
pop esi
pop ebx
mov dword [eax], ecx
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005463d8
mov esp, ebp
pop ebp
ret 0x10