Function at 0x101426f8
Capabilities:
Get common file path
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x650
mov eax, dword [0x101dc354]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, 0x208
push 2
pop ebx
mov dword [ebp - 0x620], eax
xor eax, eax
push esi
push eax
mov dword [ebp - 0x648], eax
mov dword [ebp - 0x63c], eax
mov dword [ebp - 0x634], eax
mov dword [ebp - 0x644], eax
lea eax, [ebp - 0x414]
push eax
mov dword [ebp - 0x650], edx
mov dword [ebp - 0x64c], ecx
mov dword [ebp - 0x640], edi
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
xor eax, eax
push esi
push eax
lea eax, [ebp - 0x61c]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
push esi
xor esi, esi
lea eax, [ebp - 0x20c]
push esi
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov eax, 0x104
mov dword [ebp - 0x638], esi
add esp, 0x24
mov dword [ebp - 0x628], eax
mov dword [ebp - 0x624], eax
mov dword [ebp - 0x62c], eax
lea eax, [ebp - 0x638]
push eax
push edi
call dword [sym.imp.api_ms_win_security_sddl_l1_1_0.dll_ConvertStringSidToSidW]
test eax, eax
jne 0x101427eb
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
movzx edi, si
or edi, 0x80070000
test esi, esi
jle 0x101427c7
mov eax, edi
push 0x1005c260
push 1
push eax
push 0x4000000
call fcn.100ab973
add esp, 0x10
test esi, esi
jle 0x10142ba1
mov esi, edi
jmp 0x10142ba1
push dword [ebp - 0x638]
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_IsValidSid]
test eax, eax
jne 0x10142822
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
movzx edi, si
test esi, esi
jg 0x10142812
or edi, 0x80070000
jmp 0x1014281b
mov eax, edi
or eax, 0x80070000
mov edi, eax
push 0x1005c29c
jmp 0x101427cc
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x638]
push esi
call dword [sym.imp.api_ms_win_security_lsalookup_l2_1_0.dll_LookupAccountSidW]
test eax, eax
jne 0x10142880
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
movzx edi, si
test esi, esi
jg 0x1014286d
or edi, 0x80070000
jmp 0x10142876
mov eax, edi
or eax, 0x80070000
mov edi, eax
push 0x1005c280
jmp 0x101427cc
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.USERENV.dll_GetProfilesDirectoryW]
test eax, eax
jne 0x101428c2
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
movzx edi, si
test esi, esi
jg 0x101428af
or edi, 0x80070000
jmp 0x101428b8
mov eax, edi
or eax, 0x80070000
mov edi, eax
push 0x1005c2e0
jmp 0x101427cc
push 0x10008980
lea edx, [ebp - 0x20c]
lea ecx, [ebp - 0x644]
call fcn.100a9500
mov esi, eax
test esi, esi
jns 0x101428f8
push 0x1005c2b0
push 1
push esi
push 0x4000000
call fcn.100ab973
add esp, 0x10
jmp 0x10142ba7
lea edx, [ebp - 0x414]
lea ecx, [ebp - 0x644]
call fcn.100a8220
mov esi, eax
test esi, esi
jns 0x10142916
push 0x1005c318
jmp 0x101428e3
mov edx, 0x1005c300
lea ecx, [ebp - 0x644]
call fcn.100a8220
mov esi, eax
test esi, esi
jns 0x10142933
push 0x1005c35c
jmp 0x101428e3
push dword [ebp - 0x644]
push edi
push SysStringLen
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegLoadKeyW]
mov ebx, eax
test ebx, ebx
je 0x1014297e
movzx esi, bx
or esi, 0x80070000
test ebx, ebx
jle 0x1014295a
mov eax, esi
push 0x1005c348
push 1
push eax
push 0x4000000
call fcn.100ab973
add esp, 0x10
test ebx, ebx
jg 0x10142ba7
mov esi, ebx
jmp 0x10142ba7
mov eax, dword [ebp - 0x644]
test eax, eax
je 0x1014299a
add eax, 0xfffffffc
push eax
call fcn.100b84f9
xor eax, eax
pop ecx
mov dword [ebp - 0x644], eax
push edi
lea eax, [ebp - 0x644]
push eax
call fcn.100a7590
mov esi, eax
test esi, esi
jns 0x101429b7
push 0x1005c41c
jmp 0x101428e3
push 0x1005c390
mov edx, 0x10008980
lea ecx, [ebp - 0x644]
call fcn.100a9500
mov esi, eax
test esi, esi
jns 0x101429dc
push 0x1005c468
jmp 0x101428e3
xor ecx, ecx
lea eax, [ebp - 0x63c]
push ecx
push eax
push ecx
push 0x20006
push ecx
push ecx
push ecx
push dword [ebp - 0x644]
push SysStringLen
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
mov edi, eax
test edi, edi
je 0x10142a3d
movzx esi, di
jg 0x10142a13
or esi, 0x80070000
jmp 0x10142a1b
or esi, 0x80070000
mov eax, esi
push 0x1005c450
push 1
push eax
push 0x4000000
call fcn.100ab973
add esp, 0x10
test edi, edi
jg 0x10142ba1
jmp 0x101427e4
mov eax, dword [ebp - 0x64c]
test eax, eax
je 0x10142ba1
xor edx, edx
lea ecx, [ebp - 0x634]
push edx
push ecx
push edx
push 0x20006
push edx
push edx
push edx
push eax
push dword [ebp - 0x63c]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
mov edi, eax
test edi, edi
je 0x10142a8d
movzx esi, di
jg 0x10142a7e
or esi, 0x80070000
jmp 0x10142a86
or esi, 0x80070000
mov eax, esi
push 0x1005c4bc
jmp 0x10142a20
mov edi, dword [ebp - 0x650]
test edi, edi
je 0x10142ace
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x648]
jne 0x10142a9c
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
push 1
xor eax, eax
push eax
push 0x1005c4b0
push dword [ebp - 0x634]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov edi, dword [ebp - 0x620]
test edi, edi
je 0x10142b0f
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x648]
jne 0x10142add
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
push 1
xor eax, eax
push eax
push 0x1005c4dc
push dword [ebp - 0x634]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
or dword [ebp - 0x620], 0xffffffff
lea eax, [ebp - 0x620]
push 4
pop edi
push edi
push eax
push edi
xor eax, eax
push eax
push 0x1005c4e8
push dword [ebp - 0x634]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
or dword [ebp - 0x620], 0xffffffff
lea eax, [ebp - 0x620]
push edi
push eax
push edi
xor eax, eax
push eax
push 0x1005c514
push dword [ebp - 0x634]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
or dword [ebp - 0x620], 0xffffffff
lea eax, [ebp - 0x620]
push edi
push eax
push edi
xor eax, eax
push eax
push 0x1005c4fc
push dword [ebp - 0x634]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
push edi
lea eax, [ebp - 0x620]
xor ecx, ecx
push eax
push edi
push ecx
push 0x1005c530
push dword [ebp - 0x634]
mov dword [ebp - 0x620], ecx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov edi, dword [ebp - 0x640]
cmp dword [ebp - 0x638], 0
je 0x10142bbc
push dword [ebp - 0x638]
call dword [sym.imp.api_ms_win_core_heap_obsolete_l1_1_0.dll_LocalFree]
test ebx, ebx
jne 0x10142bcc
push edi
push SysStringLen
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegUnLoadKeyW]
cmp dword [ebp - 0x63c], 0
je 0x10142be1
push dword [ebp - 0x63c]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
cmp dword [ebp - 0x634], 0
je 0x10142bf6
push dword [ebp - 0x634]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, dword [ebp - 0x644]
test eax, eax
je 0x10142c0a
add eax, 0xfffffffc
push eax
call fcn.100b84f9
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100b88c0
leave
ret 0x28