Function at 0x456090
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x485c30
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4aa0cc]
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
lea eax, [ebp + 8]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x28]
call fcn.00403330
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.004034a0
test al, al
je 0x4560fb
push 0x493b50
mov ecx, ebx
call fcn.004058c0
jmp 0x456340
push 4
push str.NEW_
lea ecx, [ebp - 0x28]
call fcn.00403480
push eax
call dword [sym.imp.MSVCR120.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x4561dd
push 4
push eax
lea ecx, [ebp - 0x28]
call fcn.004037a0
lea ecx, [ebp - 0x28]
call fcn.004034a0
test al, al
jne 0x4560ea
lea ecx, [ebp - 0x28]
call fcn.00401e70
test al, 3
jne 0x4560ea
lea ecx, [ebp - 0x40]
call fcn.00403390
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
xor esi, esi
call fcn.00401e70
test eax, eax
je 0x456194
mov edi, dword [sym.imp.MSVCR120.dll_swscanf_s]
nop
lea eax, [ebp - 0x44]
push eax
push str._04lx
lea ecx, [ebp - 0x28]
call fcn.004036b0
lea eax, [eax + esi*2]
push eax
call edi
add esp, 0xc
lea ecx, [ebp - 0x40]
push dword [ebp - 0x44]
call fcn.00415c70
lea ecx, [ebp - 0x28]
add esi, 4
call fcn.00401e70
cmp esi, eax
jb 0x456160
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.004033e0
xor esi, esi
cmp dword [ebp - 0x18], esi
jbe 0x4561c5
mov edi, 0x6745
lea esp, [esp]
lea ecx, [ebp - 0x28]
call fcn.004036b0
xor word [eax + esi*2], di
lea eax, [eax + esi*2]
inc esi
cmp esi, dword [ebp - 0x18]
jb 0x4561b0
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.00405900
lea ecx, [ebp - 0x40]
call fcn.004033c0
jmp 0x456340
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.0047da68
mov edi, eax
add esp, 4
mov dword [ebp - 0x48], edi
test edi, edi
je 0x45625d
lea ecx, [ebp - 0x28]
call fcn.00403480
mov esi, eax
mov eax, dword [ebp - 0x44]
test eax, eax
jle 0x456244
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 0x456222
mov ebx, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x48]
mov eax, dword [ebp - 0x44]
xor ecx, ecx
mov word [edi + eax*2], cx
lea ecx, [ebp - 0x28]
push edi
call fcn.00403460
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.0047da68
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.0047da68
mov esi, eax
add esp, 4
mov dword [ebp - 0x4c], esi
mov byte [ebp - 4], 5
test edi, edi
je 0x456313
test esi, esi
je 0x456313
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 ecx, [ebp - 0x28]
push edi
call fcn.00403480
push eax
push dword [ebp - 0x44]
call sub.MSVCR120.dll_memcpy
add esp, 0xc
lea ecx, [ebp + 0x20]
call fcn.00403480
push eax
push edi
mov edx, edi
mov edi, dword [ebp - 0x44]
push esi
mov ecx, edi
call fcn.004557e0
add esp, 0xc
lea ecx, [ebp - 0x28]
push esi
call fcn.00403460
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.00405900
test esi, esi
je 0x456330
push esi
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
call esi
add esp, 4
jmp 0x456336
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
test edi, edi
je 0x456340
push edi
call esi
add esp, 4
lea ecx, [ebp - 0x28]
call fcn.004033c0
lea ecx, [ebp + 8]
call fcn.004033c0
lea ecx, [ebp + 0x20]
call fcn.004033c0
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.0047dbfe
mov esp, ebp
pop ebp
ret