Function at 0x413970
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421246
mov eax, dword fs:[0]
push eax
sub esp, 0x464
mov eax, dword [0x42e00c]
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 - 0x468], ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x430]
push 0x20a
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x468], 2
mov dword [ebp - 0x470], ebx
call fcn.00414eb0
mov dword [ebp - 0x46c], eax
call fcn.00402f60
mov eax, dword [0x42e054]
cmp eax, 1
jne 0x413a06
push str.JHI_service_release_prints_are_enabled_n
call fcn.00401aa0
jmp 0x413a15
cmp eax, 2
jne 0x413a18
push str.JHI_service_debug_trace_and_release_prints_are_enabled_n
call fcn.00401b10
add esp, 4
push ecx
lea edx, [ebp - 0x220]
mov ecx, str.APPLETSLOCALE
call fcn.00402dc0
add esp, 4
test al, al
jne 0x413a7b
push str.unable_to_find_applets_repository_location_from_registry
call fcn.00401aa0
add esp, 4
push str.IntelDalJhi
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x413a71
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
jmp 0x413cf9
mov esi, dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__waccess_s]
lea eax, [ebp - 0x220]
push 0
push eax
call esi
add esp, 8
test eax, eax
je 0x413ac5
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x448]
call fcn.00415150
lea edx, [ebp - 0x470]
mov ebx, 1
lea ecx, [ebp - 0x448]
call fcn.00413820
mov byte [ebp - 0x461], bl
test al, al
je 0x413acc
mov byte [ebp - 0x461], 0
test bl, 1
je 0x413ae9
mov eax, dword [ebp - 0x434]
cmp eax, 8
jb 0x413ae9
inc eax
push eax
push dword [ebp - 0x448]
call fcn.004025b0
cmp byte [ebp - 0x461], 0
je 0x413b3d
push str.Init_failed___cannot_find_applet_repository_directory._Searched_location:
call fcn.00401aa0
add esp, 4
push str.IntelDalJhi
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x413b33
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 0x413cf9
xor eax, eax
mov dword [ebp - 0x438], 0
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x434], 7
mov word [ebp - 0x448], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413b63
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x448]
call fcn.00406190
lea eax, [ebp - 0x448]
mov dword [ebp - 4], 0
push eax
call fcn.004050e0
mov ecx, eax
call fcn.00412f10
test al, al
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x434]
sete bl
cmp eax, 8
jb 0x413bc3
inc eax
push eax
push dword [ebp - 0x448]
call fcn.004025b0
test bl, bl
je 0x413bde
push str.Init_failed___setAppletsFolder_failed.
call fcn.00401b10
add esp, 4
mov eax, 0x601
jmp 0x413cf9
push ecx
lea edx, [ebp - 0x430]
mov ecx, str.FILELOCALE
call fcn.00402dc0
add esp, 4
test al, al
jne 0x413c1c
push str.unable_to_query_file_location_from_registry
call fcn.00401aa0
add esp, 4
mov edx, 0xc0000006
mov ecx, 1
call fcn.00410fc0
mov eax, 0x501
jmp 0x413cf9
lea eax, [ebp - 0x430]
push 0
push eax
call esi
add esp, 8
test eax, eax
je 0x413c45
push str.Init_failed___the_service_file_location_does_not_exist
call fcn.00401aa0
add esp, 4
mov eax, 0x601
jmp 0x413cf9
lea eax, [ebp - 0x430]
push eax
lea ecx, [ebp - 0x460]
call fcn.00405200
lea eax, [ebp - 0x460]
mov dword [ebp - 4], 1
push eax
call fcn.004050e0
mov ecx, eax
call fcn.00412eb0
test al, al
lea ecx, [ebp - 0x460]
sete bl
call fcn.004022d0
test bl, bl
je 0x413c99
push str.Init_failed___setServiceFolder_failed.
call fcn.00401aa0
add esp, 4
mov eax, 0x601
jmp 0x413cf9
lea edx, [ebp - 0x468]
mov ecx, str.JHI_TRANSPORT_TYPE
call fcn.00402eb0
test al, al
jne 0x413cc7
push str.Unable_to_query_transport_type_from_registry__keeping_default__TEE_LIB_.
call fcn.00401b10
mov edi, 2
add esp, 4
mov dword [ebp - 0x468], edi
jmp 0x413ccd
mov edi, dword [ebp - 0x468]
call fcn.004050e0
mov esi, eax
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi]
mov dword [esi + 0x40], edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
push str.GlobalsManager___setTransportType___d.
call fcn.00401b10
add esp, 8
xor eax, eax
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.0041e725
mov esp, ebp
pop ebp
ret