Function at 0x40ee82
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, 0x4ac7dc
call fcn.0046ac3c
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.004174f1
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 [0x516410], 0
jne 0x40f587
test edi, edi
je 0x40f587
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 main
pop ecx
push eax
push esi
mov dword [ebp - 0x228], eax
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov edx, dword [edi + 0x68]
sub edx, 0x10
push edx
call main
add eax, 0x10
pop ecx
mov dword [ebp - 0x234], eax
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.004031f2
test eax, eax
mov ecx, str.Acrobat_
mov esi, str.Reader_
cmove esi, ecx
push esi
call main
pop ecx
push eax
push esi
lea ecx, [ebp - 0x234]
call main
mov edi, dword [ebp - 0x234]
add edi, 0xfffffff0
push edi
mov dword [ebp - 0x230], edi
call main
add eax, 0x10
pop ecx
mov dword [ebp - 0x22c], eax
push 2
pop eax
mov esi, str.logsession.dll
mov byte [ebp - 4], al
push esi
call main
pop ecx
push eax
push esi
lea ecx, [ebp - 0x22c]
call main
mov esi, dword [ebp - 0x22c]
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40f397
call fcn.00450db1
push eax
lea ecx, [ebp - 0x23c]
call main
push 0x208
xor ebx, ebx
mov byte [ebp - 4], 3
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.004830a0
add esp, 0xc
mov dword [ebp - 0x244], 0x104
lea eax, [ebp - 0x244]
push ebx
push ebx
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
call dword [sym.imp.msi.dll_MsiMessageBoxW]
test eax, eax
je 0x40f046
push str.Failed_to_determine_installed_Logsession.dll_version:
lea ecx, [ebp - 0x220]
call fcn.00402829
push ebx
lea eax, [ebp - 0x22c]
mov byte [ebp - 4], 4
push eax
push 2
pop eax
lea edx, [ebp - 0x220]
mov ecx, eax
call fcn.00416dc0
pop ecx
pop ecx
mov ecx, dword [ebp - 0x220]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov esi, dword [ebp - 0x22c]
jmp 0x40f310
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x23c]
call main
push str.Installed_Logsession.dll_version:
lea ecx, [ebp - 0x220]
call fcn.00402829
push ebx
lea eax, [ebp - 0x23c]
mov byte [ebp - 4], 5
push eax
push 2
pop eax
lea edx, [ebp - 0x220]
mov ecx, eax
call fcn.00416dc0
pop ecx
pop ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x220]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov eax, dword [0x51609c]
cmp dword [eax - 0xc], 0
jne 0x40f111
mov edi, str.8.8.0.2
lea ecx, [ebp - 0x224]
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 ebx
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 7
push eax
push 2
pop eax
lea edx, [ebp - 0x220]
mov ecx, eax
call fcn.00416dc0
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 - 0x224]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push edi
mov ecx, 0x51609c
call main
call fcn.00450db1
push eax
lea ecx, [ebp - 0x220]
call main
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x238], ebx
push eax
push str.TestAllowedHBEOLSDK
mov edx, 0x4cc898
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call main
mov edi, dword [ebp - 0x220]
add esp, 0xc
test eax, eax
jne 0x40f1b7
cmp dword [edi - 0xc], eax
je 0x40f1b7
push str.Found_TestAllowedHBEOLSDK_in_Registry:
lea ecx, [ebp - 0x224]
call fcn.00402829
push ebx
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 9
push eax
push 2
pop eax
lea edx, [ebp - 0x224]
mov ecx, eax
call fcn.00416dc0
pop ecx
pop ecx
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x224]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea eax, [ebp - 0x220]
mov ecx, 0x51609c
push eax
call main
mov edi, dword [ebp - 0x220]
mov eax, dword [0x51609c]
cmp dword [eax - 0xc], 0
jne 0x40f1f6
push str.Empty_AllowedLogsessionDllVersionsHBEOLSDK_in_Session
lea ecx, [ebp - 0x224]
call fcn.00402829
push ebx
push 2
pop eax
lea edx, [ebp - 0x224]
mov byte [ebp - 4], 0xa
mov ecx, eax
call fcn.004174f1
pop ecx
mov ecx, dword [ebp - 0x224]
lea ecx, [ecx - 0x10]
jmp 0x40f2fd
add eax, 0xfffffff0
mov byte [ebp - 0x240], bl
push eax
call main
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 - 0x23c]
xor edi, edi
mov ebx, dword [ebp - 0x240]
inc edi
mov dword [ebp - 0x238], eax
cmp eax, 0xffffffff
je 0x40f2b0
push 0x4cb544
lea ecx, [ebp - 0x224]
call fcn.00402829
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x238]
push eax
lea edx, [ebp - 0x248]
lea ecx, [ebp - 0x240]
call fcn.00443fe3
pop ecx
pop ecx
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x224]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push esi
lea ecx, [ebp - 0x240]
call main
mov byte [ebp - 4], 0xb
test eax, eax
mov ecx, dword [ebp - 0x240]
movzx ebx, bl
cmove ebx, edi
lea ecx, [ecx - 0x10]
call fcn.00402e64
test bl, bl
jne 0x40f2b2
mov eax, dword [ebp - 0x238]
jmp 0x40f232
test bl, bl
mov esi, dword [ebp - 0x22c]
mov edi, dword [ebp - 0x220]
mov ebx, dword [ebp - 0x24c]
jne 0x40f323
push str.Unable_to_find_allowed_Logsession.dll_version
lea ecx, [ebp - 0x238]
call fcn.00402829
push 0
push 2
pop eax
lea edx, [ebp - 0x238]
mov byte [ebp - 4], 0xf
mov ecx, eax
call fcn.004174f1
pop ecx
mov ecx, dword [ebp - 0x238]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, ebx
call fcn.00402e64
lea ecx, [edi - 0x10]
call fcn.00402e64
mov edi, dword [ebp - 0x230]
mov eax, dword [ebp - 0x23c]
lea ecx, [eax - 0x10]
call fcn.00402e64
jmp 0x40f49b
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 main
add esp, 0xc
push dword [ebp - 0x234]
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryW]
push esi
call dword [sym.imp.kernel32.dll_LoadLibraryW]
push dword [ebp - 0x228]
mov dword [0x516410], 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 - 0x23c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov edi, dword [ebp - 0x230]
xor ebx, ebx
inc ebx
jmp 0x40f3e0
push str.Unable_to_find_Logsession.dll:
lea ecx, [ebp - 0x230]
call fcn.00402829
push 0
lea eax, [ebp - 0x22c]
mov byte [ebp - 4], 0x10
push eax
push 2
pop eax
lea edx, [ebp - 0x230]
mov ecx, eax
call fcn.00416dc0
pop ecx
pop ecx
push 2
pop eax
mov byte [ebp - 4], al
mov ecx, dword [ebp - 0x230]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov esi, dword [ebp - 0x22c]
push dword [ebp - 0x228]
call fcn.0045066d
mov eax, dword [0x516410]
pop ecx
test eax, eax
jne 0x40f43a
push str.LoadLibrary_failed:
lea ecx, [ebp - 0x228]
call fcn.00402829
push 0
lea eax, [ebp - 0x22c]
mov byte [ebp - 4], 0x11
push eax
push 2
pop eax
lea edx, [ebp - 0x228]
mov ecx, eax
call fcn.00416dc0
mov eax, dword [ebp - 0x228]
pop ecx
pop ecx
lea ecx, [eax - 0x10]
call fcn.00402e64
mov esi, dword [ebp - 0x22c]
jmp 0x40f49b
push str.UTInitialize
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x516414], eax
test eax, eax
jne 0x40f4b1
push str.Failed_to_export_UTInitialize_from_Logsession_NGL
lea ecx, [ebp - 0x228]
call fcn.00402829
push 0
push 2
pop eax
lea edx, [ebp - 0x228]
mov byte [ebp - 4], 0x12
mov ecx, eax
call fcn.004174f1
pop ecx
mov ecx, dword [ebp - 0x228]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov eax, dword [0x516410]
test eax, eax
je 0x40f494
push eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
and dword [0x516410], 0
lea ecx, [esi - 0x10]
call fcn.00402e64
mov ecx, edi
call fcn.00402e64
xor al, al
jmp 0x40f655
push str.UTStartSession
push dword [0x516410]
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.UTLogEvent
push dword [0x516410]
mov dword [0x516418], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.UTNewDataGroup
push dword [0x516410]
mov dword [0x51641c], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.UTAddToGroup
push dword [0x516410]
mov dword [0x516420], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.UTCloseSession
push dword [0x516410]
mov dword [0x516424], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.UTIsLogSessionActive
push dword [0x516410]
mov dword [0x516428], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.UTDisableRealTime
push dword [0x516410]
mov dword [0x516434], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.UTDisableIngestEvents
push dword [0x516410]
mov dword [0x516438], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.UTSetEnvironment
push dword [0x516410]
mov dword [0x51642c], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
lea ecx, [esi - 0x10]
mov dword [0x516430], eax
call fcn.00402e64
or dword [ebp - 4], 0xffffffff
mov ecx, edi
jmp 0x40f5be
push str.No_condition_to_load_library
lea ecx, [ebp - 0x228]
call fcn.00402829
push 0
push 2
pop eax
lea edx, [ebp - 0x228]
mov dword [ebp - 4], 0x13
mov ecx, eax
call fcn.004174f1
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, dword [ebp - 0x228]
lea ecx, [ecx - 0x10]
call fcn.00402e64
cmp dword [0x516418], 0
je 0x40f602
cmp dword [0x51641c], 0
je 0x40f602
cmp dword [0x516420], 0
je 0x40f602
cmp dword [0x516424], 0
je 0x40f602
cmp dword [0x516428], 0
je 0x40f602
cmp dword [0x51642c], 0
je 0x40f602
cmp dword [0x516430], 0
jne 0x40f653
push str.One_of_the_exports_failed
lea ecx, [ebp - 0x230]
call fcn.00402829
push 0
push 2
pop eax
lea edx, [ebp - 0x230]
mov dword [ebp - 4], 0x14
mov ecx, eax
call fcn.004174f1
pop ecx
mov ecx, dword [ebp - 0x230]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov eax, dword [0x516410]
test eax, eax
je 0x40f64a
push eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
and dword [0x516410], 0
xor bl, bl
mov al, bl
call fcn.0046abe6
ret 4