Function at 0x41d590
Capabilities:
Access the windows event log
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45bc78
mov eax, dword fs:[0]
push eax
sub esp, 0x454
mov eax, dword [0x47900c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
lea eax, [ebp - 0x220]
push 0x20a
push ebx
push eax
mov dword [ebp - 0x434], ebx
call fcn.00437ca0
add esp, 0xc
lea eax, [ebp - 0x430]
push 0x20a
push ebx
push eax
call fcn.00437ca0
add esp, 0xc
mov dword [ebp - 0x438], 2
mov dword [ebp - 0x444], ebx
push 0x47da2c
push 0x41eb50
push 0x47da40
call fcn.0043523e
add esp, 0xc
test eax, eax
je 0x41dc49
lea edx, [ebp - 0x434]
mov dword [ebp - 0x440], 0x47da2c
mov ecx, str.JHI_LOG
mov dword [ebp - 0x434], 1
mov dword [0x479a80], 1
call fcn.00408210
test al, al
jne 0x41d660
push str.LogLevel_setting_not_found._Setting_to_release_prints_only.
call fcn.00402c50
add esp, 4
jmp 0x41d693
mov eax, dword [ebp - 0x434]
sub eax, 0
je 0x41d68d
sub eax, 1
je 0x41d675
sub eax, 1
je 0x41d681
mov dword [0x479a80], 1
jmp 0x41d693
mov dword [0x479a80], 2
jmp 0x41d693
mov dword [0x479a80], ebx
lea edx, [ebp - 0x434]
mov dword [ebp - 0x434], ebx
mov ecx, str.JHI_LOG_TARGET
mov dword [0x47b798], ebx
call fcn.00408210
test al, al
jne 0x41d6c2
push str.Log_target_setting_not_found._Defaulting_to_debugger.
call fcn.00402c70
add esp, 4
jmp 0x41d6e2
mov eax, dword [ebp - 0x434]
sub eax, 0
je 0x41d6dc
mov dword [0x47b798], 1
sub eax, 1
je 0x41d6e2
mov dword [0x47b798], ebx
mov eax, dword [0x479a80]
cmp eax, 1
jne 0x41d6f8
push str.JHI_service_release_prints_are_enabled_n
call fcn.00402c50
jmp 0x41d707
cmp eax, 2
jne 0x41d70a
push str.JHI_service_debug_trace_and_release_prints_are_enabled_n
call fcn.00402c70
add esp, 4
push 0x40c
call fcn.00434573
mov esi, eax
add esp, 4
test esi, esi
je 0x41d76a
lea eax, [ebp - 0x434]
mov dword [ebp - 0x434], 0x206
push eax
push esi
lea eax, [ebp - 0x43c]
push eax
push 0x10002
push str.APPLETSLOCALE
push str.SoftwareIntelServicesDAL
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x41d7cc
push eax
push str.readStringFromRegistry:_RegGetValue_failed_with_error_code__ld
call fcn.00402c70
push 2
push esi
call fcn.00434541
add esp, 0x10
push str.unable_to_find_applets_repository_location_from_registry
call fcn.00402c50
add esp, 4
push str.IntelDalJhi
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x41d7ab
push 0
push 0
push 0
push 0
push 0
push 0xc0000006
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov eax, 0x501
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00434098
mov esp, ebp
pop ebp
ret
push 0x206
lea eax, [ebp - 0x220]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 2
push esi
call fcn.00434541
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.0043ea74
add esp, 0x10
test eax, eax
je 0x41d86e
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41d805
sub ecx, edx
mov dword [ebp - 0x450], ebx
xor eax, eax
sar ecx, 1
mov word [ebp - 0x460], ax
lea eax, [ebp - 0x220]
push ecx
push eax
lea ecx, [ebp - 0x460]
mov dword [ebp - 0x44c], 7
call fcn.0040bb60
mov dword [ebp - 4], 0
lea edx, [ebp - 0x444]
mov ebx, 7
lea ecx, [ebp - 0x460]
mov dword [ebp - 0x434], ebx
call fcn.0041d2f0
mov byte [ebp - 0x445], 1
test al, al
je 0x41d875
mov byte [ebp - 0x445], 0
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x41d8c1
mov edx, dword [ebp - 0x44c]
cmp edx, 8
jb 0x41d8c1
mov ecx, dword [ebp - 0x460]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41d8b7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41dc4e
push edx
push ecx
call fcn.00434541
add esp, 8
cmp byte [ebp - 0x445], 0
je 0x41d915
push str.Init_failed___cannot_find_applet_repository_directory._Searched_location:
call fcn.00402c50
add esp, 4
push str.IntelDalJhi
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x41d90b
push 0
push 0
push 0
push 0
push 0
push 0xc0000008
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov eax, 0x1000
jmp 0x41d7b0
call fcn.0040b470
mov edi, eax
mov dword [ebp - 0x450], 0
xor eax, eax
mov dword [ebp - 0x44c], 7
lea ecx, [ebp - 0x220]
mov word [ebp - 0x460], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41d942
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x460]
call fcn.0040bb60
mov dword [ebp - 4], 1
mov ebx, dword [ebp - 0x450]
test ebx, ebx
jne 0x41d979
mov bl, 1
jmp 0x41d9c7
push 0xffffffffffffffff
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea esi, [edi + 0x20]
lea eax, [ebp - 0x460]
cmp esi, eax
je 0x41d9a7
cmp dword [ebp - 0x44c], 8
mov ecx, esi
push ebx
cmovae eax, dword [ebp - 0x460]
push eax
call fcn.0040bb60
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [esi + 0x14], 8
jb 0x41d9b7
mov esi, dword [esi]
push esi
push str.GlobalsManager___setAppletsFolder___s
call fcn.00402c70
add esp, 8
xor bl, bl
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x44c]
cmp edx, 8
jb 0x41da0e
mov ecx, dword [ebp - 0x460]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41da04
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41dc53
push edx
push ecx
call fcn.00434541
add esp, 8
test bl, bl
je 0x41da29
push str.Init_failed___setAppletsFolder_failed.
call fcn.00402c70
add esp, 4
mov eax, 0x601
jmp 0x41d7b0
push 0x40c
call fcn.00434573
mov esi, eax
add esp, 4
test esi, esi
je 0x41da89
lea eax, [ebp - 0x434]
mov dword [ebp - 0x434], 0x206
push eax
push esi
lea eax, [ebp - 0x43c]
push eax
push 0x10002
push str.FILELOCALE
push str.SoftwareIntelServicesDAL
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x41da93
push eax
push str.readStringFromRegistry:_RegGetValue_failed_with_error_code__ld
call fcn.00402c70
push 2
push esi
call fcn.00434541
add esp, 0x10
push str.unable_to_query_file_location_from_registry
jmp 0x41d76f
push 0x206
lea eax, [ebp - 0x430]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 2
push esi
call fcn.00434541
lea eax, [ebp - 0x430]
push 0
push eax
call fcn.0043ea74
add esp, 0x10
test eax, eax
je 0x41dada
push str.Init_failed___the_service_file_location_does_not_exist
call fcn.00402c50
add esp, 4
mov eax, 0x601
jmp 0x41d7b0
call fcn.0040b470
mov edi, eax
mov dword [ebp - 0x450], 0
xor eax, eax
mov dword [ebp - 0x44c], 7
lea ecx, [ebp - 0x430]
mov word [ebp - 0x460], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41db07
sub ecx, edx
lea eax, [ebp - 0x430]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x460]
call fcn.0040bb60
mov dword [ebp - 4], 2
mov ebx, dword [ebp - 0x450]
test ebx, ebx
jne 0x41db3e
mov bl, 1
jmp 0x41db8c
push 0xffffffffffffffff
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea esi, [edi + 8]
lea eax, [ebp - 0x460]
cmp esi, eax
je 0x41db6c
cmp dword [ebp - 0x44c], 8
mov ecx, esi
push ebx
cmovae eax, dword [ebp - 0x460]
push eax
call fcn.0040bb60
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [esi + 0x14], 8
jb 0x41db7c
mov esi, dword [esi]
push esi
push str.GlobalsManager___setServiceFolder___s
call fcn.00402c70
add esp, 8
xor bl, bl
mov edx, dword [ebp - 0x44c]
cmp edx, 8
jb 0x41dbcc
mov ecx, dword [ebp - 0x460]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41dbc2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41dc53
push edx
push ecx
call fcn.00434541
add esp, 8
test bl, bl
je 0x41dbe7
push str.Init_failed___setServiceFolder_failed.
call fcn.00402c50
add esp, 4
mov eax, 0x601
jmp 0x41d7b0
lea edx, [ebp - 0x438]
mov ecx, str.JHI_TRANSPORT_TYPE
call fcn.00408210
test al, al
jne 0x41dc12
push str.Unable_to_query_transport_type_from_registry__keeping_default__TEE_LIB_.
call fcn.00402c70
add esp, 4
mov dword [ebp - 0x438], 2
call fcn.0040b470
mov edi, dword [ebp - 0x438]
mov esi, eax
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi]
mov dword [esi + 0x3c], edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
push str.GlobalsManager___setTransportType___d.
call fcn.00402c70
add esp, 8
xor eax, eax
jmp 0x41d7b0
call fcn.0043d36a
call fcn.0043e4ec
call fcn.0043e4ec
int3