Function at 0x49e1d0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52c86d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x860
push esi
push edi
mov eax, edx
mov dword [ebp - 0x24], ecx
xor edx, edx
mov dword [ebp - 0x18], 0
xor ecx, ecx
mov dword [ebp - 0x2c], edx
xor edi, edi
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x34], ecx
mov esi, dword [ebx + 0x14]
mov edx, dword [ebx + 8]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x28], ecx
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebx + 0x18]
mov ecx, eax
push esi
push dword [ebx + 0xc]
call fcn.0049df60
mov eax, dword [0x55cf94]
add esp, 0x10
push edi
push edi
push edi
push edi
push esi
call eax
mov edx, eax
mov dword [ebp - 0x30], edx
test edx, edx
jne 0x49e269
lea esi, [edi + 1]
jmp 0x49e45b
cmp byte [ebx + 0xc], 0
mov eax, 0x80803000
mov ecx, dword [0x55cf9c]
mov esi, connect
push 0
cmove eax, esi
push eax
push 0
push 0
push dword [ebp - 0x24]
push edx
call ecx
mov ecx, eax
mov dword [ebp - 0x24], ecx
test ecx, ecx
jne 0x49e29e
lea esi, [eax + 2]
jmp 0x49e452
mov eax, dword [0x55cf80]
lea edx, [ebp - 0x18]
push edx
push 0x800
lea edx, [ebp - 0x870]
push edx
push ecx
call eax
test eax, eax
je 0x49e347
nop
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
add ecx, eax
mov dword [ebp - 0x14], ecx
test eax, eax
je 0x49e33a
xor esi, esi
test eax, eax
je 0x49e311
mov ecx, dword [ebp - 0x20]
nop dword [eax + eax]
lea eax, [ebp - 0x870]
add eax, esi
cmp edi, ecx
je 0x49e2f6
mov al, byte [eax]
mov byte [edi], al
inc edi
mov dword [ebp - 0x38], edi
jmp 0x49e30b
push eax
push edi
lea ecx, [ebp - 0x3c]
call fcn.00402de0
mov eax, dword [ebp - 0x34]
mov ecx, eax
mov edi, dword [ebp - 0x38]
mov dword [ebp - 0x20], eax
inc esi
cmp esi, dword [ebp - 0x18]
jb 0x49e2e0
mov eax, dword [0x55cf80]
lea ecx, [ebp - 0x18]
push ecx
push 0x800
lea ecx, [ebp - 0x870]
push ecx
push dword [ebp - 0x24]
call eax
test eax, eax
jne 0x49e2c0
mov esi, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], esi
jmp 0x49e34b
mov esi, dword [ebp - 0x3c]
mov eax, ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], esi
jmp 0x49e34e
xor esi, esi
xor ecx, ecx
mov eax, dword [ebp - 0x1c]
test eax, eax
jle 0x49e364
xor edx, edx
mov dword [ebp - 0x28], 5
cmp ecx, eax
cmovne edx, dword [ebp - 0x28]
mov dword [ebp - 0x28], edx
xorps xmm0, xmm0
mov word [ebp - 0x6d], 0xeaf0
movq qword [ebp - 0x6b], xmm0
xor ecx, ecx
mov word [ebp - 0x63], 0
nop word [eax + eax]
lea eax, [ecx - 0x79]
xor byte [ebp + ecx - 0x6d], al
inc ecx
cmp ecx, 2
jb 0x49e380
mov dword [0x55d598], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x6d]
mov byte [ebp - 0x6b], 0
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x44], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x40], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49e3b2
sub ecx, edx
lea eax, [ebp - 0x6d]
push ecx
push eax
lea ecx, [ebp - 0x54]
call fcn.00402b80
cmp dword [ebp - 0x40], 0x10
lea eax, [ebp - 0x54]
cmovae eax, dword [ebp - 0x54]
push eax
push dword [ebx + 0x10]
call fcn.00500f40
mov ecx, dword [ebp - 0x40]
add esp, 8
mov dword [ebp - 0x14], eax
cmp ecx, 0x10
jb 0x49e419
mov edx, dword [ebp - 0x54]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x49e40c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49e4a0
push ecx
push edx
call fcn.004fb0f1
mov eax, dword [ebp - 0x14]
add esp, 8
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0xf
mov byte [ebp - 0x54], 0
test eax, eax
je 0x49e446
push eax
sub edi, esi
push edi
push 1
push esi
call fcn.00508d46
push dword [ebp - 0x14]
call fcn.00504958
add esp, 0x14
push dword [ebp - 0x24]
call dword [0x55cf7c]
mov esi, dword [ebp - 0x28]
push dword [ebp - 0x30]
call dword [0x55cf7c]
mov edx, dword [ebp - 0x2c]
test edx, edx
je 0x49e48b
mov ecx, dword [ebp - 0x20]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x49e481
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49e4a5
push ecx
push edx
call fcn.004fb0f1
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00500390
call fcn.00500390
int3