Function at 0x4081d0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x50d47d
mov eax, dword fs:[0]
push eax
sub esp, 0x16c
mov eax, dword [0x53c1a4]
xor eax, esp
mov dword [esp + 0x168], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53c1a4]
xor eax, esp
push eax
lea eax, [esp + 0x180]
mov dword fs:[0], eax
xor ebp, ebp
mov esi, ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
lea ecx, [esp + 0x98]
mov dword [esp + 0x188], ebp
call fcn.00408640
lea ecx, [esp + 0x7c]
mov byte [esp + 0x188], 1
call fcn.004086c0
lea ecx, [esp + 0x60]
mov byte [esp + 0x188], 2
call fcn.00408730
mov byte [esp + 0x188], 3
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0x4c], ax
push ebp
lea eax, [esp + 0xa0]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x2c], 0x64
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], ebp
call fcn.00408f70
mov bl, 4
mov byte [esp + 0x188], bl
cmp dword [esp + 0x90], ebp
je 0x4082e3
lea ecx, [esp + 0x7c]
push ecx
push 0x51ff74
lea edi, [esp + 0x30]
call fcn.00408920
add esp, 8
push ebp
push eax
or eax, 0xffffffff
lea esi, [esp + 0x4c]
mov byte [esp + 0x190], 5
call fcn.00408810
mov byte [esp + 0x188], bl
cmp dword [esp + 0x40], 8
jb 0x4082df
mov edx, dword [esp + 0x2c]
push edx
call fcn.004ea82f
add esp, 4
mov esi, dword [esp + 0x18]
cmp dword [esp + 0x74], ebp
je 0x408334
lea eax, [esp + 0x60]
push eax
push 0x51ff78
lea edi, [esp + 0x30]
call fcn.00408920
add esp, 8
push ebp
push eax
or eax, 0xffffffff
lea esi, [esp + 0x4c]
mov byte [esp + 0x190], 6
call fcn.00408810
mov byte [esp + 0x188], bl
cmp dword [esp + 0x40], 8
jb 0x408330
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.004ea82f
add esp, 4
mov esi, dword [esp + 0x18]
push 0xc8
lea edx, [esp + 0xb8]
push ebp
push edx
call fcn.004f08c0
add esp, 0xc
lea eax, [esp + 0x14]
push eax
push 0x2001f
push ebp
push str.SOFTWAREWow6432NodeMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
push SysReAllocString
mov dword [esp + 0x28], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x408439
cmp dword [esi + 0x18], 8
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ebp
lea ebx, [esi + 4]
jb 0x40838a
mov eax, dword [ebx]
jmp 0x40838c
mov eax, ebx
push eax
lea edx, [esp + 0x20]
push edx
lea edi, [esp + 0x2c]
lea esi, [esp + 0xbc]
call fcn.00408b70
test eax, eax
jne 0x4083da
mov eax, esi
lea edx, [eax + 2]
jmp 0x4083b0
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4083b0
sub eax, edx
sar eax, 1
lea ecx, [esp + 0xb4]
push ecx
mov edi, eax
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x48]
call fcn.004087a0
test eax, eax
je 0x40841e
mov esi, dword [esp + 0x48]
mov eax, 8
cmp dword [esp + 0x5c], eax
jae 0x4083ed
lea esi, [esp + 0x48]
mov edx, dword [esp + 0x18]
cmp dword [edx + 0x18], eax
jb 0x4083fa
mov edi, dword [ebx]
jmp 0x4083fc
mov edi, ebx
cmp esi, ebp
je 0x40841e
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push esi
mov esi, dword [esp + 0x1c]
push 1
push ebp
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x408422
mov esi, dword [esp + 0x14]
cmp esi, ebp
je 0x408431
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x1c], ebp
mov esi, dword [esp + 0x18]
mov dword [esp + 0x20], ebp
push 0xc8
lea ecx, [esp + 0xb8]
push ebp
push ecx
call fcn.004f08c0
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push 0x2001f
push ebp
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
push SysReAllocString
mov dword [esp + 0x28], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x40854f
mov ecx, dword [esp + 0x1c]
xor eax, eax
cmp ecx, ebp
je 0x408487
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ebp
cmp eax, ebp
jne 0x40854f
cmp dword [esi + 0x18], 8
lea ebx, [esi + 4]
jb 0x4084a8
mov eax, dword [ebx]
jmp 0x4084aa
mov eax, ebx
push eax
lea edx, [esp + 0x20]
push edx
lea edi, [esp + 0x2c]
lea esi, [esp + 0xbc]
call fcn.00408b70
test eax, eax
jne 0x4084fa
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4084d0
sub eax, edx
sar eax, 1
lea ecx, [esp + 0xb4]
push ecx
mov edi, eax
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x48]
call fcn.004087a0
test eax, eax
je 0x40853c
mov esi, dword [esp + 0x48]
mov eax, 8
cmp dword [esp + 0x5c], eax
jae 0x40850d
lea esi, [esp + 0x48]
mov edx, dword [esp + 0x18]
cmp dword [edx + 0x18], eax
jb 0x40851a
mov edi, dword [ebx]
jmp 0x40851c
mov edi, ebx
cmp esi, ebp
je 0x40853c
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x14]
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push ebp
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40854f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x1c], ebp
mov edi, 8
cmp dword [esp + 0x5c], edi
jb 0x408567
mov edx, dword [esp + 0x48]
push edx
call fcn.004ea82f
add esp, 4
xor eax, eax
mov esi, 7
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], ebp
mov word [esp + 0x48], ax
cmp dword [esp + 0x78], edi
jb 0x40858e
mov ecx, dword [esp + 0x64]
push ecx
call fcn.004ea82f
add esp, 4
xor edx, edx
mov dword [esp + 0x78], esi
mov dword [esp + 0x74], ebp
mov word [esp + 0x64], dx
cmp dword [esp + 0x94], edi
jb 0x4085b6
mov eax, dword [esp + 0x80]
push eax
call fcn.004ea82f
add esp, 4
xor ecx, ecx
mov dword [esp + 0x94], esi
mov dword [esp + 0x90], ebp
mov word [esp + 0x80], cx
cmp dword [esp + 0xb0], edi
jb 0x4085e7
mov edx, dword [esp + 0x9c]
push edx
call fcn.004ea82f
add esp, 4
xor eax, eax
mov word [esp + 0x9c], ax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xb0], esi
mov dword [esp + 0xac], ebp
cmp eax, ebp
je 0x40860e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [esp + 0x180]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x168]
xor ecx, esp
call fcn.004ea83a
add esp, 0x178
ret