Function at 0x403470
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x444]
sub esp, 0x444
push 0xffffffffffffffff
push 0x42c0a0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x437a60]
xor eax, ebp
mov dword [ebp + 0x440], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], ebx
cmp byte [0x437098], bl
je 0x4034c9
mov byte [0x437098], bl
call fcn.00402e60
mov esi, dword [esi + 0x18]
cmp esi, ebx
je 0x4034e5
cmp dword [esi + 4], ebx
jne 0x4034e0
mov eax, dword [esi]
push eax
call fcn.00417b60
mov dword [esi + 4], eax
mov ecx, dword [esi + 4]
jmp 0x4034e7
xor ecx, ecx
lea edx, [ebp]
lea ebx, [ebx]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x4034f0
lea ecx, [ebp]
push 0x5c
push ecx
call fcn.00418c50
mov edi, eax
add esp, 8
test edi, edi
jne 0x403515
xor al, al
jmp 0x40371c
lea edx, [ebp]
mov esi, edi
sub esi, edx
push esi
mov eax, edx
push eax
lea ecx, [ebp + 0x400]
push ecx
call fcn.00419070
lea edx, [ebp + 0x400]
push str.HKEY_LOCAL_MACHINE
push edx
mov byte [ebp + esi + 0x400], 0
call fcn.00418ff3
add esp, 0x14
test eax, eax
jne 0x403556
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
jmp 0x4035fc
lea eax, [ebp + 0x400]
push str.HKEY_CLASSES_ROOT
push eax
call fcn.00418ff3
add esp, 8
test eax, eax
jne 0x403578
mov ebx, SysReAllocStringLen
jmp 0x4035fc
lea ecx, [ebp + 0x400]
push str.HKEY_CURRENT_CONFIG
push ecx
call fcn.00418ff3
add esp, 8
test eax, eax
jne 0x403597
mov ebx, VariantClear
jmp 0x4035fc
lea edx, [ebp + 0x400]
push str.HKEY_CURRENT_USER
push edx
call fcn.00418ff3
add esp, 8
test eax, eax
jne 0x4035b6
mov ebx, SysReAllocStringLen
jmp 0x4035fc
lea eax, [ebp + 0x400]
push str.HKEY_USERS
push eax
call fcn.00418ff3
add esp, 8
test eax, eax
jne 0x4035d5
mov ebx, SysStringLen
jmp 0x4035fc
lea ecx, [ebp + 0x400]
push str.HKEY_PERFORMANCE_DATA
push ecx
call fcn.00418ff3
add esp, 8
test eax, eax
jne 0x4035f4
mov ebx, reloc.OLEAUT32.dll_SysReAllocStringLen
jmp 0x4035fc
test ebx, ebx
je 0x40350e
xor esi, esi
push esi
lea edx, [ebp - 0x18]
push edx
push esi
push 0x20006
push esi
push esi
push esi
inc edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40371a
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebx + 8]
sub eax, 1
je 0x40369c
sub eax, 3
jne 0x403710
mov esi, dword [ebx + 0x20]
test esi, esi
je 0x40364d
cmp dword [esi + 4], eax
jne 0x403648
mov eax, dword [esi]
push eax
call fcn.00417b60
mov dword [esi + 4], eax
mov esi, dword [esi + 4]
jmp 0x40364f
xor esi, esi
push esi
call fcn.0041905b
mov esi, dword [ebx + 0x1c]
add esp, 4
mov dword [ebp - 0x1c], eax
test esi, esi
je 0x40368a
cmp dword [esi + 4], 0
jne 0x403673
mov ecx, dword [esi]
push ecx
call fcn.00417b60
mov dword [esi + 4], eax
mov esi, dword [esi + 4]
mov eax, dword [ebp - 0x18]
push 4
lea edx, [ebp - 0x1c]
push edx
push 4
push 0
push esi
push eax
jmp 0x40370a
mov eax, dword [ebp - 0x18]
push 4
lea edx, [ebp - 0x1c]
push edx
push 4
xor esi, esi
push esi
push esi
push eax
jmp 0x40370a
mov eax, dword [ebx + 0x20]
cmp eax, esi
je 0x4036b5
mov eax, dword [eax]
cmp eax, esi
je 0x4036b5
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov dword [ebp - 0x14], eax
jmp 0x4036b8
mov dword [ebp - 0x14], esi
mov esi, dword [ebx + 0x20]
test esi, esi
je 0x4036d5
cmp dword [esi + 4], 0
jne 0x4036d0
mov ecx, dword [esi]
push ecx
call fcn.00417b60
mov dword [esi + 4], eax
mov edi, dword [esi + 4]
jmp 0x4036d7
xor edi, edi
mov esi, dword [ebx + 0x1c]
test esi, esi
je 0x4036fa
cmp dword [esi + 4], 0
jne 0x4036ef
mov edx, dword [esi]
push edx
call fcn.00417b60
mov dword [esi + 4], eax
mov esi, dword [esi + 4]
jmp 0x4036fc
xor esi, esi
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push eax
push edi
push 1
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x440]
xor ecx, ebp
call fcn.00418a11
add ebp, 0x444
mov esp, ebp
pop ebp
ret