Function at 0x140001210
Capabilities:
Create process on windows
Create thread
Get common file path
Print debug messages
Query or enumerate registry value
Set registry value
Write and execute a file
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x938]
sub rsp, 0xa10
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14004e038]
xor rax, rsp
mov qword [rbp + 0x900], rax
mov rsi, rcx
mov qword [rsp + 0x70], rcx
mov byte [rsp + 0x20], 1
call fcn.140004610
nop
xor ebx, ebx
mov qword [rsi + 0x278], rbx
mov qword [rsi + 0x2a8], rbx
mov byte [rsi + 0x2c0], bl
lea r14, [rsi + 0x2c8]
lea rax, vtable.FMAPO::CMMEndpointNotify.0
mov qword [r14], rax
mov qword [r14 + 8], rbx
mov qword [r14 + 0x10], rbx
mov qword [r14 + 0x18], rbx
mov qword [r14 + 0x20], rbx
mov qword [r14 + 0x28], rbx
mov dword [r14 + 0x30], 0xa
mov qword [rsi + 0x348], rbx
mov byte [rsi + 0x350], bl
mov qword [rsi + 0x358], rbx
mov r15d, 0xff
mov dword [rsi + 0x364], r15d
mov qword [rsi + 0x368], rbx
mov dword [rsi + 0x374], ebx
lea r13, [rsi + 0x378]
mov eax, 1
mov dword [r13], eax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREFortemedia
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x140001344
mov dword [rbp], 4
lea rax, [rbp]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Install
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREFortemediaHowlingDection
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400013b8
mov dword [rbp + 4], 4
lea rax, [rbp + 4]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
lea rdx, str.13AE3061_F6DC_45C1_B90C_F5E992141790_11
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov edi, ebx
test eax, eax
mov eax, 1
cmove edi, eax
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test edi, edi
jne 0x140001585
lea rcx, [rbp + 0x2e0]
lea rdx, str.HKEY_LOCAL_MACHINESOFTWAREFortemedia__1_7_17__n_Install__REG_DWORD_1_nHKEY_LOCAL_MACHINESOFTWAREFortemediaHowlingDection__1_7_17__n_13AE3061_F6DC_45C1_B90C_F5E992141790_10__REG_DWORD_0_n_13AE3061_F6DC_45C1_B90C_F5E992141790_11__REG_DWORD_1_n_13AE3061_F6DC_45C1_B90C_F5E992141790_12__REG_DWORD_0_n_13AE3061_F6DC_45C1_B90C_F5E992141790_13__REG_DWORD_0_n_13AE3061_F6DC_45C1_B90C_F5E992141790_14__REG_DWORD_0_n_13AE3061_F6DC_45C1_B90C_F5E992141790_15__REG_DWORD_0_n_13AE3061_F6DC_45C1_B90C_F5E992141790_16__REG_DWORD_0
mov eax, 4
nop dword [rax + rax]
movups xmm0, xmmword [rdx]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rdx + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rdx + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rdx + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rdx + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rdx + 0x60]
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm1, xmmword [rdx + 0x70]
movups xmmword [rcx - 0x10], xmm1
lea rdx, [rdx + 0x80]
sub rax, 1
jne 0x1400013d0
movups xmm0, xmmword [rdx]
movups xmmword [rcx], xmm0
mov eax, dword [rdx + 0x10]
mov dword [rcx + 0x10], eax
movzx eax, byte [rdx + 0x14]
mov byte [rcx + 0x14], al
mov dword [rbp + 8], ebx
xor edx, edx
lea r8d, [rdx + 0x64]
lea rcx, [rbp + 0x74]
call fcn.140011520
mov dword [rbp + 0x70], 0x68
xor eax, eax
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rax
mov edx, 0x100
lea rcx, [rbp + 0xe0]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW]
lea r9, [rbp + 0xe0]
lea r8, str._s_regtest.txt
mov edx, 0x200
lea rcx, [rbp + 0xe0]
call fcn.140001140
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r9 + 3]
lea rcx, [rbp + 0xe0]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400014e8
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 8]
mov r8d, 0x215
lea rdx, [rbp + 0x2e0]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov edx, 0x100
lea rcx, [rbp + 0x500]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW]
lea rax, [rbp + 0xe0]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x500]
lea r8, str._s_regini.exe__s
mov edx, 0x400
lea rcx, [rbp + 0x500]
call fcn.140001140
lea rax, [rbp - 0x18]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x500]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateProcessW]
test eax, eax
je 0x140001585
mov edx, 0xffffffff
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREFortemedia
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400015e5
mov dword [rbp + 0xc], 4
lea rax, [rbp + 0xc]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
lea rdx, str.ServiceTraceFlag
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test byte [r13], 4
je 0x1400015f9
lea rcx, str.Enter_FMAPOService::FMAPOService_n
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
mov edi, 1
mov edx, edi
lea rcx, [rbp + 0x40]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_InitializeSecurityDescriptor]
xor r9d, r9d
xor r8d, r8d
mov edx, edi
lea rcx, [rbp + 0x40]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_SetSecurityDescriptorDacl]
mov qword [rbp - 0x78], 0x18
mov qword [rbp - 0x68], rdi
lea rax, [rbp + 0x40]
mov qword [rbp - 0x70], rax
lea r9, str.FMAPOCTL
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x78]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov qword [rsi + 0x280], rax
mov edx, edi
lea rcx, [rbp + 0x40]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_InitializeSecurityDescriptor]
xor r9d, r9d
xor r8d, r8d
mov edx, edi
lea rcx, [rbp + 0x40]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_SetSecurityDescriptorDacl]
mov qword [rbp - 0x78], 0x18
mov qword [rbp - 0x68], rdi
lea rax, [rbp + 0x40]
mov qword [rbp - 0x70], rax
lea r9, str.FMRENDERAPOCTL
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x78]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov qword [rsi + 0x288], rax
mov edx, edi
lea rcx, [rbp + 0x40]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_InitializeSecurityDescriptor]
xor r9d, r9d
xor r8d, r8d
mov edx, edi
lea rcx, [rbp + 0x40]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_SetSecurityDescriptorDacl]
mov qword [rbp - 0x78], 0x18
mov qword [rbp - 0x68], rdi
lea rax, [rbp + 0x40]
mov qword [rbp - 0x70], rax
lea r9, str.FMAPOCTL2
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x78]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov qword [rsi + 0x2b0], rax
mov edx, edi
lea rcx, [rbp + 0x40]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_InitializeSecurityDescriptor]
xor r9d, r9d
xor r8d, r8d
mov edx, edi
lea rcx, [rbp + 0x40]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_SetSecurityDescriptorDacl]
mov qword [rbp - 0x78], 0x18
mov qword [rbp - 0x68], rdi
lea rax, [rbp + 0x40]
mov qword [rbp - 0x70], rax
lea r9, str.FMRENDERAPOCTL2
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x78]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov qword [rsi + 0x2b8], rax
mov edx, edi
lea rcx, [rbp + 0x40]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_InitializeSecurityDescriptor]
xor r9d, r9d
xor r8d, r8d
mov edx, edi
lea rcx, [rbp + 0x40]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_SetSecurityDescriptorDacl]
mov qword [rbp - 0x78], 0x18
mov qword [rbp - 0x68], rdi
lea rax, [rbp + 0x40]
mov qword [rbp - 0x70], rax
lea r9, str.FMAPOCTL3
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x78]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov qword [rsi + 0x290], rax
mov edx, edi
lea rcx, [rbp + 0x40]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_InitializeSecurityDescriptor]
xor r9d, r9d
xor r8d, r8d
mov edx, edi
lea rcx, [rbp + 0x40]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_SetSecurityDescriptorDacl]
mov qword [rbp - 0x78], 0x18
mov qword [rbp - 0x68], rdi
lea rax, [rbp + 0x40]
mov qword [rbp - 0x70], rax
lea rax, str.FMServiceFileMappingObject
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x100
xor r9d, r9d
lea r8d, [rdi + 3]
lea rdx, [rbp - 0x78]
lea rcx, [rdi - 2]
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_CreateFileMappingW]
mov qword [rsi + 0x298], rax
test rax, rax
jne 0x140001805
test byte [r13], dil
je 0x14000185b
lea rcx, str.FMAPOService:_Create_file_mapping_fail_r_n
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
jmp 0x14000185b
mov qword [rsp + 0x20], 0x100
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf001f
mov rcx, rax
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_MapViewOfFile]
mov qword [rsi + 0x2a0], rax
test rax, rax
jne 0x140001843
test byte [r13], dil
je 0x14000185b
lea rcx, str.FMAPOCAP:_MapViewOfFile_fail_r_n
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
jmp 0x14000185b
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rcx
mov qword [rax + 0x20], rcx
mov dword [rax + 0x28], ecx
mov edx, 2
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoInitializeEx]
mov qword [rbp + 0x18], rbx
lea rax, [rbp + 0x18]
mov qword [rsp + 0x20], rax
lea r9, [0x1400436f0]
xor edx, edx
lea r8d, [rdx + 0x17]
lea rcx, [0x140043700]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoCreateInstance]
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x1400018a9
mov qword [r14 + 0x38], rsi
mov rax, qword [rcx]
mov rdx, r14
call qword [rax + 0x30]
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x1400018b4
mov rax, qword [rcx]
call qword [rax + 0x10]
lea r8, [rsi + 0x364]
lea rdx, str.samsfpa.dat
mov rcx, rsi
call fcn.140008de0
test al, al
jne 0x1400018dd
mov dword [rsi + 0x364], r15d
mov dword [rsi + 0x14c], ebx
jmp 0x1400018e4
mov r15d, dword [rsi + 0x364]
bt r15d, 0xb
jb 0x1400018fe
mov dword [rsp + 0x20], ebx
lea r9, str.13AE3061_F6DC_45C1_B90C_F5E992141790_11
mov rcx, rsi
call fcn.140008bb0
test byte [rsi + 0x14c], 8
je 0x1400019a4
mov dword [rbp + 0x10], 2
mov qword [rbp - 0x20], rbx
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001b
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftSpeech_OneCoreAudioPolicy
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000198a
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.VoiceActivationLidStateBehavior
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test eax, eax
jne 0x14000197b
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x1400019a4
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
lea r8, str.WriteLidStateBehaviorReg:_Speech_OneCoreAudioPolicy_Reg_Set_VoiceActivationLidStateBehavior_fail_err_x_n
jmp 0x140001997
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
lea r8, str.WriteLidStateBehaviorReg:_Speech_OneCoreAudioPolicy_Reg_Open_fail_err_x_n
mov r9d, eax
mov edx, edi
mov rcx, rsi
call fcn.140006650
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
mov r9, rsi
lea r8, [0x140001eb0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov qword [rsi + 0x338], rax
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
mov r9, rsi
lea r8, [0x1400024b0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov qword [rsi + 0x340], rax
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
mov r9, rsi
lea r8, [0x140002500]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov qword [rsi + 0x348], rax
lea rcx, [rsi + 0x308]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_InitializeCriticalSection]
mov qword [rsi + 0x330], rbx
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x58], rbx
mov qword [rbp - 0x28], rbx
mov qword [rbp - 0x38], rbx
mov dword [rbp - 0x80], ebx
mov dword [rsi + 0x360], ebx
mov dword [rsi + 0x370], ebx
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
lea r9, [0x14004eba8]
xor edx, edx
lea r8d, [rdx + 0x17]
lea rcx, [0x14004eb98]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoCreateInstance]
test eax, eax
jne 0x140001e5b
mov rcx, qword [rbp - 0x30]
mov rax, qword [rcx]
lea r9, [rbp - 0x58]
mov r8d, 0xf
mov edx, edi
call qword [rax + 0x18]
test eax, eax
jne 0x140001c61
mov rcx, qword [rbp - 0x58]
mov rax, qword [rcx]
lea rdx, [rbp - 0x80]
call qword [rax + 0x18]
test eax, eax
jne 0x140001c57
mov eax, dword [rbp - 0x80]
test eax, eax
je 0x140001c57
imul rdx, rax, 0x108
mov ecx, 0x40
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_GlobalAlloc]
mov r14, rax
mov qword [rsi + 0x358], rax
test rax, rax
je 0x140001c57
mov r15d, ebx
cmp dword [rbp - 0x80], ebx
jbe 0x140001c57
nop
mov rcx, qword [rbp - 0x58]
mov r9, qword [rcx]
lea r8, [rbp - 0x28]
mov edx, r15d
call qword [r9 + 0x20]
test eax, eax
jne 0x140001c43
mov rcx, qword [rbp - 0x28]
mov rax, qword [rcx]
lea r8, [rbp - 0x38]
xor edx, edx
call qword [rax + 0x20]
test eax, eax
jne 0x140001c43
xor eax, eax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov rcx, qword [rbp - 0x38]
mov rax, qword [rcx]
lea r8, [rbp - 0x50]
lea rdx, [0x140042450]
call qword [rax + 0x28]
test eax, eax
jne 0x140001c39
mov dword [rbp + 0x3c], 4
xor r9d, r9d
lea r8, [rsp + 0x60]
mov rdx, qword [rbp - 0x48]
mov rcx, rsi
call fcn.140003910
test al, al
je 0x140001c39
lea rax, [rbp + 0x3c]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.2b24be42_a892_11dc_8314_0800200c9a66_2
mov rdi, qword [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov rcx, rdi
test eax, eax
jne 0x140001c33
mov r13d, dword [rbp + 0x38]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov dword [rbp + 0x34], 4
xor r9d, r9d
lea r8, [rsp + 0x58]
mov rdx, qword [rbp - 0x48]
mov rcx, rsi
call fcn.140003910
test al, al
je 0x140001c39
lea rax, [rbp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.2b24be42_a892_11dc_8314_0800200c9a66_7
mov r12, qword [rsp + 0x58]
mov rcx, r12
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov rcx, r12
test eax, eax
jne 0x140001c33
mov edi, dword [rbp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov r9, qword [rbp - 0x48]
lea r8, [0x140042a00]
mov edx, 0x100
mov rcx, r14
call fcn.140001140
mov dword [r14 + 0x100], r13d
mov dword [r14 + 0x104], edi
add r14, 0x108
inc dword [rsi + 0x360]
jmp 0x140001c39
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
lea rcx, [rbp - 0x50]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_PropVariantClear]
inc r15d
cmp r15d, dword [rbp - 0x80]
jb 0x140001ae0
lea r13, [rsi + 0x378]
mov rcx, qword [rbp - 0x58]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x30]
mov rax, qword [rcx]
lea r9, [rbp - 0x58]
xor edx, edx
lea r8d, [rdx + 0xf]
call qword [rax + 0x18]
test eax, eax
jne 0x140001e51
mov rcx, qword [rbp - 0x58]
mov rax, qword [rcx]
lea rdx, [rbp - 0x80]
call qword [rax + 0x18]
test eax, eax
jne 0x140001e47
mov eax, dword [rbp - 0x80]
test eax, eax
je 0x140001e47
imul rdx, rax, 0x108
mov ecx, 0x40
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_GlobalAlloc]
mov r14, rax
mov qword [rsi + 0x368], rax
test rax, rax
je 0x140001e47
cmp dword [rbp - 0x80], 0
jbe 0x140001e47
mov r13d, 1
mov rcx, qword [rbp - 0x58]
mov r9, qword [rcx]
lea r8, [rbp - 0x28]
mov edx, ebx
call qword [r9 + 0x20]
test eax, eax
jne 0x140001e35
mov rcx, qword [rbp - 0x28]
mov rax, qword [rcx]
lea r8, [rbp - 0x38]
xor edx, edx
call qword [rax + 0x20]
test eax, eax
jne 0x140001e35
xor eax, eax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov rcx, qword [rbp - 0x38]
mov rax, qword [rcx]
lea r8, [rbp - 0x50]
lea rdx, [0x140042450]
call qword [rax + 0x28]
test eax, eax
jne 0x140001e2b
mov dword [rbp + 0x2c], 4
mov r9d, r13d
lea r8, [rsp + 0x50]
mov rdx, qword [rbp - 0x48]
mov rcx, rsi
call fcn.140003910
test al, al
je 0x140001e2b
lea rax, [rbp + 0x2c]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x28]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.2b24be42_a892_11dc_8314_0800200c9a66_2
mov rdi, qword [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov rcx, rdi
test eax, eax
jne 0x140001e25
mov r12d, dword [rbp + 0x28]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov dword [rbp + 0x24], 4
mov r9d, r13d
lea r8, [rsp + 0x68]
mov rdx, qword [rbp - 0x48]
mov rcx, rsi
call fcn.140003910
test al, al
je 0x140001e2b
lea rax, [rbp + 0x24]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.2b24be42_a892_11dc_8314_0800200c9a66_7
mov r15, qword [rsp + 0x68]
mov rcx, r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov rcx, r15
test eax, eax
jne 0x140001e25
mov edi, dword [rbp + 0x20]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov r9, qword [rbp - 0x48]
lea r8, [0x140042a00]
mov edx, 0x100
mov rcx, r14
call fcn.140001140
mov dword [r14 + 0x100], r12d
mov dword [r14 + 0x104], edi
add r14, 0x108
inc dword [rsi + 0x370]
jmp 0x140001e2b
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
lea rcx, [rbp - 0x50]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_PropVariantClear]
inc ebx
cmp ebx, dword [rbp - 0x80]
jb 0x140001cd3
lea r13, [rsi + 0x378]
mov rcx, qword [rbp - 0x58]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
test byte [r13], 4
je 0x140001e70
lea rcx, str.Leave_FMAPOService::FMAPOService_n
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
nop
mov rax, rsi
mov rcx, qword [rbp + 0x900]
xor rcx, rsp
call fcn.14000c610
lea r11, [rsp + 0xa10]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret