Function at 0x40d154
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bee49
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x74
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x40d2ca
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax]
test eax, eax
je 0x40d1b1
push 0x1e5a
push 1
call fcn.0040d3cd
pop ecx
pop ecx
jmp 0x40d2c5
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x30], 0x56f4
mov dword [ebp - 0x4c], str.fsbeg_ldtrbqp_qymqk_kqvu_lylgqzwp_zxuzgljbt_udya_beq
cmp dword [ebp - 0x30], 0x593b
jle 0x40d275
and dword [ebp - 0x2c], 0
jmp 0x40d1e5
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x702d
jge 0x40d263
and dword [ebp - 0x28], 0
jmp 0x40d1fb
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x7acf
jge 0x40d25e
and dword [ebp - 0x20], 0
jmp 0x40d211
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x2159
jge 0x40d25c
and dword [ebp - 0x24], 0
jmp 0x40d227
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xa9f
jge 0x40d25a
mov eax, dword [ebp - 0x20]
imul eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
sub ecx, eax
mov eax, dword [ebp - 0x2c]
sar eax, cl
cdq
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], edx
push dword [ebp - 0x58]
push dword [ebp - 0x5c]
mov ecx, 0xab56b8
call fcn.00435439
jmp 0x40d220
jmp 0x40d20a
jmp 0x40d1f4
jmp 0x40d1de
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0
push dword [ebp - 0x44]
push dword [ebp - 0x48]
call fcn.004133d0
add esp, 0xc
and dword [ebp - 4], 0
cmp dword [ebp - 0x30], 0x568b
jge 0x40d29f
mov edx, dword [ebp - 0x4c]
mov ecx, 0xab56b8
call fcn.004371ef
jmp 0x40d2bb
or dword [ebp - 4], 0xffffffff
jmp 0x40d2c5
jmp 0x40d3bc
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xfffffffe
mov dword [ebp - 0x1c], 0
jmp 0x40d2f4
mov eax, dword [ebp - 0x1c]
dec eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffeb
jg 0x40d3ac
mov dword [ebp - 0x84], 0xfffffffd
mov dword [ebp - 0x80], 0xfffffffd
mov dword [ebp - 0x7c], 0xfffffffd
mov dword [ebp - 0x78], 0xfffffffd
lea ecx, [ebp - 0x12]
call fcn.0043567a
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x64]
call fcn.0043567d
push dword [eax + 4]
push dword [eax]
lea ecx, [ebp - 0x70]
call fcn.00435629
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40d35d
xor eax, eax
inc eax
jne 0x40d35d
and dword [ebp - 0x34], 0
jmp 0x40d364
mov dword [ebp - 0x34], 1
push 0
lea ecx, [ebp - 0x70]
call fcn.0043566b
mov ecx, dword [ebp - 0x34]
mov dword [eax], ecx
mov dword [ebp - 0x18], 0
jmp 0x40d383
mov eax, dword [ebp - 0x18]
dec eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xfffffffd
jl 0x40d39f
mov byte [ebp - 0x11], 0
movzx eax, byte [ebp - 0x11]
test eax, eax
je 0x40d39d
push 0
call dword [sym.imp.GDI32.dll_CreateBrushIndirect]
jmp 0x40d37c
lea ecx, [ebp - 0x70]
call fcn.0043564f
jmp 0x40d2ed
push dword [ebp - 0x50]
push 0
push dword [ebp - 0x54]
call fcn.00401ffe
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret