Function at 0x418110
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x15c
mov eax, dword [0x542040]
xor eax, esp
mov dword [esp + 0x158], eax
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
call dword [eax + 8]
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
jne 0x418155
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x158]
xor ecx, esp
call fcn.004dadd7
mov esp, ebp
pop ebp
ret 0x24
push 0x30
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.004ded20
mov eax, dword [0x54a630]
add esp, 0xc
mov dword [esp + 0x18], 0x30
test eax, eax
jne 0x418188
mov edx, 0x54a630
xor ecx, ecx
call fcn.00417e10
mov eax, dword [0x54a630]
mov ebx, dword [sym.imp.USER32.dll_GetClassInfoExW]
lea ecx, [esp + 0x18]
push ecx
push esi
push eax
call ebx
test eax, eax
jne 0x41832a
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov edi, eax
test edi, edi
je 0x4181f6
mov eax, dword [0x54a630]
test eax, eax
jne 0x4181c5
mov edx, 0x54a630
xor ecx, ecx
call fcn.00417e10
mov eax, dword [0x54a630]
lea ecx, [esp + 0x18]
push ecx
push edi
push eax
call ebx
push esi
push edi
test eax, eax
je 0x4181e6
call fcn.004f276a
add esp, 8
test eax, eax
je 0x41832a
jmp 0x4181f6
call fcn.004f276a
add esp, 8
test eax, eax
jne 0x41832a
mov eax, dword [esp + 0x20]
test eax, eax
push 0x7f00
cmove eax, dword [sym.imp.USER32.dll_DefWindowProcW]
push 0
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
mov edx, dword [esp + 0x1c]
mov ecx, 3
test edx, edx
je 0x418226
mov ecx, edx
or ecx, 3
add dword [esp + 0x28], 8
add dword [esp + 0x24], 8
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x1c], ecx
xor ecx, ecx
mov dword [esp + 0x20], 0x417ec0
mov dword [esp + 0x40], esi
mov dword [esp + 0x34], eax
test edi, edi
je 0x418262
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418253
sub ecx, edx
sar ecx, 1
push 0x114
lea eax, [esp + 0x50]
push 0
push eax
lea ebx, [ecx*2 + 2]
call fcn.004ded20
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [esp + 0x48], eax
test edi, edi
je 0x41829d
cmp ebx, 2
jbe 0x41829d
push ebx
lea eax, [esp + 0x50]
push edi
push eax
call fcn.004def30
add esp, 0xc
lea ecx, [ebx + 4]
xor eax, eax
test ecx, ecx
je 0x41830d
cmp ecx, 0x40
jb 0x418303
movaps xmm2, xmmword [0x5374b0]
lea edi, [esp + 0x48]
mov edx, ecx
lea ebx, [esp + 0x68]
and edx, 0xffffffc0
lea esi, [esp + 0x78]
movups xmm0, xmmword [edi + eax]
movaps xmm1, xmm2
xorps xmm0, xmm2
movups xmmword [edi + eax], xmm0
movups xmm0, xmmword [esp + eax + 0x58]
xorps xmm0, xmm2
movups xmmword [esp + eax + 0x58], xmm0
movups xmm0, xmmword [ebx + eax]
xorps xmm1, xmm0
movups xmmword [ebx + eax], xmm1
movups xmm0, xmmword [esi + eax]
xorps xmm0, xmm2
movups xmmword [esi + eax], xmm0
add eax, 0x40
cmp eax, edx
jb 0x4182c3
mov esi, dword [esp + 0x14]
cmp eax, ecx
jae 0x41830d
xor byte [esp + eax + 0x48], 0x79
inc eax
cmp eax, ecx
jb 0x418303
lea eax, [esp + 0x48]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
push dword [esp + 0x40]
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
mov ecx, dword [esp + 0x164]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004dadd7
mov esp, ebp
pop ebp
ret 0x24