Function at 0x404630
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
call fcn.00419aa0
test eax, eax
jne 0x404646
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 4], eax
call fcn.00419aa0
test eax, eax
jne 0x404669
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
push ebp
call eax
mov ebp, eax
add ebp, 0x10
call fcn.00419aa0
test eax, eax
jne 0x40468b
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
push ebx
push esi
mov ecx, eax
mov eax, dword [edx + 0xc]
push edi
call eax
mov ecx, dword [esp + 0x20]
mov ebx, eax
push 0x43d4c8
push ecx
add ebx, 0x10
mov dword [esp + 0x18], 0
call fcn.00423ae2
add esp, 8
test eax, eax
jne 0x4046c5
mov esi, 0x80000000
mov dword [esp + 0x10], esi
jmp 0x4046c9
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x20]
push 0x43d4b4
push edx
call fcn.00423ae2
add esp, 8
test eax, eax
jne 0x4046e8
mov esi, 0x80000001
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x20]
push 0x43d4a0
push eax
call fcn.00423ae2
add esp, 8
test eax, eax
jne 0x404707
mov esi, 0x80000002
mov dword [esp + 0x10], esi
mov ecx, dword [esp + 0x20]
push 0x43d494
push ecx
call fcn.00423ae2
add esp, 8
test eax, eax
jne 0x404726
mov esi, 0x80000003
mov dword [esp + 0x10], esi
mov edx, dword [esp + 0x20]
push 0x43d480
push edx
call fcn.00423ae2
add esp, 8
test eax, eax
jne 0x404745
mov esi, VariantClear
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x2c]
push str.REG_SZ
push eax
call fcn.00423ae2
add esp, 8
mov edi, 1
test eax, eax
je 0x404764
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
push str.REG_BINARY
push ecx
call fcn.00423ae2
add esp, 8
test eax, eax
jne 0x40477d
lea edi, [eax + 3]
mov edx, dword [esp + 0x2c]
push str.REG_DWORD
push edx
call fcn.00423ae2
add esp, 8
test eax, eax
jne 0x404796
lea edi, [eax + 4]
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov eax, dword [esp + 0x30]
mov ecx, dword [eax - 0xc]
mov edx, dword [esp + 0x28]
inc ecx
push ecx
push eax
mov eax, dword [esp + 0x18]
push edi
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebx - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
pop edi
pop esi
pop ebx
test ecx, ecx
jg 0x404800
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40481c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40483c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40485c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40487c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40489c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4048bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4048dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop ebp
add esp, 0xc
ret 0x14