Function at 0x434970
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d5f30
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push esi
push edi
mov eax, dword [0x50f52c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor eax, eax
mov dword [ebp - 4], eax
mov esi, dword [edi + 0x54]
neg esi
sbb esi, esi
and esi, 0x100
mov dword [ebp - 0x34], eax
or esi, 0xf003f
call fcn.00434310
lea ebx, [edi + 4]
test eax, eax
je 0x4349e3
cmp dword [ebx + 0x18], 8
jb 0x4349cc
mov eax, dword [ebx + 4]
jmp 0x4349cf
lea eax, [ebx + 4]
mov edx, dword [edi]
lea ecx, [ebp - 0x14]
push ecx
push esi
xor esi, esi
push esi
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
jmp 0x434a0e
cmp dword [ebx + 0x18], 8
jb 0x4349ee
mov eax, dword [ebx + 4]
jmp 0x4349f1
lea eax, [ebx + 4]
lea ecx, [ebp - 0x54]
push ecx
lea edx, [ebp - 0x14]
push edx
push 0
push esi
push 0
push 0
push 0
push eax
mov eax, dword [edi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
xor esi, esi
mov dword [ebp - 0x10], eax
cmp eax, esi
jne 0x434b5b
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0xc]
mov edi, 8
lea ecx, [ecx + ecx + 2]
cmp dword [ebp + 0x20], edi
jae 0x434a30
lea eax, [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 0x14]
push eax
mov ebx, 1
push ebx
push esi
push 0x4e25d8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push str.REGISTRY
test eax, eax
jne 0x434ad8
lea ecx, [ebp - 0x50]
call fcn.004019e0
mov byte [ebp - 4], bl
push str.Successfully_set_default_value.
lea ecx, [ebp - 0x30]
call fcn.004019e0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x50]
push edx
lea eax, [ebp - 0x30]
push eax
call fcn.00419d40
mov byte [ebp - 4], bl
cmp dword [ebp - 0x18], edi
jb 0x434a92
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004b29fa
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], dx
mov byte [ebp - 4], dl
cmp dword [ebp - 0x38], edi
jb 0x434ab6
mov eax, dword [ebp - 0x4c]
push eax
call fcn.004b29fa
add esp, 4
mov edx, dword [ebp - 0x14]
xor ecx, ecx
push edx
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], esi
mov word [ebp - 0x4c], cx
mov dword [ebp - 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x434c23
lea ecx, [ebp - 0x30]
call fcn.004019e0
mov bl, 3
mov byte [ebp - 4], bl
push str.Failed_to_set_default_value.
lea ecx, [ebp - 0x50]
call fcn.004019e0
mov byte [ebp - 4], 4
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x50]
push eax
call fcn.00419d40
mov byte [ebp - 4], bl
cmp dword [ebp - 0x38], edi
jb 0x434b17
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.004b29fa
add esp, 4
xor edx, edx
mov edi, 7
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], esi
mov word [ebp - 0x4c], dx
mov byte [ebp - 4], dl
cmp dword [ebp - 0x18], 8
jb 0x434b3d
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004b29fa
add esp, 4
mov edx, dword [ebp - 0x14]
xor ecx, ecx
mov dword [ebp - 0x18], edi
push edx
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], cx
lea edi, [ecx + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x434c23
push esi
xor eax, eax
mov edi, 7
push 0x4e25d8
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], ax
call fcn.00401860
mov byte [ebp - 4], 5
push ebx
lea ecx, [ebp - 0x70]
push str.Failed_to_create
push ecx
call fcn.00401a30
mov bl, 6
mov byte [ebp - 4], bl
push 0x4e253c
push eax
lea edx, [ebp - 0x50]
push edx
call fcn.00401b00
add esp, 0x18
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x30]
push ecx
push eax
call fcn.00419d40
mov byte [ebp - 4], bl
mov ebx, 8
cmp dword [ebp - 0x38], ebx
jb 0x434bcb
mov edx, dword [ebp - 0x4c]
push edx
call fcn.004b29fa
add esp, 4
xor eax, eax
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], esi
mov word [ebp - 0x4c], ax
mov byte [ebp - 4], 5
cmp dword [ebp - 0x58], ebx
jb 0x434bec
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.004b29fa
add esp, 4
xor edx, edx
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x5c], esi
mov word [ebp - 0x6c], dx
mov byte [ebp - 4], dl
cmp dword [ebp - 0x18], ebx
jb 0x434c0c
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004b29fa
add esp, 4
mov edx, dword [ebp - 0x10]
xor ecx, ecx
push edx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], cx
call fcn.0041a280
mov edi, ebx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x20], edi
jb 0x434c3b
mov eax, dword [ebp + 0xc]
push eax
call fcn.004b29fa
add esp, 4
mov eax, dword [ebp - 0x34]
xor ecx, ecx
mov dword [ebp + 0x20], 7
mov dword [ebp + 0x1c], esi
mov word [ebp + 0xc], cx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c