Function at 0x413acf
Capabilities:
Resolve function by parsing pe exports
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov dword [esp + 0x2c], 0x2135
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x2c], 2
mov dword [esp + 0x38], 0xfffffffc
dec dword [esp + 0x38]
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDesktopWindow]
mov byte [esp + 0x13], 0
cmp byte [esp + 0x13], 0
push esi
push edi
je 0x413b22
push 0x25bb
call ebx
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
push 3
pop edi
mov dword [esp + 0x20], 0
lea ecx, [esp + 0x54]
mov dword [esp + 0x14], 0
mov dword [esp + 0x3c], 0xfffffff7
push edi
call fcn.0040fd61
push 4
pop esi
mov dword [esp + 0x40], esi
lea ecx, [esp + 0x60]
push esi
call fcn.0040fd61
mov dword [esp + 0x24], 0xda972737
mov dword [esp + 0x38], 0x320ba2c1
mov dword [esp + 0x10], 0
jmp 0x413b85
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x54]
mov dword [eax + ecx*4], 0x9ba8
inc dword [esp + 0x10]
cmp dword [esp + 0x10], edi
jl 0x413b72
mov dword [esp + 0x10], 0
jmp 0x413ba8
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x60]
mov dword [eax + ecx*4], 0xa9f4f9a0
inc dword [esp + 0x10]
cmp dword [esp + 0x10], esi
jl 0x413b95
mov dword [esp + 0x10], 0
jmp 0x413bcb
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0x80], 0xffffffff
inc dword [esp + 0x10]
cmp dword [esp + 0x10], esi
jl 0x413bb8
mov eax, dword [esp + 0x14]
mov eax, dword [esp + 0x14]
mov eax, dword [esp + 0x14]
mov eax, dword [esp + 0x14]
neg eax
sbb eax, eax
xor edx, edx
neg eax
add eax, 0xffffd8d8
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x3c]
mov eax, dword [esp + 0x14]
mov eax, dword [esp + 0x14]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x14]
cmp ecx, eax
setg dl
mov dword [esp + 0x40], edx
mov eax, dword [esp + 0x3c]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], 0
mov dword [esp + 0x14], 0
cmp dword [esp + 0x14], edi
jg 0x413d10
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x2c], 0
mov dword [esp + 0x1c], 5
mov dword [esp + 0x24], 2
cmp dword [esp + 0x24], 0
jl 0x413cf9
mov ebx, dword [esp + 0x54]
mov eax, dword [esp + 0x24]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x60]
inc ecx
neg ecx
sbb ecx, ecx
inc ecx
add ecx, dword [eax + edx*4]
xor edx, edx
mov eax, dword [esp + 0x54]
cmp ecx, 0xffffffff
setg dl
xor ecx, ecx
add edx, dword [eax + esi*4]
mov eax, dword [esp + 0x24]
imul eax, edx
cmp eax, 0xffff
mov eax, dword [esp + 0x54]
setne cl
sub ecx, dword [eax + edi*4]
cmp ecx, dword [esp + 0x20]
je 0x413cba
mov eax, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
xor ecx, ecx
mov dword [esp + 0x40], eax
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x40]
cmp dword [edx + esi*4], eax
setge cl
mov dword [esp + 0x38], ecx
mov eax, dword [esp + 0x20]
add eax, dword [ebx + 4]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x24]
dec dword [esp + 0x24]
jns 0x413c64
push 3
pop edi
inc dword [esp + 0x14]
cmp dword [esp + 0x14], edi
jle 0x413c35
mov ebx, dword [sym.imp.USER32.dll_GetDesktopWindow]
push 4
pop esi
lea ecx, [esp + 0x60]
call fcn.0040fe33
lea ecx, [esp + 0x54]
call fcn.0040fe33
mov dword [esp + 0x50], 0xffffffff
call fcn.0041396f
mov dword [esp + 0x20], 0xfffffff2
jmp 0x413e62
lea ecx, [esp + 0x50]
call fcn.0041386d
mov dword [esp + 0x30], 0
lea ecx, [esp + 0x6c]
push esi
call fcn.0040fd61
mov dword [esp + 0x34], 0
jmp 0x413d74
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x6c]
mov dword [eax + ecx*4], 0xfffffffc
inc dword [esp + 0x34]
cmp dword [esp + 0x34], esi
jl 0x413d61
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x6c]
mov dword [eax + 4], ecx
mov dword [esp + 0x30], 0
jmp 0x413daa
mov byte [esp + 0x1b], 0
cmp byte [esp + 0x1b], 0
je 0x413da6
push 0
call ebx
push eax
call dword [sym.imp.USER32.dll_EndDialog]
inc dword [esp + 0x30]
cmp dword [esp + 0x30], edi
jle 0x413d8f
lea ecx, [esp + 0x6c]
call fcn.0040fe33
call fcn.004139fc
xor ecx, ecx
mov byte [esp + 0x2a], cl
mov dword [esp + 0x2c], 0x1a049fe3
mov dword [esp + 0x1c], ecx
jmp 0x413de2
mov eax, dword [esp + 0x1c]
mov dword [esp + eax*4 + 0x4c], 0xffffffff
inc dword [esp + 0x1c]
cmp dword [esp + 0x1c], 1
jl 0x413dd2
mov dword [esp + 0x2c], ecx
jmp 0x413e40
mov dword [esp + 0x1c], 1
mov dword [esp + 0x1c], ecx
jmp 0x413e36
mov byte [esp + 0x2b], cl
cmp byte [esp + 0x2b], 0
je 0x413e20
push 0x11ee
push ecx
push 0x26ab
push 0x1572
push ecx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + eax*4 + 0x4c]
mov eax, dword [esp + 0x1c]
mov dword [esp + eax*4 + 0x4c], ecx
inc dword [esp + 0x1c]
xor ecx, ecx
cmp dword [esp + 0x1c], ecx
jle 0x413dfd
inc dword [esp + 0x2c]
cmp dword [esp + 0x2c], 0xd
jle 0x413def
cmp byte [esp + 0x2a], 0
je 0x413e5e
call ebx
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
inc dword [esp + 0x20]
cmp dword [esp + 0x20], 0x10
jl 0x413d3c
xor ecx, ecx
mov dword [esp + 0x48], 1
mov dword [esp + 0x20], ecx
jmp 0x413e8d
mov eax, dword [esp + 0x20]
mov dword [esp + eax*4 + 0x78], 0x58e469ad
inc dword [esp + 0x20]
cmp dword [esp + 0x20], 2
jl 0x413e7d
mov byte [esp + 0x29], cl
cmp byte [esp + 0x29], cl
je 0x413eae
push ecx
push 0x15c9
push ecx
call ebx
push eax
call dword [sym.imp.USER32.dll_SetTimer]
inc dword [esp + 0x48]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret