Function at 0x4647b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x112c
call fcn.004abe10
mov eax, dword [0x4e2204]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x1008]
mov edi, edx
mov dword [ebp - 0x1128], eax
push ecx
mov eax, esi
mov dword [ebp - 0x1124], esi
mov dword [ebp - 0x1118], ebx
mov dword [ebp - 0x111c], edi
mov dword [ebp - 0x1114], 0
call fcn.00464670
test eax, eax
jl 0x464bdc
lea edx, [ebp - 0x1114]
push edx
lea eax, [ebp - 0x1008]
push eax
call fcn.004644c0
add esp, 8
test eax, eax
jne 0x464830
mov eax, 0x80020009
jmp 0x464bdc
call fcn.00464620
lea ecx, [ebp - 0x1008]
push ecx
mov eax, esi
call fcn.00464670
test eax, eax
jl 0x464bdc
movzx eax, word [ebp - 0x1114]
cmp eax, 0x13
jg 0x464ab2
je 0x4649bb
cmp eax, 8
je 0x464990
cmp eax, 0x11
jne 0x464bc4
lea edx, [ebp - 0x1008]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
test bl, 1
jne 0x4648e6
cdq
sub eax, edx
mov edi, eax
xor esi, esi
sar edi, 1
xor eax, eax
mov dword [ebp - 0x1114], edi
mov dword [ebp - 0x1110], esi
cmp eax, esi
ja 0x4648a7
cmp edi, 0xffffffff
jbe 0x4648b1
push 0x80070057
call fcn.00462f20
cmp edi, 0x100
jbe 0x4648f0
lea eax, [ebp - 0x1110]
push eax
mov eax, edi
call fcn.0046b8c0
mov eax, dword [ebp - 0x1110]
cmp eax, esi
jne 0x4648fc
lea ecx, [ebp - 0x110c]
test ecx, ecx
je 0x4648e6
lea eax, [ebp - 0x1110]
call fcn.0046b640
mov eax, 0x80004005
jmp 0x464bdc
lea eax, [ebp - 0x110c]
mov dword [ebp - 0x1110], eax
push edi
push esi
push eax
call fcn.004a1b50
add esp, 0xc
cmp ebx, esi
jle 0x46494a
jmp 0x464910
mov eax, dword [ebp - 0x1110]
mov cl, byte [ebp + esi - 0x1008]
mov edx, esi
shr edx, 1
lea edi, [edx + eax]
call fcn.00464570
mov ecx, esi
and ecx, 1
add ecx, ecx
add ecx, ecx
mov edx, ecx
mov ecx, 4
sub ecx, edx
shl al, cl
inc esi
or byte [edi], al
cmp esi, ebx
jl 0x464910
mov edi, dword [ebp - 0x1114]
mov ecx, dword [ebp - 0x1110]
mov edx, dword [ebp - 0x111c]
mov eax, dword [ebp - 0x1118]
mov eax, dword [eax]
push edi
push ecx
push 3
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
lea eax, [ebp - 0x110c]
cmp dword [ebp - 0x1110], eax
je 0x464bb1
lea eax, [ebp - 0x1110]
call fcn.0046b640
jmp 0x464bb1
lea ecx, [ebp - 0x1008]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
mov eax, dword [ebx]
lea edx, [ebp - 0x1008]
push edx
push 1
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
jmp 0x464bb1
lea ecx, [ebp - 0x1008]
push ecx
mov dword [ebp - 0x1114], 0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push 0
mov dword [ebp - 0x1118], eax
cdq
push 2
push edx
push eax
call fcn.004a7090
test edx, edx
jg 0x464a50
jl 0x4649f2
cmp eax, 0x7fffffff
ja 0x464a50
push edx
push eax
lea ecx, [ebp - 0x1118]
call fcn.00462dc0
add esp, 8
test eax, eax
jl 0x464a50
mov edi, dword [ebp - 0x1118]
cmp edi, 0x400
jg 0x464a2c
push edi
call fcn.00462de0
add esp, 4
test al, al
je 0x464a2c
mov eax, edi
call fcn.004a1bd0
mov esi, esp
jmp 0x464a3b
mov eax, edi
lea esi, [ebp - 0x1114]
call fcn.0046af90
mov esi, eax
mov edx, edi
push 3
shr edx, 1
lea eax, [ebp - 0x1008]
call fcn.00462e90
test eax, eax
jne 0x464a65
lea esi, [ebp - 0x1114]
call fcn.0046afc0
mov eax, 0x8007000e
jmp 0x464bdc
lea edx, [ebp - 0x1120]
push edx
push 0
push 0
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x1120]
mov edx, dword [ebp - 0x111c]
push 4
lea ecx, [ebp - 0x1118]
push ecx
push 4
push 0
mov dword [ebp - 0x1118], eax
mov eax, dword [ebx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea esi, [ebp - 0x1114]
mov edi, eax
call fcn.0046afc0
jmp 0x464bb1
cmp eax, 0x4008
jne 0x464bc4
lea ecx, [ebp - 0x1008]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 2
xor ecx, ecx
mov dword [ebp - 0x1110], 0
ja 0x464ae0
cmp eax, 0xffffffff
jbe 0x464aea
push 0x80070057
call fcn.00462f20
cmp eax, 0x100
jbe 0x464b3c
lea edx, [ebp - 0x1110]
push edx
call fcn.0046b8a0
mov eax, dword [ebp - 0x1110]
test eax, eax
je 0x464b97
cmp byte [ebp - 0x1008], 0
mov edi, eax
lea esi, [ebp - 0x1008]
je 0x464b72
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
push esi
call ebx
mov cl, byte [esi]
cmp cl, 0x5c
jne 0x464b4a
cmp byte [eax], 0x30
jne 0x464b4a
mov byte [edi], 0
push eax
inc edi
call ebx
mov esi, eax
jmp 0x464b67
lea eax, [ebp - 0x110c]
mov dword [ebp - 0x1110], eax
jmp 0x464b0b
mov byte [edi], cl
movzx eax, byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x464b65
mov al, byte [esi + 1]
inc esi
inc edi
test al, al
je 0x464b6c
mov byte [edi], al
inc edi
inc esi
cmp byte [esi], 0
jne 0x464b22
mov ebx, dword [ebp - 0x1118]
mov edx, dword [ebp - 0x111c]
mov byte [edi], 0
mov byte [edi + 1], 0
mov ecx, dword [ebp - 0x1110]
push ecx
push edx
push ebx
call fcn.00463670
mov edi, eax
mov eax, dword [ebp - 0x1110]
jmp 0x464b9c
mov edi, 0xe
lea ecx, [ebp - 0x110c]
cmp eax, ecx
je 0x464bb1
lea eax, [ebp - 0x1110]
call fcn.0046b630
test edi, edi
je 0x464bbe
mov eax, edi
call fcn.00463050
jmp 0x464bdc
mov esi, dword [ebp - 0x1124]
mov edx, dword [ebp - 0x1128]
push edx
mov eax, esi
call fcn.00464670
xor ecx, ecx
test eax, eax
setge cl
dec ecx
and eax, ecx
lea esp, [ebp - 0x1138]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049ceb0
mov esp, ebp
pop ebp
ret 8