Function at 0x100047f8
Capabilities:
Set registry value

Disassembly:
mov eax, 0x10025a51
call fcn.100252dc
push ecx
mov eax, 0x2110
call fcn.10024d90
push ebx
push esi
push edi
lea eax, [ebp - 0x2120]
mov dword [ebp - 0x10], esp
mov esi, ecx
xor ebx, ebx
push eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], ebx
call fcn.10004efe
test eax, eax
js 0x10004b67
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x2120]
call fcn.10004746
test eax, eax
jne 0x1000484d
mov eax, 0x80020009
jmp 0x10004b67
mov ecx, esi
call fcn.10005529
lea eax, [ebp - 0x2120]
mov ecx, esi
push eax
call fcn.10004efe
test eax, eax
js 0x10004b67
movzx eax, word [ebp - 0x14]
sub eax, 8
je 0x10004b31
sub eax, 9
je 0x100049f8
push 2
pop edi
sub eax, edi
je 0x100049bc
sub eax, 0x3ff5
jne 0x10004b54
lea eax, [ebp - 0x2120]
push eax
call fcn.100139ae
pop ecx
add eax, edi
mov dword [ebp - 0x120], ebx
mul edi
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
cmp edx, ebx
ja 0x10004b78
jb 0x100048c7
cmp eax, 0xffffffff
ja 0x10004b78
cmp eax, 0x100
jbe 0x100048dc
push eax
lea ecx, [ebp - 0x120]
call fcn.10004197
jmp 0x100048f2
lea esi, [ebp - 0x11c]
mov dword [ebp - 0x120], esi
jmp 0x100048f8
mov esi, dword [ebp - 0x120]
test esi, esi
je 0x1000498d
cmp word [ebp - 0x2120], 0
lea edi, [ebp - 0x2120]
je 0x10004945
push edi
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [edi]
cmp ecx, 0x5c
jne 0x10004937
push 0x30
pop edx
cmp word [eax], dx
jne 0x10004937
xor ecx, ecx
push eax
mov word [esi], cx
call dword [sym.imp.USER32.dll_CharNextW]
mov edi, eax
jmp 0x1000493d
mov word [esi], cx
add edi, 2
add esi, 2
cmp word [edi], bx
jne 0x10004910
xor eax, eax
mov dword [esi], eax
mov esi, dword [ebp - 0x120]
test esi, esi
jne 0x10004957
push 0xd
jmp 0x1000498f
mov edi, ebx
mov ebx, esi
push ebx
call fcn.100139ae
inc eax
pop ecx
lea ebx, [ebx + eax*2]
lea edi, [edi + eax*2]
cmp eax, 1
jne 0x1000495b
mov eax, dword [ebp + 8]
xor ebx, ebx
push edi
push esi
push 7
push ebx
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, dword [ebp - 0x120]
mov edi, eax
jmp 0x10004990
push 0xe
pop edi
lea eax, [ebp - 0x11c]
cmp esi, eax
je 0x100049a5
lea ecx, [ebp - 0x120]
call fcn.10004182
mov esi, dword [ebp - 0x18]
test edi, edi
je 0x10004b54
mov ecx, edi
call fcn.10004ef0
jmp 0x10004b67
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
lea eax, [ebp - 0x2120]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
test eax, eax
js 0x10004b67
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push 4
push eax
push 4
mov eax, dword [ebp + 8]
push ebx
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
jmp 0x100049a8
lea eax, [ebp - 0x2120]
push eax
call fcn.100139ae
mov dword [ebp - 0x1c], eax
pop ecx
test al, 1
je 0x10004a16
mov eax, 0x80004005
jmp 0x10004b67
cdq
sub eax, edx
mov dword [ebp - 0x120], ebx
mov esi, eax
sar esi, 1
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 3
mov byte [ebp - 4], 4
cmp esi, 0x100
jbe 0x10004a5a
push esi
lea ecx, [ebp - 0x120]
call fcn.10004197
mov eax, dword [ebp - 0x120]
jmp 0x10004a66
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x120], eax
test eax, eax
jne 0x10004a77
lea ecx, [ebp - 0x120]
call fcn.10004182
jmp 0x10004a0c
push esi
push ebx
push eax
call fcn.10010380
mov edi, dword [ebp - 0x1c]
add esp, 0xc
test edi, edi
jle 0x10004af5
mov esi, ebx
movzx ecx, word [ebp + esi*2 - 0x2120]
mov eax, esi
cdq
sub eax, edx
mov edx, ecx
sar eax, 1
add eax, dword [ebp - 0x120]
mov dword [ebp - 0x1c], eax
mov eax, ecx
push 0x30
pop ecx
cmp ax, cx
jb 0x10004ad7
cmp eax, 0x39
jbe 0x10004ad2
cmp eax, 0x40
jbe 0x10004ad7
cmp eax, 0x46
jbe 0x10004acd
cmp eax, 0x60
jbe 0x10004ad7
cmp edx, 0x66
ja 0x10004ad7
sub dl, 0x57
jmp 0x10004ad9
sub dl, 0x37
jmp 0x10004ad9
sub dl, 0x30
jmp 0x10004ad9
mov dl, bl
mov eax, esi
and eax, 1
shl eax, 2
push 4
pop ecx
sub ecx, eax
mov eax, dword [ebp - 0x1c]
shl dl, cl
or byte [eax], dl
inc esi
cmp esi, edi
jl 0x10004a8b
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
push esi
push dword [ebp - 0x120]
push 3
push ebx
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
lea eax, [ebp - 0x11c]
cmp dword [ebp - 0x120], eax
je 0x100049a5
lea ecx, [ebp - 0x120]
call fcn.10004182
jmp 0x100049a5
lea eax, [ebp - 0x2120]
push eax
call fcn.100139ae
pop ecx
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x2120]
push eax
push 1
jmp 0x100049e5
push dword [ebp + 0x10]
mov ecx, esi
call fcn.10004efe
xor ecx, ecx
test eax, eax
cmovs ecx, eax
mov eax, ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc
push 0x80070216
call fcn.10004b8e
int3