Function at 0x1002f01
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push esi
push dword [ebp + 0x14]
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call fcn.01005bd2
test eax, eax
je 0x1002f83
push esi
push dword [ebp + 0x14]
call fcn.01005bd2
lea eax, [eax + eax + 0x14]
push eax
call fcn.01005e42
mov dword [ebp - 8], eax
cmp eax, esi
jne 0x1002f57
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 0x20001
add eax, 0x40
push eax
call fcn.0100773a
xor eax, eax
inc eax
jmp 0x100319f
push eax
call fcn.01005eeb
shr eax, 1
push eax
push 0x100133c
push dword [ebp - 8]
call fcn.01006510
push dword [ebp - 8]
call fcn.01005eeb
shr eax, 1
push eax
push dword [ebp + 0x14]
push dword [ebp - 8]
call fcn.01006553
mov eax, dword [ebp + 0x18]
sub eax, esi
push edi
je 0x1003094
dec eax
je 0x1002fa2
lea eax, [ebp - 8]
push eax
call fcn.010061a3
xor eax, eax
jmp 0x100319e
lea eax, [ebp - 4]
push eax
push 0x80000002
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
cmp eax, esi
je 0x1002fc4
push esi
push eax
call fcn.01002c79
jmp 0x100315c
lea eax, [ebp - 0xc]
push eax
push 0x20006
push esi
push 0x10012c0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push esi
cmp eax, esi
jne 0x100306b
push dword [ebp + 0xc]
call fcn.01005bd2
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, esi
je 0x1003048
push dword [ebp + 8]
push eax
call fcn.01002c79
push dword [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
mov esi, 0x10001
test eax, eax
je 0x1003035
mov eax, dword [sym.imp.msvcrt.dll__iob]
push esi
add eax, 0x40
push eax
call fcn.0100773a
push dword [ebp - 0xc]
call edi
test eax, eax
je 0x100315c
push esi
jmp 0x100314e
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], esi
je 0x1003058
push dword [ebp - 0xc]
call edi
cmp dword [ebp - 4], esi
je 0x100315f
push dword [ebp - 4]
call edi
jmp 0x100315f
push eax
call fcn.01002c79
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], esi
je 0x1003081
push dword [ebp - 0xc]
call edi
cmp dword [ebp - 4], esi
je 0x100315c
push dword [ebp - 4]
call edi
jmp 0x100315c
lea eax, [ebp - 4]
push eax
push 0x80000001
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
cmp eax, esi
je 0x10030b6
push esi
push eax
call fcn.01002c79
jmp 0x1003192
lea eax, [ebp - 0xc]
push eax
push 0x20006
push esi
push 0x10012a4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push esi
cmp eax, esi
jne 0x100316c
push dword [ebp + 0xc]
call fcn.01005bd2
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, esi
je 0x1003131
push esi
push eax
call fcn.01002c79
push dword [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
mov esi, 0x10001
test eax, eax
je 0x1003125
mov eax, dword [sym.imp.msvcrt.dll__iob]
push esi
add eax, 0x40
push eax
call fcn.0100773a
push dword [ebp - 0xc]
call edi
test eax, eax
je 0x1003192
push esi
jmp 0x1003184
push dword [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
test eax, eax
jne 0x100317f
push dword [ebp - 0xc]
call edi
test eax, eax
je 0x100315f
push 0x10001
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call fcn.0100773a
xor esi, esi
inc esi
lea eax, [ebp - 8]
push eax
call fcn.010061a3
mov eax, esi
jmp 0x100319e
push eax
call fcn.01002c79
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x1003192
push 0x10001
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call fcn.0100773a
lea eax, [ebp - 8]
push eax
call fcn.010061a3
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 0x14