Function at 0x4858d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b91a0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4e50cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x50], 0
xor eax, eax
mov dword [ebp - 4], 1
push 0xffffffffffffffff
push eax
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x28]
lea eax, [ebp + 8]
mov dword [ebp - 0x14], 7
push eax
mov dword [ebp - 0x18], 0
call fcn.004030ea
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], 0
jne 0x485960
xor eax, eax
mov dword [ebx + 0x14], 7
push eax
mov dword [ebx + 0x10], 0
mov ecx, ebx
push 0x4c431c
mov word [ebx], ax
call fcn.00402ddd
jmp 0x485cab
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 4
cmovae eax, dword [ebp - 0x28]
push str.NEW_
push eax
call dword [sym.imp.MSVCR120.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x485aa2
push 4
push eax
lea ecx, [ebp - 0x28]
call fcn.004036b8
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x48593b
test al, 3
jne 0x48593b
xor ecx, ecx
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], cx
xor esi, esi
mov byte [ebp - 4], 3
test eax, eax
je 0x4859f2
mov edi, dword [sym.imp.MSVCR120.dll_swscanf_s]
mov edi, edi
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x44]
cmovae eax, dword [ebp - 0x28]
push ecx
push str._04lx
lea eax, [eax + esi*2]
push eax
call edi
add esp, 0xc
lea ecx, [ebp - 0x40]
push dword [ebp - 0x44]
push 1
call fcn.004175d0
add esi, 4
cmp esi, dword [ebp - 0x18]
jb 0x4859c0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.004030ea
xor ecx, ecx
cmp dword [ebp - 0x18], ecx
jbe 0x485a25
mov edx, 0x6745
mov edi, edi
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
xor word [eax + ecx*2], dx
inc ecx
cmp ecx, dword [ebp - 0x18]
jb 0x485a10
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], ax
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jae 0x485a5c
mov eax, dword [ebp - 0x18]
inc eax
je 0x485a68
add eax, eax
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
call dword [sym.imp.MSVCR120.dll_memmove]
mov ecx, dword [ebp - 0x14]
add esp, 0xc
jmp 0x485a68
mov eax, dword [ebp - 0x28]
mov dword [ebx], eax
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x18]
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov dword [ebx + 0x10], eax
xor eax, eax
cmp dword [ebp - 0x2c], 8
mov dword [ebx + 0x14], ecx
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x485cbf
push dword [ebp - 0x40]
call esi
add esp, 4
jmp 0x485cb1
mov eax, dword [ebp - 0x18]
xor ecx, ecx
cdq
and edx, 3
add eax, edx
mov edx, 2
sar eax, 2
mov dword [ebp - 0x44], eax
inc eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a594a
mov edi, eax
add esp, 4
mov dword [ebp - 0x48], edi
test edi, edi
je 0x485b43
cmp dword [ebp - 0x14], 8
lea esi, [ebp - 0x28]
mov eax, dword [ebp - 0x44]
cmovae esi, dword [ebp - 0x28]
test eax, eax
jle 0x485b0a
mov ebx, eax
push edi
push str._04lx
push esi
call dword [sym.imp.MSVCR120.dll_swscanf_s]
add esp, 0xc
add edi, 2
add esi, 8
dec ebx
jne 0x485ae8
mov ebx, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x48]
mov eax, dword [ebp - 0x44]
xor ecx, ecx
mov word [edi + eax*2], cx
cmp word [edi], cx
je 0x485b2f
mov ecx, edi
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x485b20
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.00402ddd
push edi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov dword [ebp - 0x48], eax
mov edx, 2
lea esi, [eax + 1]
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a594a
mov edi, eax
add esp, 4
mov dword [ebp - 0x44], edi
xor ecx, ecx
mov byte [ebp - 4], 4
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a594a
mov esi, eax
add esp, 4
mov dword [ebp - 0x4c], esi
mov byte [ebp - 4], 5
test edi, edi
je 0x485c29
test esi, esi
je 0x485c29
mov edi, dword [ebp - 0x48]
add edi, edi
lea esi, [edi + 2]
push esi
push 0
push dword [ebp - 0x44]
call sub.MSVCR120.dll_memset
add esp, 0xc
push esi
mov esi, dword [ebp - 0x4c]
push 0
push esi
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push edi
push eax
push dword [ebp - 0x44]
call sub.MSVCR120.dll_memcpy
add esp, 0xc
lea eax, [ebp + 0x20]
cmp dword [ebp + 0x34], 8
mov edx, edi
cmovae eax, dword [ebp + 0x20]
push eax
push edi
mov edi, dword [ebp - 0x44]
mov ecx, edi
push esi
call fcn.00484d80
add esp, 0xc
cmp word [esi], 0
jne 0x485c08
xor ecx, ecx
jmp 0x485c1f
mov ecx, esi
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x485c10
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00402ddd
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], ax
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jae 0x485c60
mov eax, dword [ebp - 0x18]
inc eax
je 0x485c6c
add eax, eax
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
call dword [sym.imp.MSVCR120.dll_memmove]
mov ecx, dword [ebp - 0x14]
add esp, 0xc
jmp 0x485c6c
mov eax, dword [ebp - 0x28]
mov dword [ebx], eax
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0x10], eax
xor eax, eax
mov dword [ebx + 0x14], ecx
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
test esi, esi
je 0x485c9b
push esi
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
call esi
add esp, 4
jmp 0x485ca1
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
test edi, edi
je 0x485cab
push edi
call esi
add esp, 4
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
cmp dword [ebp - 0x14], 8
jb 0x485cbf
push dword [ebp - 0x28]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
cmp dword [ebp + 0x1c], 8
mov word [ebp - 0x28], ax
mov dword [ebp - 0x18], eax
jb 0x485cdd
push dword [ebp + 8]
call esi
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
cmp dword [ebp + 0x34], 8
mov word [ebp + 8], ax
mov dword [ebp + 0x18], eax
jb 0x485cfb
push dword [ebp + 0x20]
call esi
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a5ae0
mov esp, ebp
pop ebp
ret