Function at 0x47a600
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49d89e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x2220
call fcn.0044c450
push ebx
push esi
push edi
lea eax, [ebp - 0x2230]
mov dword [ebp - 0x10], esp
mov edi, ecx
xor esi, esi
push eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], esi
call fcn.00479080
cmp eax, esi
jl 0x47a96e
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x2230]
push edx
call fcn.00478ec0
add esp, 8
test eax, eax
jne 0x47a676
mov eax, 0x80020009
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, edi
call fcn.00479020
lea eax, [ebp - 0x2230]
push eax
mov ecx, edi
call fcn.00479080
cmp eax, esi
jl 0x47a96e
movzx eax, word [ebp - 0x14]
cmp eax, 0x13
jg 0x47a859
je 0x47a819
cmp eax, 8
je 0x47a800
cmp eax, 0x11
jne 0x47a959
lea ecx, [ebp - 0x2230]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov dword [ebp - 0x18], ebx
test bl, 1
jne 0x47a736
cdq
sub eax, edx
mov edi, eax
sar edi, 1
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x12c], esi
mov esi, 4
mov dword [ebp - 4], esi
push edi
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], 5
call fcn.00479c40
mov dword [ebp - 4], esi
jmp 0x47a717
mov eax, dword [ebp - 0x12c]
test eax, eax
jne 0x47a74e
lea edx, [ebp - 0x128]
test edx, edx
je 0x47a736
lea ecx, [ebp - 0x12c]
call fcn.00479320
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push edi
push 0
push eax
call fcn.0044c050
add esp, 0xc
xor esi, esi
test ebx, ebx
jle 0x47a79c
movzx edx, word [ebp + esi*2 - 0x2230]
mov ecx, dword [ebp - 0x12c]
mov eax, esi
shr eax, 1
push edx
lea edi, [eax + ecx]
call fcn.00478f70
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
add esp, 4
or byte [edi], al
cmp esi, ebx
jl 0x47a760
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x12c]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push edi
push ecx
push 3
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
lea eax, [ebp - 0x128]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x12c], eax
je 0x47a7da
lea ecx, [ebp - 0x12c]
call fcn.00479320
xor esi, esi
cmp ebx, esi
je 0x47a956
push ebx
call fcn.00478b30
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0xc]
push 1
lea ecx, [ebp - 0x2230]
push ecx
mov ecx, dword [ebp + 8]
push edx
call fcn.00478cc0
mov ebx, eax
jmp 0x47a7dc
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x18]
push eax
push esi
push esi
lea ecx, [ebp - 0x2230]
push ecx
mov dword [ebp - 4], 3
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push edx
push eax
call fcn.00478ca0
lea ecx, [ebp - 0x14]
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
call fcn.004070c0
jmp 0x47a7dc
cmp eax, 0x4008
jne 0x47a959
lea ecx, [ebp - 0x2230]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 2
mov dword [ebp - 0x230], esi
mov dword [ebp - 4], esi
push eax
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 1
call fcn.00479bf0
mov dword [ebp - 4], esi
jmp 0x47a8a9
mov edi, dword [ebp - 0x230]
cmp edi, esi
je 0x47a92c
cmp word [ebp - 0x2230], 0
lea esi, [ebp - 0x2230]
je 0x47a900
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
lea esp, [esp]
push esi
call ebx
movzx ecx, word [esi]
cmp cx, 0x5c
jne 0x47a8f1
cmp word [eax], 0x30
jne 0x47a8f1
xor edx, edx
mov word [edi], dx
push eax
add edi, 2
call ebx
mov esi, eax
jmp 0x47a8fa
mov word [edi], cx
add edi, 2
add esi, 2
cmp word [esi], 0
jne 0x47a8d0
xor eax, eax
mov word [edi], ax
mov eax, dword [ebp + 0xc]
xor ecx, ecx
add edi, 2
mov word [edi], cx
mov edx, dword [ebp - 0x230]
mov ecx, dword [ebp + 8]
push edx
push eax
call fcn.00478d00
mov edi, dword [ebp - 0x230]
mov ebx, eax
xor esi, esi
jmp 0x47a931
mov ebx, 0xe
lea ecx, [ebp - 0x22c]
mov dword [ebp - 4], 0xffffffff
cmp edi, ecx
je 0x47a7dc
lea ecx, [ebp - 0x230]
call fcn.00479320
jmp 0x47a7dc
mov edi, dword [ebp - 0x1c]
mov edx, dword [ebp + 0x10]
push edx
mov ecx, edi
call fcn.00479080
xor ecx, ecx
cmp eax, esi
setge cl
dec ecx
and eax, ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc