Function at 0x10003a1c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2124
call fcn.10007956
mov eax, dword [0x1000b018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2120], eax
xor eax, eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x211c], eax
mov edi, ecx
mov dword [ebp - 0x210c], eax
lea eax, [ebp - 0x2004]
push eax
mov dword [ebp - 0x2124], edi
mov dword [ebp - 0x2110], ebx
mov dword [ebp - 0x2114], esi
call fcn.1000431f
test eax, eax
js 0x10003dee
lea edx, [ebp - 0x210c]
lea ecx, [ebp - 0x2004]
call fcn.10003946
test eax, eax
jne 0x10003a9a
mov eax, 0x80020009
jmp 0x10003dee
mov ecx, edi
call fcn.100048a2
lea eax, [ebp - 0x2004]
mov ecx, edi
push eax
call fcn.1000431f
test eax, eax
js 0x10003dee
movzx eax, word [ebp - 0x210c]
push 2
pop edi
sub eax, 8
je 0x10003d8d
sub eax, 9
je 0x10003c44
sub eax, edi
je 0x10003bd4
sub eax, 0x3ff5
jne 0x10003dd4
lea ecx, [ebp - 0x2004]
xor ebx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, edi
cmp ax, bx
jne 0x10003af1
sub ecx, edx
mov dword [ebp - 0x2108], ebx
sar ecx, 1
lea eax, [ecx + 2]
mul edi
cmp edx, ebx
ja 0x10003dff
jb 0x10003b1d
cmp eax, 0xffffffff
ja 0x10003dff
cmp eax, 0x100
jbe 0x10003b38
push eax
lea ecx, [ebp - 0x2108]
call fcn.1000431f
mov esi, dword [ebp - 0x2108]
jmp 0x10003b44
lea esi, [ebp - 0x2104]
mov dword [ebp - 0x2108], esi
test esi, esi
je 0x10003bb3
cmp word [ebp - 0x2004], 0
lea ebx, [ebp - 0x2004]
je 0x10003b8e
push ebx
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [ebx]
cmp ecx, 0x5c
jne 0x10003b7f
push 0x30
pop edx
cmp word [eax], dx
jne 0x10003b7f
xor ecx, ecx
push eax
mov word [esi], cx
call dword [sym.imp.USER32.dll_CharNextW]
mov ebx, eax
jmp 0x10003b84
mov word [esi], cx
add ebx, edi
xor eax, eax
add esi, 2
cmp word [ebx], ax
jne 0x10003b58
mov ecx, dword [ebp - 0x2110]
xor eax, eax
mov dword [esi], eax
push dword [ebp - 0x2108]
push dword [ebp - 0x2114]
call fcn.1000431f
mov esi, dword [ebp - 0x2108]
mov edi, eax
jmp 0x10003bb6
push 0xe
pop edi
lea eax, [ebp - 0x2104]
cmp esi, eax
je 0x10003dc7
lea ecx, [ebp - 0x2108]
call fcn.100032f6
jmp 0x10003dc7
xor ecx, ecx
lea eax, [ebp - 0x2110]
push eax
push ecx
push ecx
lea eax, [ebp - 0x2004]
mov dword [ebp - 0x210c], ecx
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov esi, eax
test esi, esi
jns 0x10003c0a
lea ecx, [ebp - 0x210c]
call fcn.10003a02
mov eax, esi
jmp 0x10003dee
mov eax, dword [ebp - 0x2110]
push 4
mov dword [ebp - 0x2118], eax
lea eax, [ebp - 0x2118]
push eax
push 4
xor eax, eax
push eax
push dword [ebp - 0x2114]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x210c]
mov edi, eax
call fcn.10003a02
jmp 0x10003dc7
lea ebx, [ebp - 0x2004]
xor edx, edx
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, edi
cmp ax, dx
jne 0x10003c4f
sub ebx, ecx
sar ebx, 1
test bl, 1
jne 0x10003cb2
mov eax, ebx
xor ecx, ecx
cdq
sub eax, edx
mov dword [ebp - 0x2108], ecx
mov edi, eax
sar edi, 1
mov dword [ebp - 0x211c], edi
cmp edi, 0x100
jbe 0x10003c97
push edi
lea ecx, [ebp - 0x2108]
call fcn.1000431f
mov eax, dword [ebp - 0x2108]
xor ecx, ecx
jmp 0x10003ca3
lea eax, [ebp - 0x2104]
mov dword [ebp - 0x2108], eax
test eax, eax
jne 0x10003cbc
lea ecx, [ebp - 0x2108]
call fcn.100032f6
mov eax, 0x80004005
jmp 0x10003dee
push edi
push ecx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
test ebx, ebx
jle 0x10003d57
push 0x30
pop edx
mov edi, eax
movzx eax, word [ebp + edi*2 - 0x2004]
mov ecx, eax
cmp cx, dx
jb 0x10003d10
cmp ecx, 0x39
jbe 0x10003d06
cmp ecx, 0x40
jbe 0x10003d10
cmp ecx, 0x46
jbe 0x10003d02
cmp ecx, 0x60
jbe 0x10003d10
cmp eax, 0x66
ja 0x10003d10
sub al, 0x57
jmp 0x10003d08
sub al, 0x37
jmp 0x10003d08
sub al, 0x30
mov dword [ebp - 0x210c], eax
jmp 0x10003d18
xor eax, eax
mov byte [ebp - 0x210c], al
mov esi, edi
test esi, esi
jns 0x10003d21
add esi, 1
sar esi, 1
mov edx, dword [ebp - 0x2108]
mov eax, edi
and eax, 1
shl eax, 2
push 4
pop ecx
sub ecx, eax
mov eax, dword [ebp - 0x210c]
shl al, cl
or byte [esi + edx], al
inc edi
push 0x30
pop edx
cmp edi, ebx
jl 0x10003cd6
mov edi, dword [ebp - 0x211c]
xor eax, eax
mov esi, dword [ebp - 0x2114]
push edi
push dword [ebp - 0x2108]
push 3
push eax
mov eax, dword [ebp - 0x2110]
push esi
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
lea eax, [ebp - 0x2104]
cmp dword [ebp - 0x2108], eax
je 0x10003dc7
lea ecx, [ebp - 0x2108]
call fcn.100032f6
jmp 0x10003dc7
lea ecx, [ebp - 0x2004]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, edi
cmp ax, word [ebp - 0x211c]
jne 0x10003d96
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x2004]
push eax
push 1
xor eax, eax
push eax
push esi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
je 0x10003dd4
mov ecx, edi
call fcn.100041b6
jmp 0x10003dee
push dword [ebp - 0x2120]
mov ecx, dword [ebp - 0x2124]
call fcn.1000431f
xor ecx, ecx
test eax, eax
cmovs ecx, eax
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10006684
leave
ret 0xc
push 0x80070216
call fcn.1000431f
int3