Function at 0x4586290
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x154
mov eax, dword [0x4612008]
xor eax, esp
mov dword [esp + 0x150], eax
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
call dword [eax + 8]
mov esi, eax
test esi, esi
jne 0x45862d1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x150]
xor ecx, esp
call fcn.045bc602
mov esp, ebp
pop ebp
ret 0x24
push 0x30
lea eax, [esp + 0x14]
push 0
push eax
call fcn.045be2d0
mov eax, dword [0x461f794]
add esp, 0xc
mov dword [esp + 0x10], 0x30
test eax, eax
jne 0x4586326
mov eax, dword [0x461f790]
test eax, eax
jne 0x4586321
sub esp, 0x10
lea edx, [eax - 0xc]
mov ecx, 0x4607444
call fcn.04584c60
add esp, 0x10
mov dword [0x461f788], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x461f790], eax
mov dword [0x461f794], eax
mov ebx, dword [sym.imp.USER32.dll_GetClassInfoExW]
lea ecx, [esp + 0x10]
push ecx
push esi
push eax
call ebx
test eax, eax
jne 0x45864f7
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov edi, eax
test edi, edi
je 0x45863b6
mov eax, dword [0x461f794]
test eax, eax
jne 0x4586385
mov eax, dword [0x461f790]
test eax, eax
jne 0x4586380
sub esp, 0x10
lea edx, [eax - 0xc]
mov ecx, 0x4607444
call fcn.04584c60
add esp, 0x10
mov dword [0x461f788], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x461f790], eax
mov dword [0x461f794], eax
lea ecx, [esp + 0x10]
push ecx
push edi
push eax
call ebx
push esi
push edi
test eax, eax
je 0x45863a6
call fcn.045c718c
add esp, 8
test eax, eax
je 0x45864f7
jmp 0x45863b6
call fcn.045c718c
add esp, 8
test eax, eax
jne 0x45864f7
mov eax, dword [esp + 0x18]
test eax, eax
push 0x7f00
cmove eax, dword [sym.imp.USER32.dll_DefWindowProcW]
push 0
mov dword [esp + 0x14], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
mov edx, dword [esp + 0x14]
mov ecx, 3
test edx, edx
je 0x45863e6
mov ecx, edx
or ecx, 3
add dword [esp + 0x20], 8
add dword [esp + 0x1c], 8
mov edi, dword [esp + 0x34]
mov dword [esp + 0x14], ecx
xor ecx, ecx
mov dword [esp + 0x18], 0x4586040
mov dword [esp + 0x38], esi
mov dword [esp + 0x2c], eax
test edi, edi
je 0x4586422
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4586413
sub ecx, edx
sar ecx, 1
push 0x114
lea eax, [esp + 0x48]
push 0
push eax
lea ebx, [ecx*2 + 2]
call fcn.045be2d0
mov eax, dword [esp + 0x18]
add esp, 0xc
mov dword [esp + 0x40], eax
test edi, edi
je 0x458645d
cmp ebx, 2
jbe 0x458645d
push ebx
lea eax, [esp + 0x48]
push edi
push eax
call fcn.045bf7d0
add esp, 0xc
lea ecx, [ebx + 4]
xor eax, eax
test ecx, ecx
je 0x45864da
cmp ecx, 0x40
jb 0x45864d0
movaps xmm2, xmmword [0x4608920]
mov edx, ecx
and edx, 0xffffffc0
nop word [eax + eax]
movups xmm0, xmmword [esp + eax + 0x40]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [esp + eax + 0x40], xmm1
movups xmm0, xmmword [esp + eax + 0x50]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [esp + eax + 0x50], xmm1
movups xmm0, xmmword [esp + eax + 0x60]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [esp + eax + 0x60], xmm1
movups xmm0, xmmword [esp + eax + 0x70]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [esp + eax + 0x70], xmm1
add eax, 0x40
cmp eax, edx
jb 0x4586480
cmp eax, ecx
jae 0x45864da
nop
xor byte [esp + eax + 0x40], 0x79
inc eax
cmp eax, ecx
jb 0x45864d0
lea eax, [esp + 0x40]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
push dword [esp + 0x38]
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
mov ecx, dword [esp + 0x15c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.045bc602
mov esp, ebp
pop ebp
ret 0x24