Function at 0x429870
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451f29
mov eax, dword fs:[0]
push eax
sub esp, 0x1d8
mov eax, dword [0x46759c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x68]
push ecx
push 0
push 2
push 0
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x74], eax
mov byte [ebp - 0x6d], 0
cmp dword [ebp - 0x74], 0
jne 0x429a15
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.004324d8
add esp, 4
lea edx, [eax + eax + 2]
mov dword [ebp - 0x78], edx
mov eax, dword [ebp - 0x78]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 1
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x68]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
jne 0x42990b
mov byte [ebp - 0x6d], 1
jmp 0x429a10
xor ecx, ecx
je 0x429914
jmp 0x429a10
call fcn.0040bd10
cmp dword [eax], 1
jl 0x429928
call fcn.00406400
cmp dword [eax], 0
jne 0x42992d
jmp 0x429a10
mov edx, dword [ebp + 0x14]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.0042a140
add esp, 8
mov dword [ebp - 0x1c0], eax
mov ecx, dword [ebp - 0x1c0]
mov dword [ebp - 0x1c4], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x1c4]
push edx
push str.stringValue_
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x48]
push ecx
call fcn.0042a140
add esp, 8
mov dword [ebp - 0x1c8], eax
mov edx, dword [ebp - 0x1c8]
mov dword [ebp - 0x1cc], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1cc]
push eax
push str.CreateRegistryString___failed:_RegSetValueEx___failed:_stringName_
push 1
lea ecx, [ebp - 0x11c]
call fcn.00406430
mov dword [ebp - 0x1d0], eax
mov ecx, dword [ebp - 0x1d0]
mov dword [ebp - 0x1d4], ecx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1d4]
call fcn.0040bab0
push eax
call fcn.0040bd20
add esp, 8
push eax
call fcn.0040c360
add esp, 8
push eax
call fcn.0040bd20
add esp, 8
push eax
call fcn.0040c360
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x11c]
call fcn.00406450
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00407160
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00407160
jmp 0x429aca
xor edx, edx
je 0x429a1e
jmp 0x429aca
call fcn.0040bd10
cmp dword [eax], 1
jl 0x429a32
call fcn.00406400
cmp dword [eax], 0
jne 0x429a37
jmp 0x429aca
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x64]
push ecx
call fcn.0042a140
add esp, 8
mov dword [ebp - 0x1d8], eax
mov edx, dword [ebp - 0x1d8]
mov dword [ebp - 0x1dc], edx
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x1dc]
push eax
push str.CreateRegistryString___failed:_RegCreateKeyEx___failed:_path_
push 1
lea ecx, [ebp - 0x1bc]
call fcn.00406430
mov dword [ebp - 0x1e0], eax
mov ecx, dword [ebp - 0x1e0]
mov dword [ebp - 0x1e4], ecx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x1e4]
call fcn.0040bab0
push eax
call fcn.0040bd20
add esp, 8
push eax
call fcn.0040c360
add esp, 8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1bc]
call fcn.00406450
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.00407160
cmp dword [ebp - 0x68], 0
je 0x429ada
mov edx, dword [ebp - 0x68]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004320d5
mov esp, ebp
pop ebp
ret