Function at 0x40d54a
Capabilities:
Set registry value

Disassembly:
push 0x24
mov eax, 0x4538af
call fcn.0043d0bf
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0x26
jne 0x40d774
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.004053a9
mov byte [ebp - 4], 1
mov esi, 0x45c10c
push esi
push 0x45e7c0
lea eax, [ebp - 0x10]
push eax
call fcn.00409858
push esi
push 0x45e7c4
lea eax, [ebp - 0x10]
push eax
call fcn.00409858
lea ecx, [ebp - 0x30]
call fcn.004323cc
mov byte [ebp - 4], 2
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x45d44c
lea edi, [ebp - 0x30]
call fcn.00401541
mov byte [ebp - 4], 3
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.004053a9
mov byte [ebp - 4], 4
mov byte [ebp - 4], 2
call fcn.00415250
pop ecx
pop ecx
push esi
lea ecx, [ebp - 0x10]
call fcn.0040165e
cmp dword [ebp - 0x28], ebx
mov dword [ebp - 0x18], ebx
jle 0x40d6c2
push dword [ebp - 0x18]
lea ecx, [ebp - 0x30]
call fcn.00406809
push eax
lea ecx, [ebp - 0x14]
call fcn.004053a9
mov byte [ebp - 4], 5
cmp dword [ebp - 0x18], 3
mov eax, dword [ebp - 0x14]
jge 0x40d64c
mov esi, dword [eax - 0xc]
cmp esi, ebx
jle 0x40d6a7
lea edi, [esi - 1]
jmp 0x40d625
mov eax, dword [ebp - 0x14]
cmp edi, ebx
jl 0x40d788
cmp edi, dword [eax - 0xc]
jg 0x40d788
movzx eax, word [eax + esi*2 - 2]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040427e
dec esi
dec edi
cmp esi, ebx
jg 0x40d622
jmp 0x40d6a7
mov ecx, dword [eax - 0xc]
xor esi, esi
cmp ecx, ebx
jle 0x40d6a7
lea edx, [esi + 1]
cmp ecx, edx
jle 0x40d67d
cmp edx, ebx
jl 0x40d788
cmp edx, ecx
jg 0x40d788
movzx eax, word [eax + esi*2 + 2]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040427e
mov eax, dword [ebp - 0x14]
cmp esi, ebx
jl 0x40d788
cmp esi, dword [eax - 0xc]
jg 0x40d788
movzx eax, word [eax + esi*2]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040427e
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 0xc]
inc esi
inc esi
cmp esi, ecx
jl 0x40d655
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.00406294
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x28]
jl 0x40d5f1
lea ecx, [ebp - 0x1c]
call fcn.00401b4c
mov byte [ebp - 4], 6
push dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push 0x45e7c8
push eax
call fcn.00402475
add esp, 0xc
call fcn.00415209
neg al
mov dword [ebp - 0x18], ebx
sbb eax, eax
and eax, 0x200
add eax, 0x20006
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x14]
push ecx
push eax
push ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x14], ebx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40d745
lea ecx, [ebp - 0x18]
call fcn.0040688f
cmp eax, ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], ecx
jne 0x40d745
push 4
lea eax, [ebp - 0x14]
push eax
push 4
push ebx
push str.DeploymentFlags
push ecx
mov dword [ebp - 0x14], 2
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x18]
call fcn.0040688f
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.00406294
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.0043257d
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x10]
call fcn.00406294
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00406294
call fcn.0043d197
ret 4
push 0x80070057
call fcn.004017cd
int3