Function at 0x40edf1
Capabilities:
Check if file exists
Get common file path
Get file attributes
Link many functions at runtime
Set current directory

Disassembly:
push 0x240
mov eax, 0x4ae1dc
call fcn.0046c66c
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x234]
push str.Initialize..
call fcn.00402829
and dword [ebp - 4], 0
lea edx, [ebp - 0x234]
push 0
push 2
pop eax
mov ecx, eax
call fcn.00417741
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, dword [ebp - 0x234]
lea ecx, [ecx - 0x10]
call fcn.00402e64
xor ebx, ebx
inc ebx
cmp dword [0x51a40c], 0
jne 0x40f524
test edi, edi
je 0x40f524
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor ecx, ecx
push 2
pop edx
lea esi, [eax + 0x13]
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00452092
pop ecx
mov ebx, eax
push ebx
push esi
mov dword [ebp - 0x240], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edx, dword [edi + 0x68]
sub edx, 0x10
push edx
call fcn.00402d9f
add eax, 0x10
pop ecx
mov dword [ebp - 0x234], eax
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.004031f2
test eax, eax
mov ecx, str.Acrobat_
mov esi, str.Reader_
cmove esi, ecx
push esi
call fcn.004881cd
pop ecx
push eax
push esi
lea ecx, [ebp - 0x234]
call fcn.004025c6
mov edi, dword [ebp - 0x234]
add edi, 0xfffffff0
push edi
mov dword [ebp - 0x224], edi
call fcn.00402d9f
add eax, 0x10
pop ecx
mov dword [ebp - 0x230], eax
push 2
pop eax
mov esi, str.logsession.dll
mov byte [ebp - 4], al
push esi
call fcn.004881cd
pop ecx
push eax
push esi
lea ecx, [ebp - 0x230]
call fcn.004025c6
mov esi, dword [ebp - 0x230]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40f331
call fcn.004527d1
push eax
lea ecx, [ebp - 0x238]
call fcn.00402899
push 0x208
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 3
push 0
push eax
call fcn.00484ac0
add esp, 0xc
mov dword [ebp - 0x244], 0x104
lea eax, [ebp - 0x244]
push 0
push 0
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
call dword [sym.imp.msi.dll_MsiMessageBoxW]
test eax, eax
je 0x40efc4
push str.Failed_to_determine_installed_Logsession.dll_version:
lea ecx, [ebp - 0x220]
call fcn.00402829
push 0
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 4
push eax
push 2
pop eax
lea edx, [ebp - 0x220]
mov ecx, eax
call fcn.00417010
pop ecx
pop ecx
mov ecx, dword [ebp - 0x220]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push ebx
call fcn.0045208d
mov esi, dword [ebp - 0x230]
pop ecx
jmp 0x40f2ac
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x238]
call fcn.0040286d
push str.Installed_Logsession.dll_version:
lea ecx, [ebp - 0x220]
call fcn.00402829
push 0
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 5
push eax
push 2
pop eax
lea edx, [ebp - 0x220]
mov ecx, eax
call fcn.00417010
pop ecx
pop ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x220]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov eax, dword [0x51a098]
cmp dword [eax - 0xc], 0
jne 0x40f091
mov edi, str.8.8.0.2
lea ecx, [ebp - 0x228]
push edi
call fcn.00402829
push str.Empty_AllowedLogsessionDllVersionsHBEOLSDK_in_Session__setting_to_default:
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 6
call fcn.00402829
push 0
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 7
push eax
push 2
pop eax
lea edx, [ebp - 0x220]
mov ecx, eax
call fcn.00417010
pop ecx
pop ecx
mov ecx, dword [ebp - 0x220]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x228]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push edi
mov ecx, 0x51a098
call fcn.0040286d
call fcn.004527d1
push eax
lea ecx, [ebp - 0x220]
call fcn.00402899
lea eax, [ebp - 0x22c]
mov byte [ebp - 4], 8
and dword [ebp - 0x22c], 0
mov edx, 0x4ce868
push eax
lea eax, [ebp - 0x220]
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
push eax
push str.TestAllowedHBEOLSDK
call fcn.0044464f
mov edi, dword [ebp - 0x220]
add esp, 0xc
test eax, eax
jne 0x40f139
cmp dword [edi - 0xc], eax
je 0x40f139
push str.Found_TestAllowedHBEOLSDK_in_Registry:
lea ecx, [ebp - 0x228]
call fcn.00402829
push 0
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 9
push eax
push 2
pop eax
lea edx, [ebp - 0x228]
mov ecx, eax
call fcn.00417010
pop ecx
pop ecx
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x228]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea eax, [ebp - 0x220]
mov ecx, 0x51a098
push eax
call fcn.00402e14
mov edi, dword [ebp - 0x220]
mov eax, dword [0x51a098]
cmp dword [eax - 0xc], 0
jne 0x40f185
push str.Empty_AllowedLogsessionDllVersionsHBEOLSDK_in_Session
lea ecx, [ebp - 0x228]
call fcn.00402829
push 0
push 2
pop eax
lea edx, [ebp - 0x228]
mov byte [ebp - 4], 0xa
mov ecx, eax
call fcn.00417741
pop ecx
mov ecx, dword [ebp - 0x228]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push ebx
call fcn.0045208d
pop ecx
jmp 0x40f29e
add eax, 0xfffffff0
mov byte [ebp - 0x23c], 0
push eax
call fcn.00402d9f
mov ebx, eax
pop ecx
mov dword [ebp - 0x24c], ebx
lea eax, [ebx + 0x10]
mov dword [ebp - 0x248], eax
mov byte [ebp - 4], 0xb
xor eax, eax
mov esi, dword [ebp - 0x238]
xor edi, edi
mov ebx, dword [ebp - 0x23c]
inc edi
mov dword [ebp - 0x22c], eax
cmp eax, 0xffffffff
je 0x40f240
push 0x4cd574
lea ecx, [ebp - 0x228]
call fcn.00402829
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x22c]
push eax
lea edx, [ebp - 0x248]
lea ecx, [ebp - 0x23c]
call fcn.0044440d
pop ecx
pop ecx
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x228]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push esi
lea ecx, [ebp - 0x23c]
call fcn.00409b05
mov byte [ebp - 4], 0xb
test eax, eax
mov ecx, dword [ebp - 0x23c]
movzx ebx, bl
cmove ebx, edi
lea ecx, [ecx - 0x10]
call fcn.00402e64
test bl, bl
jne 0x40f242
mov eax, dword [ebp - 0x22c]
jmp 0x40f1c2
test bl, bl
mov esi, dword [ebp - 0x230]
mov edi, dword [ebp - 0x220]
mov ebx, dword [ebp - 0x24c]
jne 0x40f2bf
push str.Unable_to_find_allowed_Logsession.dll_version
lea ecx, [ebp - 0x22c]
call fcn.00402829
push 0
push 2
pop eax
lea edx, [ebp - 0x22c]
mov byte [ebp - 4], 0xf
mov ecx, eax
call fcn.00417741
pop ecx
mov ecx, dword [ebp - 0x22c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push dword [ebp - 0x240]
call fcn.0045208d
pop ecx
mov ecx, ebx
call fcn.00402e64
lea ecx, [edi - 0x10]
call fcn.00402e64
mov edi, dword [ebp - 0x224]
mov eax, dword [ebp - 0x238]
lea ecx, [eax - 0x10]
call fcn.00402e64
jmp 0x40f430
mov ecx, ebx
mov byte [ebp - 4], 8
call fcn.00402e64
push ecx
push dword [ebp - 0x234]
mov edx, str.SoftwareAdobeCommonFilesUsageCC_
mov ecx, SysReAllocString
push str.Agent
call fcn.004445d7
add esp, 0xc
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, dword [ebp - 0x240]
push ebx
mov dword [0x51a40c], eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [edi - 0x10]
call fcn.00402e64
push 2
pop eax
mov byte [ebp - 4], al
mov ecx, dword [ebp - 0x238]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov edi, dword [ebp - 0x224]
jmp 0x40f37a
push str.Unable_to_find_Logsession.dll:
lea ecx, [ebp - 0x224]
call fcn.00402829
push 0
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0x10
push eax
push 2
pop eax
lea edx, [ebp - 0x224]
mov ecx, eax
call fcn.00417010
pop ecx
pop ecx
push 2
pop eax
mov byte [ebp - 4], al
mov ecx, dword [ebp - 0x224]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov esi, dword [ebp - 0x230]
push ebx
call fcn.0045208d
mov eax, dword [0x51a40c]
pop ecx
test eax, eax
jne 0x40f3cf
push str.LoadLibrary_failed:
lea ecx, [ebp - 0x224]
call fcn.00402829
push 0
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0x11
push eax
push 2
pop eax
lea edx, [ebp - 0x224]
mov ecx, eax
call fcn.00417010
mov eax, dword [ebp - 0x224]
pop ecx
pop ecx
lea ecx, [eax - 0x10]
call fcn.00402e64
mov esi, dword [ebp - 0x230]
jmp 0x40f430
push str.UTInitialize
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x51a410], eax
test eax, eax
jne 0x40f446
push str.Failed_to_export_UTInitialize_from_Logsession_NGL
lea ecx, [ebp - 0x224]
call fcn.00402829
push 0
push 2
pop eax
lea edx, [ebp - 0x224]
mov byte [ebp - 4], 0x12
mov ecx, eax
call fcn.00417741
pop ecx
mov ecx, dword [ebp - 0x224]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov eax, dword [0x51a40c]
test eax, eax
je 0x40f429
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
and dword [0x51a40c], 0
lea ecx, [esi - 0x10]
call fcn.00402e64
mov ecx, edi
call fcn.00402e64
xor al, al
jmp 0x40f5f2
push str.UTStartSession
push dword [0x51a40c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.UTLogEvent
push dword [0x51a40c]
mov dword [0x51a414], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.UTNewDataGroup
push dword [0x51a40c]
mov dword [0x51a418], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.UTAddToGroup
push dword [0x51a40c]
mov dword [0x51a41c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.UTCloseSession
push dword [0x51a40c]
mov dword [0x51a420], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.UTIsLogSessionActive
push dword [0x51a40c]
mov dword [0x51a424], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.UTDisableRealTime
push dword [0x51a40c]
mov dword [0x51a430], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.UTDisableIngestEvents
push dword [0x51a40c]
mov dword [0x51a434], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.UTSetEnvironment
push dword [0x51a40c]
mov dword [0x51a428], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [esi - 0x10]
mov dword [0x51a42c], eax
call fcn.00402e64
or dword [ebp - 4], 0xffffffff
mov ecx, edi
call fcn.00402e64
xor ebx, ebx
inc ebx
jmp 0x40f560
push str.No_condition_to_load_library
lea ecx, [ebp - 0x224]
call fcn.00402829
push 0
push 2
pop eax
lea edx, [ebp - 0x224]
mov dword [ebp - 4], 0x13
mov ecx, eax
call fcn.00417741
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, dword [ebp - 0x224]
lea ecx, [ecx - 0x10]
call fcn.00402e64
cmp dword [0x51a414], 0
je 0x40f59f
cmp dword [0x51a418], 0
je 0x40f59f
cmp dword [0x51a41c], 0
je 0x40f59f
cmp dword [0x51a420], 0
je 0x40f59f
cmp dword [0x51a424], 0
je 0x40f59f
cmp dword [0x51a428], 0
je 0x40f59f
cmp dword [0x51a42c], 0
jne 0x40f5f0
push str.One_of_the_exports_failed
lea ecx, [ebp - 0x22c]
call fcn.00402829
push 0
push 2
pop eax
lea edx, [ebp - 0x22c]
mov dword [ebp - 4], 0x14
mov ecx, eax
call fcn.00417741
pop ecx
mov ecx, dword [ebp - 0x22c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov eax, dword [0x51a40c]
test eax, eax
je 0x40f5e7
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
and dword [0x51a40c], 0
xor bl, bl
mov al, bl
call fcn.0046c616
ret 4