Function at 0x101051a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov ecx, dword [ebp + 8]
add ecx, 0x120
call fcn.10004cb0
test eax, eax
je 0x101052c1
mov eax, dword [ebp + 8]
cmp dword [eax + 0x3b4], 0
je 0x101052c1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x3b4]
cmp dword [edx + 0x12c], 0
je 0x101052c1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3b4]
mov edx, dword [ecx + 0x12c]
cmp dword [edx + 0x48], 0
je 0x101052c1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3b4]
mov edx, dword [ecx + 0x12c]
mov ecx, dword [edx + 0x48]
add ecx, 0x10
call fcn.10004400
movzx eax, al
test eax, eax
jne 0x101052c1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x3b4]
mov eax, dword [edx + 0x12c]
mov ecx, dword [eax + 0x48]
add ecx, 0x10
push ecx
lea ecx, [ebp - 0x34]
call fcn.10005d60
lea ecx, [ebp - 0x34]
call fcn.100ab8e0
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x38]
call fcn.10005d80
lea ecx, [ebp - 0x38]
call fcn.100ab8e0
push 0
lea ecx, [ebp - 0x34]
call fcn.10004390
push eax
lea ecx, [ebp - 0x38]
call fcn.10004220
cmp eax, 0xffffffff
jne 0x101052b1
mov eax, dword [ebp + 0x10]
push eax
push 0x101d8b4c
lea ecx, [ebp - 0x50]
call fcn.100ae090
mov ecx, eax
call fcn.1009d390
lea ecx, [ebp - 0x50]
call fcn.10012580
mov dword [ebp - 0x54], 0
lea ecx, [ebp - 0x38]
call fcn.10005e00
lea ecx, [ebp - 0x34]
call fcn.10005e00
mov eax, dword [ebp - 0x54]
jmp 0x1010548e
lea ecx, [ebp - 0x38]
call fcn.10005e00
lea ecx, [ebp - 0x34]
call fcn.10005e00
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.10005d80
lea ecx, [ebp - 0x18]
call fcn.10005d40
lea ecx, [ebp - 0x14]
call fcn.10005d40
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.100a9410
add esp, 0xc
movzx edx, al
test edx, edx
jne 0x1010533f
mov eax, dword [ebp + 0x10]
push eax
push 0x101d8b50
lea ecx, [ebp - 0x68]
call fcn.100ae090
mov ecx, eax
call fcn.1009d390
lea ecx, [ebp - 0x68]
call fcn.10012580
mov dword [ebp - 0x6c], 0
lea ecx, [ebp - 0x14]
call fcn.10005e00
lea ecx, [ebp - 0x18]
call fcn.10005e00
lea ecx, [ebp - 0x1c]
call fcn.10005e00
mov eax, dword [ebp - 0x6c]
jmp 0x1010548e
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 4
push 0
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
lea ecx, [ebp - 0x1c]
call fcn.100043a0
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x70], esp
lea edx, [ebp - 0x14]
push edx
call fcn.10005d60
call fcn.100a92b0
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x101053cf
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x74], 0
lea ecx, [ebp - 0x14]
call fcn.10005e00
lea ecx, [ebp - 0x18]
call fcn.10005e00
lea ecx, [ebp - 0x1c]
call fcn.10005e00
mov eax, dword [ebp - 0x74]
jmp 0x1010548e
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x30]
call fcn.10098730
movzx edx, word [ebp - 0x30]
mov dword [ebp - 0x7c], edx
cmp dword [ebp - 0x7c], 3
je 0x1010543a
cmp dword [ebp - 0x7c], 5
je 0x1010543a
cmp dword [ebp - 0x7c], 8
je 0x101053f6
jmp 0x1010545a
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x3c]
call fcn.10005d80
lea ecx, [ebp - 0x3c]
call fcn.10005e60
shl eax, 1
push eax
lea ecx, [ebp - 0x3c]
call fcn.100043a0
push eax
push 1
push 0
lea ecx, [ebp - 0x18]
call fcn.100043a0
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x3c]
call fcn.10005e00
jmp 0x1010545a
push 4
lea edx, [ebp - 0x28]
push edx
push 4
push 0
lea ecx, [ebp - 0x18]
call fcn.100043a0
push eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x78], 0
lea ecx, [ebp - 0x30]
call fcn.10012580
lea ecx, [ebp - 0x14]
call fcn.10005e00
lea ecx, [ebp - 0x18]
call fcn.10005e00
lea ecx, [ebp - 0x1c]
call fcn.10005e00
mov eax, dword [ebp - 0x78]
mov esp, ebp
pop ebp
ret 0xc