Function at 0x434640
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d5ec8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x50f52c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [edi + 0x54]
neg ebx
sbb ebx, ebx
and ebx, 0x100
or ebx, 0xf003f
call fcn.00434310
lea esi, [edi + 4]
test eax, eax
je 0x4346ae
cmp dword [esi + 0x18], 8
jb 0x434697
mov eax, dword [esi + 4]
jmp 0x43469a
lea eax, [esi + 4]
mov edx, dword [edi]
lea ecx, [ebp - 0x30]
push ecx
push ebx
xor ebx, ebx
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
jmp 0x4346d9
cmp dword [esi + 0x18], 8
jb 0x4346b9
mov eax, dword [esi + 4]
jmp 0x4346bc
lea eax, [esi + 4]
lea ecx, [ebp - 0x70]
push ecx
lea edx, [ebp - 0x30]
push edx
push 0
push ebx
push 0
push 0
push 0
push eax
mov eax, dword [edi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
xor ebx, ebx
push ebx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x18], ebx
push 0x4e25d8
cmp eax, ebx
jne 0x43488c
xor ecx, ecx
mov word [ebp - 0x28], cx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 7
call fcn.00401860
mov dword [ebp - 4], ebx
push esi
lea edx, [ebp - 0x50]
push str.Successfully_created
push edx
call fcn.00401a30
mov byte [ebp - 4], 1
push 0x4e253c
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.00401b00
add esp, 0x18
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
push ecx
push eax
call fcn.00419d40
mov byte [ebp - 4], 1
mov esi, 8
cmp dword [ebp - 0x54], esi
jb 0x434752
mov edx, dword [ebp - 0x68]
push edx
call fcn.004b29fa
add esp, 4
xor eax, eax
mov dword [ebp - 0x54], 7
mov dword [ebp - 0x58], ebx
mov word [ebp - 0x68], ax
mov byte [ebp - 4], al
cmp dword [ebp - 0x38], esi
jb 0x434776
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.004b29fa
add esp, 4
xor edx, edx
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], ebx
mov word [ebp - 0x4c], dx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], esi
jb 0x43479e
mov eax, dword [ebp - 0x28]
push eax
call fcn.004b29fa
add esp, 4
mov edx, dword [edi + 0x34]
push ebx
lea esi, [edi + 0x20]
push 0x4e25d8
xor ecx, ecx
push edx
mov word [ebp - 0x28], cx
push ebx
mov ecx, esi
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
call fcn.00401fe0
test eax, eax
je 0x434878
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 3
mov eax, dword [edi + 0x4c]
sub eax, 1
je 0x43480f
sub eax, 3
jne 0x43484f
cmp dword [esi + 0x18], 8
jb 0x434802
mov esi, dword [esi + 4]
push 4
add edi, 0x44
push edi
push 4
jmp 0x434843
add esi, 4
push 4
add edi, 0x44
push edi
push 4
jmp 0x434843
mov edx, dword [edi + 0x44]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00409f50
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
mov edx, 8
add eax, eax
cmp dword [ebp - 0x14], edx
jae 0x434830
lea ecx, [ebp - 0x28]
cmp dword [esi + 0x18], edx
jb 0x43483a
mov esi, dword [esi + 4]
jmp 0x43483d
add esi, 4
push eax
mov eax, dword [edi + 0x4c]
push ecx
push eax
mov ecx, dword [ebp - 0x30]
push ebx
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 8
jb 0x434868
mov edx, dword [ebp - 0x28]
push edx
call fcn.004b29fa
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x434952
xor edx, edx
mov edi, 7
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], edi
mov word [ebp - 0x28], dx
call fcn.00401860
mov dword [ebp - 4], 4
push esi
lea eax, [ebp - 0x6c]
push str.Failed_to_create
push eax
call fcn.00401a30
mov byte [ebp - 4], 5
push 0x4e253c
push eax
lea ecx, [ebp - 0x50]
push ecx
call fcn.00401b00
add esp, 0x18
mov byte [ebp - 4], 6
lea edx, [ebp - 0x2c]
push edx
push eax
call fcn.00419d40
mov byte [ebp - 4], 5
mov esi, 8
cmp dword [ebp - 0x38], esi
jb 0x4348f6
mov eax, dword [ebp - 0x4c]
push eax
call fcn.004b29fa
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], ebx
mov word [ebp - 0x4c], cx
mov byte [ebp - 4], 4
cmp dword [ebp - 0x54], esi
jb 0x434917
mov edx, dword [ebp - 0x68]
push edx
call fcn.004b29fa
add esp, 4
xor eax, eax
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x58], ebx
mov word [ebp - 0x68], ax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], esi
jb 0x43493b
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.004b29fa
add esp, 4
mov eax, dword [ebp - 0x34]
xor edx, edx
push eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], dx
call fcn.0041a280
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b3057
mov esp, ebp
pop ebp
ret