Function at 0x46ca60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dc021
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1124
call fcn.00489cc0
mov eax, dword [0x51cca4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x1128], esi
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x1134], eax
lea eax, [ebp - 0x1014]
push eax
mov dword [ebp - 0x1130], esi
mov dword [ebp - 0x1124], ebx
mov dword [ebp - 0x111c], edi
mov dword [ebp - 0x1120], 0
call fcn.0046d850
test eax, eax
js 0x46ce96
lea eax, [ebp - 0x1120]
push eax
lea eax, [ebp - 0x1014]
push eax
call fcn.0046fa50
add esp, 8
test eax, eax
jne 0x46cb01
mov eax, 0x80020009
jmp 0x46ce96
mov ecx, esi
call fcn.0046f150
lea eax, [ebp - 0x1014]
mov ecx, esi
push eax
call fcn.0046d850
test eax, eax
js 0x46ce96
movzx eax, word [ebp - 0x1120]
cmp eax, 0x13
ja 0x46cd76
je 0x46cc84
cmp eax, 8
je 0x46cc6c
cmp eax, 0x11
jne 0x46ce80
lea ebx, [ebp - 0x1014]
lea ecx, [ebx + 1]
nop
mov al, byte [ebx]
inc ebx
test al, al
jne 0x46cb50
sub ebx, ecx
mov dword [ebp - 0x112c], ebx
test bl, 1
jne 0x46cbd3
mov eax, ebx
mov dword [ebp - 0x1118], 0
cdq
sub eax, edx
mov esi, eax
sar esi, 1
mov dword [ebp - 0x1120], esi
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x1118]
push esi
mov byte [ebp - 4], 5
call fcn.0046cf90
jmp 0x46cbb4
mov eax, dword [ebp - 0x1118]
test eax, eax
jne 0x46cbdd
lea eax, [ebp - 0x1114]
test eax, eax
je 0x46cbd3
lea ecx, [ebp - 0x1118]
call fcn.0046d710
mov eax, 0x80004005
jmp 0x46ce96
push esi
push 0
push eax
call fcn.0048e7f0
add esp, 0xc
xor edi, edi
test ebx, ebx
jle 0x46cc29
nop
movzx eax, byte [ebp + edi - 0x1014]
mov esi, edi
shr esi, 1
add esi, dword [ebp - 0x1118]
push eax
call fcn.0046d270
mov edx, edi
mov ecx, 4
and edx, 1
inc edi
shl edx, 2
add esp, 4
sub ecx, edx
shl al, cl
or byte [esi], al
cmp edi, ebx
jl 0x46cbf0
mov esi, dword [ebp - 0x1120]
mov ecx, dword [ebp - 0x1124]
push esi
push dword [ebp - 0x1118]
push 3
push 0
push dword [ebp - 0x111c]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
lea eax, [ebp - 0x1114]
cmp dword [ebp - 0x1118], eax
je 0x46ce6b
lea ecx, [ebp - 0x1118]
call fcn.0046d710
jmp 0x46ce6b
push 1
lea eax, [ebp - 0x1014]
mov ecx, ebx
push eax
push edi
call fcn.0046f090
mov esi, eax
jmp 0x46ce6b
mov dword [ebp - 0x111c], 0
lea ecx, [ebp - 0x1014]
mov dword [ebp - 4], 3
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46cca0
sub ecx, edx
push 2
lea eax, [ecx + 1]
push eax
mov dword [ebp - 0x1120], eax
lea eax, [ebp - 0x1120]
push eax
call fcn.0046c550
add esp, 0xc
test eax, eax
js 0x46cd61
mov esi, dword [ebp - 0x1120]
cmp esi, 0x400
jg 0x46ccf5
push esi
call fcn.00463ed0
add esp, 4
test al, al
je 0x46ccf5
mov eax, esi
call fcn.00489c90
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x46cd01
push esi
lea ecx, [ebp - 0x111c]
call fcn.0046cec0
push 3
shr esi, 1
lea ecx, [ebp - 0x1014]
push esi
push ecx
push eax
call fcn.00461020
test eax, eax
je 0x46cd61
lea ecx, [ebp - 0x112c]
push ecx
push 0
push 0
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov esi, eax
test esi, esi
jns 0x46cd41
lea ecx, [ebp - 0x111c]
call fcn.00460710
mov eax, esi
jmp 0x46ce96
push dword [ebp - 0x112c]
mov ecx, ebx
push edi
call fcn.0046f010
lea ecx, [ebp - 0x111c]
mov esi, eax
call fcn.00460710
jmp 0x46ce6b
lea ecx, [ebp - 0x111c]
call fcn.00460710
mov eax, 0x8007000e
jmp 0x46ce96
cmp eax, 0x4008
jne 0x46ce80
lea ecx, [ebp - 0x1014]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46cd90
sub ecx, edx
mov dword [ebp - 0x1118], 0
add ecx, 2
push ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1118]
mov byte [ebp - 4], 1
call fcn.0046cf10
jmp 0x46cdd1
mov edi, dword [ebp - 0x1118]
test edi, edi
je 0x46ce51
cmp byte [ebp - 0x1014], 0
lea esi, [ebp - 0x1014]
je 0x46ce2b
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
push esi
call ebx
mov cl, byte [esi]
cmp cl, 0x5c
jne 0x46ce09
cmp byte [eax], 0x30
jne 0x46ce09
push eax
mov byte [edi], 0
call ebx
mov esi, eax
jmp 0x46ce25
mov byte [edi], cl
movzx eax, byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x46ce24
mov al, byte [esi + 1]
inc esi
inc edi
test al, al
je 0x46ce2b
mov byte [edi], al
inc esi
inc edi
cmp byte [esi], 0
jne 0x46cdf0
mov ecx, dword [ebp - 0x1124]
mov word [edi], 0
push dword [ebp - 0x1118]
push dword [ebp - 0x111c]
call fcn.0046f030
mov edi, dword [ebp - 0x1118]
mov esi, eax
jmp 0x46ce56
mov esi, 0xe
lea eax, [ebp - 0x1114]
cmp edi, eax
je 0x46ce6b
lea ecx, [ebp - 0x1118]
call fcn.0046d6f0
test esi, esi
je 0x46ce7a
push esi
call fcn.0046d210
add esp, 4
jmp 0x46ce96
mov esi, dword [ebp - 0x1128]
push dword [ebp - 0x1134]
mov ecx, esi
call fcn.0046d850
xor ecx, ecx
test eax, eax
cmovs ecx, eax
mov eax, ecx
lea esp, [ebp - 0x1144]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00489c7b
mov esp, ebp
pop ebp
ret 0xc