Function at 0x4157d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53a4e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x24], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x78]
call fcn.00406cf0
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x34]
or eax, 1
or eax, 0x20006
push eax
push 0
mov ecx, dword [ebp - 0x14]
add ecx, 4
call fcn.0040b120
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4159ab
mov eax, dword [ebp - 0x14]
add eax, 4
push eax
lea ecx, [ebp - 0x48]
call fcn.00406bd0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.00407080
mov byte [ebp - 4], 2
push 0x53df0c
lea ecx, [ebp - 0x90]
call fcn.00406cf0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x90]
push edx
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.00418da0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x90]
call fcn.00407a00
lea ecx, [ebp - 0x30]
call fcn.0040cda0
sub eax, 1
push eax
lea ecx, [ebp - 0x30]
call fcn.004156a0
push eax
lea ecx, [ebp - 0x60]
call fcn.00406bd0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x60]
call fcn.0040b120
push eax
lea ecx, [ebp - 0x48]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.00418f00
push 0x53df10
lea edx, [ebp - 0x48]
push edx
mov ecx, dword [ebp - 0x14]
call fcn.00418f00
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x34]
or edx, 1
or edx, 0x20006
push edx
push 0
lea ecx, [ebp - 0x48]
call fcn.0040b120
push eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x415946
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x60]
call fcn.00407a00
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.00407aa0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00407a00
jmp 0x4159ee
lea edx, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x60]
call fcn.0040b120
push eax
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x415987
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x60]
call fcn.00407a00
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.00407aa0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00407a00
jmp 0x4159ee
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x60]
call fcn.00407a00
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.00407aa0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00407a00
lea ecx, [ebp - 0x78]
call fcn.00404da0
shl eax, 1
push eax
lea ecx, [ebp - 0x78]
call fcn.0040b120
push eax
push 1
push 0
mov ecx, dword [ebp - 0x14]
add ecx, 0x1c
call fcn.0040b120
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4159df
jmp 0x4159ee
mov dword [ebp - 0x24], 1
xor edx, edx
jne 0x415819
cmp dword [ebp - 0x20], 0
je 0x4159fe
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1c], 0
je 0x415a0e
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x24], 0
je 0x415a1a
mov byte [ebp - 0xd], 1
jmp 0x415a1e
mov byte [ebp - 0xd], 0
mov dl, byte [ebp - 0xd]
mov byte [ebp - 0x15], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.00407a00
mov al, byte [ebp - 0x15]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4