Function at 0x14001fd00
Capabilities:
Access the windows event log
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r14
lea rbp, [rsp - 0x3d0]
sub rsp, 0x4d0
mov rax, qword [0x14008e010]
xor rax, rsp
mov qword [rbp + 0x3c0], rax
xor r12d, r12d
mov r14d, r12d
mov dword [rsp + 0x70], r12d
xor edx, edx
mov r8d, 0x20a
lea rcx, [rbp - 0x60]
call fcn.14003d8e0
xor edx, edx
mov r8d, 0x20a
lea rcx, [rbp + 0x1b0]
call fcn.14003d8e0
mov dword [rsp + 0x78], 2
mov qword [rbp - 0x80], r12
lea rbx, [0x140093c50]
mov r8, rbx
lea rdx, [0x1400215c0]
lea rcx, [0x140093c60]
call fcn.140039e38
test eax, eax
je 0x14002037a
mov qword [rbp - 0x78], rbx
mov dword [rsp + 0x70], 1
mov dword [reloc.WS2_32.dll_accept], 1
lea rdx, [rsp + 0x70]
lea rcx, str.JHI_LOG
call fcn.140009360
test al, al
jne 0x14001fdce
lea rcx, str.LogLevel_setting_not_found._Setting_to_release_prints_only.
call fcn.140003170
jmp 0x14001fdff
mov eax, dword [rsp + 0x70]
test eax, eax
je 0x14001fdf8
sub eax, 1
je 0x14001fde0
cmp eax, 1
je 0x14001fdec
mov dword [reloc.WS2_32.dll_accept], 1
jmp 0x14001fdff
mov dword [reloc.WS2_32.dll_accept], 2
jmp 0x14001fdff
mov dword [reloc.WS2_32.dll_accept], r12d
mov dword [rsp + 0x70], r12d
mov dword [0x1400917e0], r12d
lea rdx, [rsp + 0x70]
lea rcx, str.JHI_LOG_TARGET
call fcn.140009360
test al, al
jne 0x14001fe2e
lea rcx, str.Log_target_setting_not_found._Defaulting_to_debugger.
call fcn.1400031b0
jmp 0x14001fe4c
mov eax, dword [rsp + 0x70]
test eax, eax
je 0x14001fe45
cmp eax, 1
mov dword [0x1400917e0], 1
je 0x14001fe4c
mov dword [0x1400917e0], r12d
mov eax, dword [reloc.WS2_32.dll_accept]
cmp eax, 1
jne 0x14001fe65
lea rcx, str.JHI_service_release_prints_are_enabled_n
call fcn.140003170
jmp 0x14001fe76
cmp eax, 2
jne 0x14001fe76
lea rcx, str.JHI_service_debug_trace_and_release_prints_are_enabled_n
call fcn.1400031b0
mov rbx, qword [0x140091818]
mov ecx, 0x40c
call fcn.1400390dc
mov rdi, rax
mov r8, rax
lea rdx, str.APPLETSLOCALE
mov rcx, rbx
call fcn.140009440
test al, al
jne 0x14001ff18
test rdi, rdi
je 0x14001feb2
mov edx, 2
mov rcx, rdi
call fcn.140038b74
lea rcx, str.unable_to_find_applets_repository_location_from_registry
call fcn.140003170
lea rdx, str.IntelDalJhi
xor ecx, ecx
call qword [sym.imp.ADVAPI32.DLL_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x14001ff0e
xor r8d, r8d
lea edx, [r8 + 1]
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], r12d
mov word [rsp + 0x28], r12w
mov qword [rsp + 0x20], r12
mov r9d, 0xc0000006
mov rcx, rax
call qword [sym.imp.ADVAPI32.DLL_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.DLL_DeregisterEventSource]
mov edi, 0x501
jmp 0x140020346
mov r8d, 0x206
lea rdx, [rbp - 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
test rdi, rdi
je 0x14001ff3d
mov edx, 2
mov rcx, rdi
call fcn.140038b74
xor edx, edx
lea rcx, [rbp - 0x60]
call fcn.140045db8
mov rsi, 0xffffffffffffffff
test eax, eax
je 0x14001ffae
lea rax, [rbp - 0x60]
mov r8, rsi
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], r12w
jne 0x14001ff60
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], r12w
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x50]
call fcn.14000d1d0
nop
mov r14d, 7
mov dword [rsp + 0x70], r14d
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x50]
call fcn.14001fa10
test al, al
jne 0x14001ffae
mov bl, 1
jmp 0x14001ffb0
xor bl, bl
mov edi, 0x1000
test r14b, 1
je 0x14001fff9
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x14001fff9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, rdi
jb 0x14001fff4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140020380
call fcn.140038b74
test bl, bl
je 0x140020062
lea rcx, str.Init_failed___cannot_find_applet_repository_directory._Searched_location:
call fcn.140003170
lea rdx, str.IntelDalJhi
xor ecx, ecx
call qword [sym.imp.ADVAPI32.DLL_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x140020346
xor r8d, r8d
lea edx, [r8 + 1]
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], r12d
mov word [rsp + 0x28], r12w
mov qword [rsp + 0x20], r12
mov r9d, 0xc0000008
mov rcx, rax
call qword [sym.imp.ADVAPI32.DLL_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.DLL_DeregisterEventSource]
jmp 0x140020346
call fcn.14000cc30
mov r14, rax
mov qword [rbp - 0x70], r12
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], r12w
lea rax, [rbp - 0x60]
mov r8, rsi
inc r8
cmp word [rax + r8*2], 0
jne 0x140020082
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x80]
call fcn.14000d1d0
nop
cmp qword [rbp - 0x70], 0
jne 0x1400200a6
mov bl, 1
jmp 0x1400200ff
mov edx, 0xffffffff
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
lea rbx, [r14 + 0x30]
lea rax, [rbp - 0x80]
cmp rbx, rax
je 0x1400200db
lea rdx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rdx, qword [rbp - 0x80]
mov r8, qword [rbp - 0x70]
mov rcx, rbx
call fcn.14000d1d0
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.DLL_ReleaseMutex]
cmp qword [rbx + 0x18], 8
jb 0x1400200ee
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, str.GlobalsManager___setAppletsFolder___s
call fcn.1400031b0
xor bl, bl
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x14002013b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, rdi
jb 0x140020136
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140020374
call fcn.140038b74
test bl, bl
je 0x140020155
lea rcx, str.Init_failed___setAppletsFolder_failed.
call fcn.1400031b0
mov edi, 0x601
jmp 0x140020346
mov rbx, qword [0x140091818]
mov ecx, 0x40c
call fcn.1400390dc
mov r14, rax
mov r8, rax
lea rdx, str.FILELOCALE
mov rcx, rbx
call fcn.140009440
test al, al
jne 0x14002019d
test r14, r14
je 0x140020191
mov edx, 2
mov rcx, r14
call fcn.140038b74
lea rcx, str.unable_to_query_file_location_from_registry
jmp 0x14001feb9
mov r8d, 0x206
lea rdx, [rbp + 0x1b0]
mov rcx, r14
call qword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
test r14, r14
je 0x1400201c5
mov edx, 2
mov rcx, r14
call fcn.140038b74
xor edx, edx
lea rcx, [rbp + 0x1b0]
call fcn.140045db8
test eax, eax
je 0x1400201ed
lea rcx, str.Init_failed___the_service_file_location_does_not_exist
call fcn.140003170
mov edi, 0x601
jmp 0x140020346
call fcn.14000cc30
mov r14, rax
mov qword [rbp - 0x70], r12
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], r12w
lea rax, [rbp + 0x1b0]
nop dword [rax]
inc rsi
cmp word [rax + rsi*2], 0
jne 0x140020210
mov r8, rsi
lea rdx, [rbp + 0x1b0]
lea rcx, [rbp - 0x80]
call fcn.14000d1d0
nop
mov rsi, qword [rbp - 0x70]
test rsi, rsi
jne 0x14002023b
mov bl, 1
jmp 0x140020293
mov edx, 0xffffffff
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
lea rbx, [r14 + 0x10]
lea rax, [rbp - 0x80]
cmp rbx, rax
je 0x14002026f
lea rdx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rdx, qword [rbp - 0x80]
mov r8, rsi
mov rcx, rbx
call fcn.14000d1d0
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.DLL_ReleaseMutex]
cmp qword [rbx + 0x18], 8
jb 0x140020282
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, str.GlobalsManager___setServiceFolder___s
call fcn.1400031b0
xor bl, bl
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x1400202cf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, rdi
jb 0x1400202ca
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140020374
call fcn.140038b74
test bl, bl
je 0x1400202e6
lea rcx, str.Init_failed___setServiceFolder_failed.
call fcn.140003170
mov edi, 0x601
jmp 0x140020346
lea rdx, [rsp + 0x78]
lea rcx, str.JHI_TRANSPORT_TYPE
call fcn.140009360
test al, al
jne 0x14002030f
lea rcx, str.Unable_to_query_transport_type_from_registry__keeping_default__TEE_LIB_.
call fcn.1400031b0
mov dword [rsp + 0x78], 2
call fcn.14000cc30
mov rbx, rax
mov edi, dword [rsp + 0x78]
mov edx, 0xffffffff
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov dword [rbx + 0x58], edi
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.DLL_ReleaseMutex]
mov edx, edi
lea rcx, str.GlobalsManager___setTransportType___d.
call fcn.1400031b0
mov edi, r12d
mov eax, edi
mov rcx, qword [rbp + 0x3c0]
xor rcx, rsp
call fcn.140038b50
lea r11, [rsp + 0x4d0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop r12
pop rbp
ret
call fcn.140045708
int3
call fcn.14004453c
int3
call fcn.140045708
int3