Function at 0x408a50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4664a0
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x483004]
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 esi, edx
mov dword [ebp - 0x5c], ecx
mov edi, 1
mov ecx, esi
mov edx, edi
call fcn.0040ff70
cmp dword [eax + 8], 4
je 0x408ac1
mov edx, eax
mov ecx, esi
call fcn.00412a40
test eax, eax
jne 0x408aa6
mov dword [ebp - 0x64], eax
jmp 0x408acb
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx + 0x44]
cmp eax, dword [ecx + 0x40]
jb 0x408ab8
mov ecx, esi
call fcn.00415dd0
mov edx, edi
mov ecx, esi
call fcn.0040ff70
mov ebx, dword [eax]
add ebx, 0x10
mov dword [ebp - 0x64], ebx
jne 0x408b10
mov edx, edi
mov ecx, esi
call fcn.0040ff70
cmp eax, 0x471248
je 0x408aec
mov eax, dword [eax + 8]
cmp eax, 0xffffffff
je 0x408aec
mov eax, dword [eax*4 + 0x471358]
jmp 0x408af1
mov eax, str.no_value
push eax
push dword [0x471368]
push str._s_expected__got__s
push esi
call fcn.004103d0
push eax
mov edx, edi
mov ecx, esi
call fcn.00410da0
add esp, 0x14
mov edx, 2
mov ecx, esi
call fcn.0040ff70
cmp dword [eax + 8], 4
je 0x408b52
mov edx, eax
mov ecx, esi
call fcn.00412a40
test eax, eax
jne 0x408b34
mov dword [ebp - 0x68], eax
jmp 0x408b5c
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx + 0x44]
cmp eax, dword [ecx + 0x40]
jb 0x408b46
mov ecx, esi
call fcn.00415dd0
mov edx, 2
mov ecx, esi
call fcn.0040ff70
mov ebx, dword [eax]
add ebx, 0x10
mov dword [ebp - 0x68], ebx
jne 0x408ba7
mov edx, 2
mov ecx, esi
call fcn.0040ff70
cmp eax, 0x471248
je 0x408b80
mov eax, dword [eax + 8]
cmp eax, 0xffffffff
je 0x408b80
mov eax, dword [eax*4 + 0x471358]
jmp 0x408b85
mov eax, str.no_value
push eax
push dword [0x471368]
push str._s_expected__got__s
push esi
call fcn.004103d0
push eax
mov edx, 2
mov ecx, esi
call fcn.00410da0
add esp, 0x14
mov edx, 3
mov ecx, esi
call fcn.0040ff70
cmp dword [eax + 8], 4
je 0x408be8
mov edx, eax
mov ecx, esi
call fcn.00412a40
test eax, eax
jne 0x408bca
xor edi, edi
jmp 0x408bef
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx + 0x44]
cmp eax, dword [ecx + 0x40]
jb 0x408bdc
mov ecx, esi
call fcn.00415dd0
mov edx, 3
mov ecx, esi
call fcn.0040ff70
mov edi, dword [eax]
add edi, 0x10
jne 0x408c3a
mov edx, 3
mov ecx, esi
call fcn.0040ff70
cmp eax, 0x471248
je 0x408c13
mov eax, dword [eax + 8]
cmp eax, 0xffffffff
je 0x408c13
mov eax, dword [eax*4 + 0x471358]
jmp 0x408c18
mov eax, str.no_value
push eax
push dword [0x471368]
push str._s_expected__got__s
push esi
call fcn.004103d0
push eax
mov edx, 3
mov ecx, esi
call fcn.00410da0
add esp, 0x14
mov edx, 5
mov ecx, esi
xor bl, bl
call fcn.0040ff70
cmp eax, 0x471248
je 0x408cb6
cmp dword [eax + 8], 0xffffffff
je 0x408cb6
mov edx, 5
mov ecx, esi
call fcn.0040ff70
cmp eax, 0x471248
je 0x408c6e
cmp dword [eax + 8], 0
je 0x408cb6
push 0
mov edx, 5
mov ecx, esi
call fcn.004113d0
add esp, 4
mov ecx, str.force_64_reg
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x408ca4
test dl, dl
je 0x408ca0
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x408ca4
add eax, 2
add ecx, 2
test dl, dl
jne 0x408c84
xor eax, eax
jmp 0x408ca9
sbb eax, eax
or eax, 1
test eax, eax
movzx ebx, bl
mov eax, 1
cmove ebx, eax
mov ecx, dword [ebp - 0x64]
call fcn.00405840
push dword [ebp - 0x68]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x58]
push eax
call fcn.00434e50
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push edi
push eax
call fcn.00434e50
add esp, 0x10
mov byte [ebp - 4], 1
test bl, bl
je 0x408d10
call fcn.00434e00
test al, al
je 0x408d10
mov eax, dword [0x4849d0]
mov edi, 0x102
test eax, eax
je 0x408d15
push str.forcing_64_bit_registry
push eax
call fcn.00430310
add esp, 8
jmp 0x408d15
mov edi, 0x202
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x60]
push 0
push ecx
push 0
push edi
push 0
push 0
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push 0
push eax
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x408e71
mov eax, dword [ebp - 0x5c]
test eax, eax
jne 0x408dac
push eax
lea edx, [eax + 4]
mov ecx, esi
call fcn.004113d0
add esp, 4
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00434e50
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x40]
add esp, 8
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
cmovae edx, dword [ebp - 0x40]
cmp dword [ebp - 0x14], 8
cmovae ecx, dword [ebp - 0x28]
add eax, eax
push eax
push edx
push 1
push 0
push ecx
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x408e5d
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00403390
jmp 0x408e5d
cmp eax, 1
jne 0x408ddf
lea edx, [eax + 3]
mov ecx, esi
call fcn.00411570
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x5c]
push 4
push ecx
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 4
push 0
push eax
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x408e5d
cmp eax, 2
jne 0x408e5d
push 0
lea edx, [eax + 2]
mov ecx, esi
call fcn.004113d0
mov edi, eax
mov dword [ebp - 0x5c], eax
add esp, 4
lea eax, [edi + 1]
nop dword [eax + eax]
mov cl, byte [edi]
inc edi
test cl, cl
jne 0x408e00
sub edi, eax
shr edi, 1
push edi
call fcn.0043f08c
add esp, 4
mov ebx, eax
push ebx
push dword [ebp - 0x5c]
call fcn.00434510
add esp, 8
test al, al
jne 0x408e39
push str.ERROR:_Invalid_input_hex_string.
push dword [0x4849d0]
call fcn.00430310
add esp, 8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push edi
cmovae eax, dword [ebp - 0x28]
push ebx
push 3
push 0
push eax
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebx
call fcn.0043f087
add esp, 4
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi + 8]
mov dword [eax], 1
jmp 0x408e91
mov eax, dword [0x4849d0]
test eax, eax
je 0x408e88
push str.ERROR:_Unable_to_create_registry.
push eax
call fcn.00430310
add esp, 8
mov eax, dword [esi + 8]
mov dword [eax], 0
mov dword [eax + 8], 1
add dword [esi + 8], 0x10
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x408eb1
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00403390
mov ecx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp ecx, 8
jb 0x408eda
inc ecx
push ecx
push dword [ebp - 0x58]
lea ecx, [ebp - 0x58]
call fcn.00403390
mov eax, 1
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.004369c2
mov esp, ebp
pop ebp
ret