Function at 0x140004610
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x418]
sub rsp, 0x4f0
mov qword [rsp + 0x58], 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 + 0x3e0], rax
mov rdi, rcx
mov qword [rsp + 0x60], rcx
xor r15d, r15d
mov qword [rcx], r15
mov qword [rcx + 8], r15
mov qword [rcx + 0x10], r15
mov qword [rcx + 0x18], r15
mov qword [rcx + 0x20], r15
mov qword [rcx + 0x28], r15
mov dword [rcx + 0x30], 0xa
mov qword [rcx + 0x38], r15
mov qword [rcx + 0x140], r15
mov eax, 0x13
mov word [rcx + 0x148], ax
mov dword [rcx + 0x14c], r15d
mov dword [rcx + 0x150], 0x1f402454
mov word [rcx + 0x154], r15w
mov dword [rcx + 0x158], 0xffffffff
mov qword [rcx + 0x15c], 1
mov qword [rcx + 0x164], r15
mov dword [rcx + 0x16c], 1
mov dword [rcx + 0x170], 1
mov qword [rcx + 0x178], r15
lea rax, vtable.RpcServer::CMMEndpointNotify.0
mov qword [rcx + 0x188], rax
mov qword [rcx + 0x190], r15
mov qword [rcx + 0x198], r15
mov qword [rcx + 0x1a0], r15
mov qword [rcx + 0x1a8], r15
mov qword [rcx + 0x1b0], r15
mov dword [rcx + 0x1b8], 0xa
mov byte [rcx + 0x1d8], r15b
mov qword [rcx + 0x20c], 0xffffffffffffffff
mov dword [rcx + 0x218], 0xffffffff
mov qword [rcx + 0x21c], 0xff
mov qword [rcx + 0x228], r15
mov dword [rcx + 0x230], 0xffffffff
mov qword [rcx + 0x238], r15
mov qword [rcx + 0x240], r15
mov qword [rcx + 0x248], r15
mov dword [rcx + 0x251], r15d
mov word [rcx + 0x255], r15w
mov dword [rcx + 0x258], 0xffffffff
mov byte [rcx + 0x25c], r15b
mov dword [rcx + 0x260], 0xffffffff
mov byte [rcx + 0x264], r15b
mov dword [rcx + 0x268], r15d
mov dword [rcx + 0x26c], 1
lea r13, [rcx + 0x270]
mov dword [r13], r15d
lea rdx, str.FMService_EventLog
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov qword [rdi], rax
lea rax, [rbp - 0x58]
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 0x140004827
mov dword [rbp - 0x50], 4
lea rax, [rbp - 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
lea rdx, str.ServiceTraceFlag
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test byte [r13], 4
je 0x14000483b
lea rcx, [0x140043990]
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
cmp byte [rbp + 0x440], 0
jne 0x1400048c3
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov qword [rdi + 0x1c8], rax
lea r8, str.FMAPOCTL2
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenEventW]
mov qword [rdi + 0x180], rax
test rax, rax
jne 0x14000488f
test byte [r13], 1
je 0x14000488f
lea rcx, str.OpenEvent_Fail_r_n
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
lea r8, str.FMAPOCTL3
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenEventW]
mov qword [rdi + 0x1d0], rax
test rax, rax
jne 0x1400048c3
test byte [r13], 1
je 0x1400048c3
lea rcx, str.Open_ChangeMode_Event_Fail_r_n
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
mov dword [rdi + 0x20c], 0xffffffff
lea rcx, [rdi + 0x1e0]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_InitializeCriticalSection]
mov dword [rdi + 0x208], r15d
mov dword [rdi + 0x214], r15d
mov byte [rdi + 0x250], 0
lea r8, [rdi + 0x21c]
lea rdx, str.samsfpa.dat
mov rcx, rdi
call fcn.140008de0
test al, al
jne 0x140004915
mov dword [rdi + 0x21c], 0xff
jmp 0x140004921
mov eax, dword [rdi + 0x21c]
mov dword [0x140050d64], eax
lea r8, [rdi + 0x220]
lea rdx, str.samsfpaspk.dat
mov rcx, rdi
call fcn.140008de0
test al, al
jne 0x140004942
mov dword [rdi + 0x220], r15d
lea rcx, [rdi + 0x40]
xor edx, edx
mov r8d, 0x100
call fcn.140011520
mov qword [rbp - 0x60], r15
mov qword [rsp + 0x70], r15
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], r15
mov dword [rsp + 0x68], r15d
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x34], r15d
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
lea rax, [rbp - 0x60]
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 0x140004eed
mov rcx, qword [rbp - 0x60]
mov rax, qword [rcx]
lea r9, [rsp + 0x70]
mov edx, 1
lea r8d, [rdx + 0xe]
call qword [rax + 0x18]
test eax, eax
jne 0x140004c10
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
lea rdx, [rsp + 0x68]
call qword [rax + 0x18]
test eax, eax
jne 0x140004c05
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x140004c05
imul rdx, rax, 0x118
mov ecx, 0x40
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_GlobalAlloc]
mov rsi, rax
mov qword [rdi + 0x238], rax
test rax, rax
je 0x140004c05
mov r12d, r15d
cmp dword [rsp + 0x68], r15d
jbe 0x140004c05
nop dword [rax]
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
lea r8, [rbp - 0x70]
mov edx, r12d
call qword [rax + 0x20]
test eax, eax
jne 0x140004bf7
mov rcx, qword [rbp - 0x70]
mov rax, qword [rcx]
lea r8, [rbp - 0x68]
xor edx, edx
call qword [rax + 0x20]
test eax, eax
jne 0x140004bf7
xor eax, eax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov rcx, qword [rbp - 0x68]
mov rax, qword [rcx]
lea r8, [rsp + 0x78]
lea rdx, [0x140042450]
call qword [rax + 0x28]
test eax, eax
jne 0x140004bec
xor r9d, r9d
lea r8, [rsp + 0x30]
mov rdx, qword [rbp - 0x80]
mov rcx, rdi
call fcn.140008620
cmp al, 1
jne 0x140004bec
xor r9d, r9d
lea r8, [rsp + 0x34]
mov rdx, qword [rbp - 0x80]
mov rcx, rdi
call fcn.140008940
cmp al, 1
jne 0x140004bec
mov r9, qword [rbp - 0x80]
lea r8, [0x140042a00]
mov edx, 0x100
mov rcx, rsi
call fcn.140001140
mov ecx, dword [rsp + 0x30]
mov dword [rsi + 0x100], ecx
mov eax, dword [rsp + 0x34]
mov dword [rsi + 0x104], eax
mov dword [rsi + 0x110], ecx
mov dword [rsi + 0x114], eax
mov dword [rbp - 0x4c], 4
xor r9d, r9d
lea r8, [rsp + 0x38]
mov rdx, qword [rbp - 0x80]
mov rcx, rdi
call fcn.140008450
test al, al
je 0x140004b5d
lea rax, [rbp - 0x4c]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x48]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.BE73ED5B_FC1C_4875_AC4F_833FFF79CDAA_102
mov r14, qword [rsp + 0x38]
mov rcx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov rcx, r14
test eax, eax
jne 0x140004b57
mov ebx, dword [rbp - 0x48]
mov dword [rsp + 0x30], ebx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov dword [rsi + 0x108], ebx
jmp 0x140004b67
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov dword [rsi + 0x108], 3
mov dword [rbp - 0x44], 4
xor r9d, r9d
lea r8, [rsp + 0x40]
mov rdx, qword [rbp - 0x80]
mov rcx, rdi
call fcn.140008450
test al, al
je 0x140004bd5
lea rax, [rbp - 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.BE73ED5B_FC1C_4875_AC4F_833FFF79CDAA_107
mov r14, qword [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov rcx, r14
test eax, eax
jne 0x140004bcf
mov ebx, dword [rbp - 0x40]
mov dword [rsp + 0x34], ebx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov dword [rsi + 0x10c], ebx
jmp 0x140004bdf
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov dword [rsi + 0x10c], 0x800000
add rsi, 0x118
inc dword [rdi + 0x248]
lea rcx, [rsp + 0x78]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_PropVariantClear]
inc r12d
cmp r12d, dword [rsp + 0x68]
jb 0x140004a20
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x60]
mov rax, qword [rcx]
lea r9, [rsp + 0x70]
xor edx, edx
lea r8d, [rdx + 0xf]
call qword [rax + 0x18]
test eax, eax
jne 0x140004ee3
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
lea rdx, [rsp + 0x68]
call qword [rax + 0x18]
test eax, eax
jne 0x140004ed8
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x140004ed8
imul rdx, rax, 0x118
mov ecx, 0x40
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_GlobalAlloc]
mov rsi, rax
mov qword [rdi + 0x240], rax
test rax, rax
je 0x140004ed8
cmp dword [rsp + 0x68], 0
jbe 0x140004ed8
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
lea r8, [rbp - 0x70]
mov edx, r15d
call qword [rax + 0x20]
test eax, eax
jne 0x140004eca
mov rcx, qword [rbp - 0x70]
mov rax, qword [rcx]
lea r8, [rbp - 0x68]
xor edx, edx
call qword [rax + 0x20]
test eax, eax
jne 0x140004eca
xor eax, eax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov rcx, qword [rbp - 0x68]
mov rax, qword [rcx]
lea r8, [rsp + 0x78]
lea rdx, [0x140042450]
call qword [rax + 0x28]
test eax, eax
jne 0x140004ebf
mov rbx, qword [rbp - 0x80]
test rbx, rbx
je 0x140004d51
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp - 0x20]
call fcn.140011520
mov r9d, 1
lea r8, [rbp - 0x20]
mov rdx, rbx
mov rcx, rdi
call fcn.140009530
test al, al
je 0x140004d4d
lea rdx, str.2A6CD79F_47E8_4ABC_822B_3D301078976A
lea rcx, [rbp - 0x20]
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rax, rax
je 0x140004d4d
mov r9d, 1
lea r8, [rsp + 0x30]
mov rdx, qword [rbp - 0x80]
mov rcx, rdi
call fcn.140008620
test al, al
jne 0x140004d4d
mov rdx, qword [rbp - 0x80]
call fcn.1400096a0
mov rbx, qword [rbp - 0x80]
mov r9d, 1
lea r8, [rsp + 0x30]
mov rdx, rbx
mov rcx, rdi
call fcn.140008620
cmp al, 1
jne 0x140004ebf
mov r9d, 1
lea r8, [rsp + 0x34]
mov rdx, qword [rbp - 0x80]
mov rcx, rdi
call fcn.140008940
cmp al, 1
jne 0x140004ebf
mov r9, qword [rbp - 0x80]
lea r8, [0x140042a00]
mov edx, 0x100
mov rcx, rsi
call fcn.140001140
mov ecx, dword [rsp + 0x30]
mov dword [rsi + 0x100], ecx
mov eax, dword [rsp + 0x34]
mov dword [rsi + 0x104], eax
mov dword [rsi + 0x110], ecx
mov dword [rsi + 0x114], eax
mov dword [rbp - 0x3c], 4
mov r9d, 1
lea r8, [rsp + 0x48]
mov rdx, qword [rbp - 0x80]
mov rcx, rdi
call fcn.140008450
test al, al
je 0x140004e37
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.BE73ED5B_FC1C_4875_AC4F_833FFF79CDAA_102
mov r14, qword [rsp + 0x48]
mov rcx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov rcx, r14
test eax, eax
jne 0x140004e31
mov ebx, dword [rbp - 0x38]
mov dword [rsp + 0x30], ebx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov dword [rsi + 0x108], ebx
jmp 0x140004e37
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov dword [rbp - 0x34], 4
mov r9d, 1
lea r8, [rsp + 0x50]
mov rdx, qword [rbp - 0x80]
mov rcx, rdi
call fcn.140008450
test al, al
je 0x140004ea8
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.BE73ED5B_FC1C_4875_AC4F_833FFF79CDAA_107
mov r14, qword [rsp + 0x50]
mov rcx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov rcx, r14
test eax, eax
jne 0x140004ea2
mov ebx, dword [rbp - 0x30]
mov dword [rsp + 0x34], ebx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov dword [rsi + 0x10c], ebx
jmp 0x140004eb2
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov dword [rsi + 0x10c], 0x40860000
add rsi, 0x118
inc dword [rdi + 0x24c]
lea rcx, [rsp + 0x78]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_PropVariantClear]
inc r15d
cmp r15d, dword [rsp + 0x68]
jb 0x140004c81
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x60]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoUninitialize]
test byte [r13], 4
je 0x140004f07
lea rcx, [0x140043a80]
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
mov ecx, dword [0x140050d60]
mov dword [rdi + 0x158], ecx
mov rax, rdi
mov rcx, qword [rbp + 0x3e0]
xor rcx, rsp
call fcn.14000c610
lea r11, [rsp + 0x4f0]
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