Function at 0x401000
Capabilities:
Set registry value

Disassembly:
sub esp, 0x7ec
mov eax, dword [0x4946c0]
xor eax, esp
mov dword [esp + 0x7e8], eax
push ebx
mov ebx, dword [esp + 0x7fc]
push ebp
mov ebp, dword [esp + 0x7f8]
push edi
mov edi, dword [esp + 0x800]
push str.AdvAPI32.dll
mov dword [esp + 0x1c], 0x3e8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esp + 0x10], eax
test eax, eax
je 0x401248
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RegGetValueA
push eax
call esi
test eax, eax
jne 0x4010e5
mov eax, dword [esp + 0x14]
push 0x4719c8
push eax
call esi
test eax, eax
je 0x40123c
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x414]
push edx
lea ecx, [esp + 0x20]
push ecx
push 0
push edi
push ebp
call eax
cmp eax, 2
sete cl
mov byte [esp + 0x13], cl
test eax, eax
je 0x401104
test cl, cl
jne 0x40116c
push eax
push edi
push str.RegGetValue__s_:_error_d
lea edx, [esp + 0x34]
push 0x3e8
push edx
call fcn.00450be9
lea eax, [esp + 0x3c]
push eax
push 0x4719a8
call fcn.0041ab40
add esp, 0x1c
push 0
push 0x4719a0
lea ecx, [esp + 0x30]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x401247
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x414]
push ecx
lea edx, [esp + 0x20]
push edx
push 0xffff
push 0
push edi
push ebp
call eax
jmp 0x40108e
test cl, cl
jne 0x40116c
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0x401125
push eax
push edi
push str.Key___s__type_mismatch:_type_x_n
call fcn.0041ab40
add esp, 0xc
jmp 0x401247
mov ecx, ebx
lea eax, [esp + 0x410]
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401150
test dl, dl
je 0x40114c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401150
add eax, 2
add ecx, 2
test dl, dl
jne 0x401130
xor eax, eax
jmp 0x401155
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40116c
push edi
push str.Key___s__already_set_n
call fcn.0041ab40
add esp, 8
jmp 0x401247
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x24]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4011a3
push eax
push edi
push str.RegCreateKeyEx___s___error:_err_d_n
call fcn.0041ab40
add esp, 0xc
jmp 0x401247
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4011a8
mov ecx, dword [esp + 0x20]
sub eax, edx
inc eax
push eax
push ebx
push 1
push 0
push 0x47ed45
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4011dd
push eax
push edi
push str.RegSetValueEx___s___error:_err_d_n
call fcn.0041ab40
add esp, 0xc
jmp 0x401247
cmp byte [esp + 0x13], 0
push ebx
je 0x4011ff
push edi
push str.RegSet__s_:_set_to___s_
lea edx, [esp + 0x34]
push 0x3e8
push edx
call fcn.00450be9
add esp, 0x14
jmp 0x40121f
lea eax, [esp + 0x414]
push eax
push edi
push str.RegSet__s_:_changed___s__to___s_
lea ecx, [esp + 0x38]
push 0x3e8
push ecx
call fcn.00450be9
add esp, 0x18
lea edx, [esp + 0x28]
push edx
push 0x4719a8
call fcn.0041ab40
mov eax, dword [esp + 0x28]
add esp, 8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov ecx, dword [esp + 0x7f4]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.00450c28
add esp, 0x7ec
ret