Function at 0x1006344
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
xor ecx, ecx
lea eax, [esi + 0x290]
inc ecx
push edi
xor edi, edi
mov dword [ebp - 0x18], eax
mov dword [eax], ecx
lea eax, [esi + 0x294]
lea ebx, [esi + 0x2a8]
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
mov dword [esi + 0x284], 2
mov dword [ebp - 0x14], eax
mov dword [eax], ecx
mov dword [esi + 0x288], 0x32
mov dword [esi + 0x29c], edi
mov dword [esi + 0x2a0], edi
mov dword [esi + 0x2a4], edi
mov dword [ebx], edi
call fcn.01004f29
mov dword [ebx], eax
lea eax, [esi + 0x29c]
push eax
push edi
push 0x10065d8
mov ebx, 0x1004a50
push ebx
mov ecx, esi
mov dword [ebp - 0x24], eax
call fcn.010065f9
test eax, eax
jge 0x10063cd
mov eax, dword [ebp - 0x24]
mov dword [eax], edi
lea eax, [esi + 0x2a4]
push eax
push edi
push 0x10065a4
push ebx
mov ecx, esi
mov dword [ebp - 0x28], eax
call fcn.010065f9
test eax, eax
jge 0x10063ee
mov eax, dword [ebp - 0x28]
mov dword [eax], edi
lea eax, [esi + 0x2a0]
push eax
push edi
push 0x100657c
push ebx
mov ecx, esi
mov dword [ebp - 0x2c], eax
call fcn.010065f9
test eax, eax
jge 0x100640f
mov eax, dword [ebp - 0x2c]
mov dword [eax], edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0xc]
push eax
push 1
push edi
push 0x10049e8
push 0x80000002
call ebx
cmp eax, edi
jg 0x1019d52
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x1006572
lea eax, [ebp - 4]
push eax
push 0xf003f
push edi
push 0x10049e8
push 0x80000001
call ebx
push 2
pop ebx
cmp dword [ebp - 4], edi
jne 0x1006860
push ebx
push ebx
push edi
lea eax, [esi + 0x284]
push eax
push 0x1004e48
push dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
call fcn.010054a8
test eax, eax
jl 0x1019d61
push 0x32
pop ebx
cmp dword [ebp - 4], edi
jne 0x1006887
push ebx
push 0x64
push edi
lea eax, [esi + 0x288]
push eax
push 0x1004e28
push dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
call fcn.010054a8
test eax, eax
jl 0x1019d6b
push ebx
push 0x64
push edi
add esi, 0x28c
push esi
mov dword [ebp - 0x1c], esi
mov esi, 0x1004e00
push esi
push dword [ebp - 4]
call fcn.010054a8
test eax, eax
jge 0x10064e7
push ebx
push 0x64
push edi
push dword [ebp - 0x1c]
push esi
push dword [ebp - 0xc]
call fcn.010054a8
test eax, eax
jge 0x10064e7
mov eax, dword [ebp - 0x1c]
mov dword [eax], ebx
xor esi, esi
inc esi
cmp dword [ebp - 4], edi
jne 0x10068af
mov ebx, dword [ebp - 0x18]
push esi
push esi
push edi
push ebx
push 0x1004de4
push dword [ebp - 0xc]
call fcn.010054a8
test eax, eax
jl 0x1019d75
cmp dword [ebp - 4], edi
jne 0x10068cf
mov ebx, dword [ebp - 0x14]
push esi
push esi
push edi
push ebx
push 0x1004dc4
push dword [ebp - 0xc]
call fcn.010054a8
test eax, eax
jl 0x1019d7c
cmp dword [ebp - 4], edi
jne 0x10068ef
mov eax, dword [ebp - 0x24]
cmp dword [eax], edi
jne 0x1019d83
mov eax, dword [ebp - 0x28]
cmp dword [eax], edi
jne 0x1019d88
mov eax, dword [ebp - 0x2c]
cmp dword [eax], edi
jne 0x1019d9b
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], edi
jne 0x100697c
push dword [ebp - 0xc]
call esi
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
push ebx
push ebx
push edi
lea eax, [esi + 0x284]
push eax
push 0x1004e48
push dword [ebp - 4]
mov dword [ebp - 0x10], eax
call fcn.010054a8
test eax, eax
jge 0x100647f
jmp 0x100645d
push ebx
push 0x64
push edi
lea eax, [esi + 0x288]
push eax
push 0x1004e28
push dword [ebp - 4]
mov dword [ebp - 0x20], eax
call fcn.010054a8
test eax, eax
jge 0x10064ae
jmp 0x100648b
push esi
push esi
push edi
push dword [ebp - 0x18]
push 0x1004de4
push dword [ebp - 4]
call fcn.010054a8
test eax, eax
jge 0x100650f
jmp 0x10064f3
push esi
push esi
push edi
push dword [ebp - 0x14]
push 0x1004dc4
push dword [ebp - 4]
call fcn.010054a8
test eax, eax
jge 0x1006534
jmp 0x1006518
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
pop ebx
push ebx
push dword [ebp - 0x10]
push ebx
push edi
push 0x1004e48
push dword [ebp - 4]
call esi
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x100653d
push ebx
push dword [ebp - 0x1c]
push ebx
push edi
push 0x1004e00
push dword [ebp - 4]
call esi
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x100653d
push ebx
push dword [ebp - 0x20]
push ebx
push edi
push 0x1004e28
push dword [ebp - 4]
call esi
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x100653d
push ebx
push dword [ebp - 0x18]
push ebx
push edi
push 0x1004de4
push dword [ebp - 4]
call esi
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x100653d
push ebx
push dword [ebp - 0x14]
push ebx
push edi
push 0x1004dc4
push dword [ebp - 4]
call esi
mov dword [ebp - 8], eax
jmp 0x100653d
push dword [ebp - 4]
call esi
jmp 0x100656d
and eax, 0xffff
or eax, 0x80070000
jmp 0x1006430
mov eax, dword [ebp - 0x10]
mov dword [eax], ebx
jmp 0x100647f
mov eax, dword [ebp - 0x20]
mov dword [eax], ebx
jmp 0x10064ae
mov dword [ebx], esi
jmp 0x100650f
mov dword [ebx], esi
jmp 0x1006534
mov eax, dword [ebp - 0x10]
jmp 0x1019d94
mov eax, dword [ebp - 0x10]
cmp dword [eax], 2
jne 0x1006553
mov dword [eax], edi
jmp 0x1006553
mov eax, dword [ebp - 0x14]
mov dword [eax], edi
mov eax, dword [ebp - 0x18]
mov dword [eax], edi
jmp 0x100655e