Function at 0x10108b0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0x20
push 0x10109a8
call fcn.010015a0
mov dword [ebp - 0x1c], 0x57
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x20]
push eax
push 1
push esi
push 0x1005760
push 0x80000002
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
mov ecx, eax
mov dword [ebp - 0x1c], ecx
push 2
pop ebx
cmp ecx, ebx
je 0x10216aa
cmp ecx, esi
jne 0x10216e4
lea eax, [ebp - 0x24]
push eax
push esi
push esi
push esi
mov esi, 0x101034c
push esi
push dword [ebp - 0x20]
mov edi, dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
call edi
mov ecx, eax
mov dword [ebp - 0x1c], ecx
cmp ecx, ebx
jne 0x1021722
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x101095d
test dword [eax + 0x1c], 0x40000
je 0x101095d
cmp byte [eax + 0x19], 4
jb 0x101095d
push 0x1002538
push 0x1e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001848
mov eax, dword [0x1040184]
and dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xfffffffe
call fcn.010109c9
cmp eax, 0x1040184
je 0x1010998
test dword [eax + 0x1c], 0x40000
je 0x1010998
cmp byte [eax + 0x19], 4
jb 0x1010998
push dword [ebp - 0x1c]
push 0x1002538
push 0x24
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001f65
mov eax, dword [ebp - 0x1c]
call fcn.01001580
ret 4
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x10216dc
test dword [eax + 0x1c], 0x40000
je 0x10216dc
cmp byte [eax + 0x19], 4
jb 0x10216dc
push 0x1002538
push 0x1c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001848
mov eax, dword [0x1040184]
mov dword [ebp - 0x1c], esi
jmp 0x1010961
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x1010961
test dword [eax + 0x1c], 0x40000
je 0x1010961
cmp byte [eax + 0x19], bl
jb 0x1010961
push ecx
push 0x1002538
push 0x1d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001f65
jmp 0x10218b7
test ecx, ecx
je 0x1021756
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x1010961
test dword [eax + 0x1c], 0x40000
je 0x1010961
cmp byte [eax + 0x19], bl
jb 0x1010961
push ecx
push 0x1002538
push 0x1f
jmp 0x1021712
push dword [ebp - 0x24]
call fcn.01001fd2
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x1021771
mov dword [ebp - 0x1c], 0xe
jmp 0x10218b7
lea ecx, [ebp - 0x24]
push ecx
push eax
lea eax, [ebp - 0x30]
push eax
push 0
push esi
push dword [ebp - 0x20]
call edi
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x10217be
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x1010961
test dword [eax + 0x1c], 0x40000
je 0x1010961
cmp byte [eax + 0x19], bl
jb 0x1010961
push dword [ebp - 0x1c]
push 0x1002538
push 0x20
jmp 0x1021712
lea eax, [ebp - 0x2c]
push eax
push 0xf003f
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 8]
call fcn.0100250b
push eax
push 1
call fcn.01005a3a
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x1021816
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x1010961
test dword [eax + 0x1c], 0x40000
je 0x1010961
cmp byte [eax + 0x19], bl
jb 0x1010961
push dword [ebp - 0x1c]
push 0x1002538
push 0x21
jmp 0x1021712
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x30]
push 0
push esi
push dword [ebp - 0x2c]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
mov dword [ebp - 0x1c], eax
xor esi, esi
cmp eax, esi
je 0x1021869
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x1010961
test dword [eax + 0x1c], 0x40000
je 0x1010961
cmp byte [eax + 0x19], bl
jb 0x1010961
push dword [ebp - 0x1c]
push 0x1002538
push 0x22
jmp 0x1021712
push esi
push 1
push esi
push 0x1025f7c
push edi
call fcn.01030e15
mov dword [ebp - 0x1c], eax
cmp eax, esi
je 0x10218b4
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x1010961
test dword [eax + 0x1c], 0x40000
je 0x1010961
cmp byte [eax + 0x19], bl
jb 0x1010961
push dword [ebp - 0x1c]
push 0x1002538
push 0x23
jmp 0x1021712
mov dword [ebp - 0x1c], esi
mov eax, dword [0x1040184]
jmp 0x1010961