Function at 0x10005f20
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x6b8
mov eax, dword [0x10013010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
push 0x100020bc
mov dword [ebp - 0x6b4], edi
call fcn.10006a49
pop ecx
call fcn.1000654e
test eax, eax
jne 0x10005f7b
push 0x10001794
push edi
push edi
push 0x100020a0
push 0x55a
push 0x10001270
call fcn.10006b9b
add esp, 0x18
xor eax, eax
jmp 0x1000647f
lea eax, [ebp - 0x6b0]
push eax
mov dword [ebp - 0x6b0], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x10005faf
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10002090
push 0x100020a0
push 0x563
jmp 0x10005f67
cmp dword [ebp - 0x6a0], 2
je 0x10005fde
push dword [ebp - 0x6a0]
push 0x1000206c
push edi
push edi
push 0x100020a0
push 0x571
push 0x10001270
call fcn.10006b9b
add esp, 0x1c
jmp 0x10005f74
cmp dword [ebp - 0x6ac], 4
jae 0x10006000
push dword [ebp - 0x6ac]
push 0x10002048
push edi
push edi
push 0x100020a0
push 0x577
jmp 0x10005fcf
cmp esi, edi
jne 0x1000601a
push 0x10001f30
push edi
push edi
push 0x100020a0
push 0x581
jmp 0x10005f67
push esi
call fcn.10004f14
test eax, eax
je 0x10005f74
push 0x104
lea eax, [ebp - 0x61c]
push eax
push 0x7d0
push dword [0x10013f00]
call fcn.10005e1e
test eax, eax
jne 0x1000605e
push 0x10002030
push edi
push edi
push 0x100020a0
push 0x591
jmp 0x10005f67
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
push dword [esi + 8]
call edi
mov ebx, eax
lea eax, [ebp - 0x61c]
push eax
call edi
lea eax, [ebx + eax - 2]
add eax, eax
cmp eax, 0x208
jbe 0x100060a9
push 0x10002010
push 0
push 0
push 0x100020a0
push 0x596
push 0x10001270
call fcn.10006b9b
add esp, 0x18
xor eax, eax
jmp 0x1000647e
push dword [esi + 8]
lea eax, [ebp - 0x61c]
push eax
mov ebx, 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.10005133
add esp, 0x10
lea eax, [ebp - 0x6b8]
push eax
lea eax, [ebp - 0x6b4]
push eax
xor eax, eax
push eax
push 2
push eax
push eax
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1000610b
push 0
push eax
push 0x10001ffc
push 0x100020a0
push 0x5a7
jmp 0x100063ee
push ebx
lea eax, [ebp - 0x414]
push eax
push dword [esi + 0xc]
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
jne 0x10006136
push eax
push eax
push 0x10001710
push 0x100020a0
push 0x5b1
jmp 0x100063ee
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0x7d1
push dword [0x10013f00]
call fcn.10005e1e
test eax, eax
jne 0x10006168
push 0x10002030
push eax
push eax
push 0x100020a0
push 0x5b7
jmp 0x100063ee
lea eax, [ebp - 0x414]
push eax
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x414]
push eax
push 1
push 0
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x6b4]
call ebx
test eax, eax
je 0x100061b1
push 0
push eax
push 0x10001fe8
push 0x100020a0
push 0x5c4
jmp 0x100063ee
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x7d2
push dword [0x10013f00]
call fcn.10005e1e
test eax, eax
jne 0x100061e7
push 0x10002030
push eax
push eax
push 0x100020a0
push 0x5cd
jmp 0x100063ee
push dword [esi + 0x10]
call edi
lea eax, [eax + eax + 2]
push eax
push dword [esi + 0x10]
lea eax, [ebp - 0x20c]
push 1
push 0
push eax
push dword [ebp - 0x6b4]
call ebx
test eax, eax
je 0x10006222
push 0
push eax
push 0x10001fe8
push 0x100020a0
push 0x5da
jmp 0x100063ee
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x7d3
push dword [0x10013f00]
call fcn.10005e1e
test eax, eax
jne 0x10006258
push 0x10001fd4
push eax
push eax
push 0x100020a0
push 0x5e3
jmp 0x100063ee
push dword [esi + 0x14]
call edi
lea eax, [eax + eax + 2]
push eax
push dword [esi + 0x14]
lea eax, [ebp - 0x20c]
push 1
push 0
push eax
push dword [ebp - 0x6b4]
call ebx
test eax, eax
je 0x10006293
push 0
push eax
push 0x10001fe8
push 0x100020a0
push 0x5f0
jmp 0x100063ee
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x7d5
push dword [0x10013f00]
call fcn.10005e1e
test eax, eax
jne 0x100062c9
push 0x10002030
push eax
push eax
push 0x100020a0
push 0x5f9
jmp 0x100063ee
push dword [esi + 0x18]
call edi
lea eax, [eax + eax + 2]
push eax
push dword [esi + 0x18]
lea eax, [ebp - 0x20c]
push 1
push 0
push eax
push dword [ebp - 0x6b4]
call ebx
test eax, eax
je 0x10006304
push 0
push eax
push 0x10001fe8
push 0x100020a0
push 0x606
jmp 0x100063ee
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x7d4
push dword [0x10013f00]
call fcn.10005e1e
test eax, eax
jne 0x1000633a
push 0x10002030
push eax
push eax
push 0x100020a0
push 0x60f
jmp 0x100063ee
push dword [esi + 0x1c]
call edi
lea eax, [eax + eax + 2]
push eax
push dword [esi + 0x1c]
lea eax, [ebp - 0x20c]
push 1
push 0
push eax
push dword [ebp - 0x6b4]
call ebx
test eax, eax
je 0x10006372
push 0
push eax
push 0x10001fe8
push 0x100020a0
push 0x61c
jmp 0x100063ee
cmp dword [esi], 4
jne 0x10006441
cmp dword [esi + 0x20], 0
je 0x10006441
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x7d6
push dword [0x10013f00]
call fcn.10005e1e
test eax, eax
jne 0x100063b8
push 0x10002030
push eax
push eax
push 0x100020a0
push 0x628
jmp 0x100063ee
push dword [esi + 0x20]
call edi
lea eax, [eax + eax + 2]
push eax
push dword [esi + 0x20]
lea eax, [ebp - 0x20c]
push 1
push 0
push eax
push dword [ebp - 0x6b4]
call ebx
test eax, eax
je 0x10006441
push 0
push eax
push 0x10001fe8
push 0x100020a0
push 0x635
push 0x10001270
call fcn.10006b9b
add esp, 0x18
cmp dword [ebp - 0x6b4], 0
je 0x10006433
push dword [ebp - 0x6b4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x10006433
push 0
push eax
push 0x100012e8
push 0x100020a0
push 0x645
push 0x10001270
call fcn.10006b9b
add esp, 0x18
push 0x10001fb0
call fcn.10006a49
xor eax, eax
jmp 0x1000647d
push dword [ebp - 0x6b4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x10006470
push 0
push eax
push 0x100012e8
push 0x100020a0
push 0x63b
push 0x10001270
call fcn.10006b9b
add esp, 0x18
push 0x10001f88
call fcn.10006a49
xor eax, eax
inc eax
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100072a1
leave
ret 8