Function at 0x101ab47
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x62c
mov eax, dword [0x102a0ec]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
lea ecx, [ebp - 0x62c]
mov dword [ebp - 4], eax
mov dword [ebp - 0x60c], esi
call fcn.0101bd0e
xor edi, edi
inc edi
cmp ebx, esi
mov dword [ebp - 0x608], edi
je 0x101b307
call fcn.0101dde5
cmp dword [ebp + 0x10], esi
je 0x101ac0d
lea eax, [ebp - 0x62c]
push eax
call fcn.01023f00
test eax, eax
je 0x101b307
cmp dword [ebp + 0xc], esi
je 0x101ac0d
push 0x10018dc
push ebx
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x101ac0d
push 0x103
lea eax, [ebp - 0x4c8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
test eax, eax
je 0x101ac0d
push 0x100508c
push 0x104
lea eax, [ebp - 0x4c8]
push eax
call fcn.0100d4ff
lea eax, [ebp - 0x4c8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x101ac0d
push edi
push esi
push 0x10052f0
lea eax, [ebp - 0x4c8]
push eax
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push ebx
push dword [0x102a0f4]
lea eax, [ebp - 0x4c8]
push 0x1007288
push 0x103
push eax
call fcn.0100d4d1
add esp, 0x14
test eax, eax
jl 0x101b307
lea eax, [ebp - 0x60c]
push eax
push 0x2001f
push esi
lea eax, [ebp - 0x4c8]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x101b307
lea eax, [ebp - 0x604]
push eax
lea eax, [ebp - 0x4c8]
push eax
lea eax, [ebp - 0x600]
push eax
push esi
push 0x1007270
push dword [ebp - 0x60c]
mov dword [ebp - 0x5f8], esi
mov dword [ebp - 0x604], 0x208
mov dword [ebp - 0x600], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, dword [sym.imp.msvcrt.dll_wcslen]
jne 0x101ae88
cmp dword [ebp - 0x600], 1
jne 0x101ae88
lea eax, [ebp - 0x4c8]
push eax
mov dword [ebp - 0x5fc], eax
push 0x95
lea eax, [ebp - 0x130]
push eax
call fcn.0100c535
lea eax, [ebp - 0x130]
push 0x20
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
cmp eax, esi
pop ecx
pop ecx
je 0x101acf0
mov word [eax], si
lea eax, [ebp - 0x130]
push eax
push dword [0x102a0f4]
lea eax, [ebp - 0x2c0]
push 0x1007378
push 0xc7
push eax
call fcn.0100d4d1
add esp, 0x14
cmp dword [ebp + 0xc], esi
je 0x101adb2
test eax, eax
jl 0x101ad8d
lea eax, [ebp - 0x5f8]
push eax
push 2
push esi
lea eax, [ebp - 0x2c0]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x101ad71
push 0x1001780
call ebx
pop ecx
lea eax, [eax + eax + 2]
push eax
push 0x1001780
push 1
push esi
push 0x1007350
push dword [ebp - 0x5f8]
call edi
push dword [ebp - 0x5f8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x10], esi
je 0x101ad93
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x62c]
push eax
call fcn.0102507d
test eax, eax
jne 0x101ad93
mov dword [ebp - 0x608], esi
push 0x20
push dword [ebp - 0x5fc]
call dword [sym.imp.msvcrt.dll_wcschr]
cmp eax, esi
pop ecx
pop ecx
je 0x101ae88
inc eax
inc eax
jmp 0x101acc0
test eax, eax
jl 0x101ad8d
lea eax, [ebp - 0x5f8]
push eax
push 0x20006
push esi
lea eax, [ebp - 0x2c0]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x101ad93
push 0x1003320
call ebx
pop ecx
lea eax, [eax + eax + 2]
push eax
push 0x1003320
push 1
push esi
push 0x1007350
push dword [ebp - 0x5f8]
call edi
cmp dword [ebp + 0x10], esi
je 0x101ae77
lea eax, [ebp - 0x604]
push eax
lea eax, [ebp - 0x5f4]
push eax
lea eax, [ebp - 0x600]
push eax
push esi
push 0x100732c
push dword [ebp - 0x5f8]
mov dword [ebp - 0x604], 0x12c
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x101ae3e
cmp dword [ebp - 0x600], 1
je 0x101ae5e
lea eax, [ebp - 0x130]
push eax
push 0x100731c
lea eax, [ebp - 0x5f4]
push 0x95
push eax
call fcn.0100d4d1
add esp, 0x10
push 0x1004490
push esi
lea eax, [ebp - 0x5f4]
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.0101f74d
push dword [ebp - 0x5f8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x101ad93
lea eax, [ebp - 0x604]
push eax
lea eax, [ebp - 0x4c8]
push eax
lea eax, [ebp - 0x600]
push eax
push esi
push 0x1007304
push dword [ebp - 0x60c]
mov dword [ebp - 0x604], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x101b001
cmp dword [ebp - 0x600], 1
jne 0x101b001
lea eax, [ebp - 0x4c8]
push eax
mov dword [ebp - 0x5fc], eax
push 0x95
lea eax, [ebp - 0x130]
push eax
call fcn.0100c535
lea eax, [ebp - 0x130]
push 0x20
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
cmp eax, esi
pop ecx
pop ecx
je 0x101af04
mov word [eax], si
lea eax, [ebp - 0x130]
push eax
push dword [0x102a0f4]
lea eax, [ebp - 0x2c0]
push 0x10072e0
push 0xc7
push eax
call fcn.0100d4d1
add esp, 0x14
lea eax, [ebp - 0x5f8]
push eax
push 2
push esi
lea eax, [ebp - 0x2c0]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp + 0xc], esi
je 0x101afa1
test eax, eax
jne 0x101af7d
push 0x1001780
call ebx
pop ecx
lea eax, [eax + eax + 2]
push eax
push 0x1001780
push 1
push esi
push 0x1007350
push dword [ebp - 0x5f8]
call edi
push dword [ebp - 0x5f8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x10], esi
je 0x101afe6
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x62c]
push eax
call fcn.0101dd06
test eax, eax
jne 0x101afe6
mov dword [ebp - 0x608], esi
jmp 0x101afe6
test eax, eax
jne 0x101afd3
push 0x1003320
call ebx
pop ecx
lea eax, [eax + eax + 2]
push eax
push 0x1003320
push 1
push esi
push 0x1007350
push dword [ebp - 0x5f8]
call edi
push dword [ebp - 0x5f8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x10], esi
je 0x101afe6
push 1
lea eax, [ebp - 0x130]
push eax
call fcn.01027b54
push 0x20
push dword [ebp - 0x5fc]
call dword [sym.imp.msvcrt.dll_wcschr]
cmp eax, esi
pop ecx
pop ecx
je 0x101b001
inc eax
inc eax
jmp 0x101aed4
lea eax, [ebp - 0x604]
push eax
lea eax, [ebp - 0x4c8]
push eax
lea eax, [ebp - 0x600]
push eax
push esi
push 0x100724c
push dword [ebp - 0x60c]
mov dword [ebp - 0x604], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x101b17b
cmp dword [ebp - 0x600], 1
jne 0x101b17b
lea eax, [ebp - 0x4c8]
push eax
mov dword [ebp - 0x5fc], eax
push 0x95
lea eax, [ebp - 0x130]
push eax
call fcn.0100c535
lea eax, [ebp - 0x130]
push 0x20
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
cmp eax, esi
pop ecx
pop ecx
je 0x101b07d
mov word [eax], si
lea eax, [ebp - 0x130]
push eax
push dword [0x102a0f4]
lea eax, [ebp - 0x2c0]
push 0x10072c0
push 0xc7
push eax
call fcn.0100d4d1
add esp, 0x14
lea eax, [ebp - 0x5f8]
push eax
push 0x20006
push esi
lea eax, [ebp - 0x2c0]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp + 0xc], esi
je 0x101b11d
test eax, eax
jne 0x101b0f9
push 0x1001780
call ebx
pop ecx
lea eax, [eax + eax + 2]
push eax
push 0x1001780
push 1
push esi
push 0x1007350
push dword [ebp - 0x5f8]
call edi
push dword [ebp - 0x5f8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x10], esi
je 0x101b160
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x62c]
push eax
call fcn.0102517c
test eax, eax
jne 0x101b160
mov dword [ebp - 0x608], esi
jmp 0x101b160
test eax, eax
jne 0x101b14f
push 0x1003320
call ebx
pop ecx
lea eax, [eax + eax + 2]
push eax
push 0x1003320
push 1
push esi
push 0x1007350
push dword [ebp - 0x5f8]
call edi
push dword [ebp - 0x5f8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x10], esi
je 0x101b160
lea eax, [ebp - 0x130]
push eax
call fcn.0101bee9
push 0x20
push dword [ebp - 0x5fc]
call dword [sym.imp.msvcrt.dll_wcschr]
cmp eax, esi
pop ecx
pop ecx
je 0x101b17b
inc eax
inc eax
jmp 0x101b04d
lea eax, [ebp - 0x604]
push eax
lea eax, [ebp - 0x4c8]
push eax
lea eax, [ebp - 0x600]
push eax
push esi
push 0x1007260
push dword [ebp - 0x60c]
mov dword [ebp - 0x604], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x101b2f5
cmp dword [ebp - 0x600], 1
jne 0x101b2f5
lea eax, [ebp - 0x4c8]
push eax
mov dword [ebp - 0x5fc], eax
push 0x95
lea eax, [ebp - 0x130]
push eax
call fcn.0100c535
lea eax, [ebp - 0x130]
push 0x20
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
cmp eax, esi
pop ecx
pop ecx
je 0x101b1f7
mov word [eax], si
lea eax, [ebp - 0x130]
push eax
push dword [0x102a0f4]
lea eax, [ebp - 0x2c0]
push 0x10072a4
push 0xc7
push eax
call fcn.0100d4d1
add esp, 0x14
lea eax, [ebp - 0x5f8]
push eax
push 0x20006
push esi
lea eax, [ebp - 0x2c0]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp + 0xc], esi
je 0x101b297
test eax, eax
jne 0x101b273
push 0x1001780
call ebx
pop ecx
lea eax, [eax + eax + 2]
push eax
push 0x1001780
push 1
push esi
push 0x1007350
push dword [ebp - 0x5f8]
call edi
push dword [ebp - 0x5f8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x10], esi
je 0x101b2da
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x62c]
push eax
call fcn.0102529a
test eax, eax
jne 0x101b2da
mov dword [ebp - 0x608], esi
jmp 0x101b2da
test eax, eax
jne 0x101b2c9
push 0x1003320
call ebx
pop ecx
lea eax, [eax + eax + 2]
push eax
push 0x1003320
push 1
push esi
push 0x1007350
push dword [ebp - 0x5f8]
call edi
push dword [ebp - 0x5f8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x10], esi
je 0x101b2da
lea eax, [ebp - 0x130]
push eax
call fcn.0101b763
push 0x20
push dword [ebp - 0x5fc]
call dword [sym.imp.msvcrt.dll_wcschr]
cmp eax, esi
pop ecx
pop ecx
je 0x101b2f5
inc eax
inc eax
jmp 0x101b1c7
push dword [ebp - 0x60c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x608]
lea ecx, [ebp - 0x62c]
call fcn.0101bd2f
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.0101672d
leave
ret 0xc