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, 0x4adf2c
call fcn.0046c36c
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.004174d1
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 [0x51940c], 0
jne 0x40f4f6
test edi, edi
je 0x40f4f6
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.00451da2
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 fcn.00402d9f
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 fcn.00487efd
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 - 0x230], edi
call fcn.00402d9f
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 fcn.00487efd
pop ecx
push eax
push esi
lea ecx, [ebp - 0x22c]
call fcn.004025c6
mov esi, dword [ebp - 0x22c]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40f306
call fcn.004524e1
push eax
lea ecx, [ebp - 0x23c]
call fcn.00402899
push 0x208
xor ebx, ebx
mov byte [ebp - 4], 3
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.004847f0
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 0x40efb5
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.00416da0
pop ecx
pop ecx
mov ecx, dword [ebp - 0x220]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov esi, dword [ebp - 0x22c]
jmp 0x40f27f
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x23c]
call fcn.0040286d
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.00416da0
pop ecx
pop ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x220]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov eax, dword [0x519098]
cmp dword [eax - 0xc], 0
jne 0x40f080
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.00416da0
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, 0x519098
call fcn.0040286d
call fcn.004524e1
push eax
lea ecx, [ebp - 0x220]
call fcn.00402899
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, 0x4ce868
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.004443cf
mov edi, dword [ebp - 0x220]
add esp, 0xc
test eax, eax
jne 0x40f126
cmp dword [edi - 0xc], eax
je 0x40f126
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.00416da0
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, 0x519098
push eax
call fcn.00402e14
mov edi, dword [ebp - 0x220]
mov eax, dword [0x519098]
cmp dword [eax - 0xc], 0
jne 0x40f165
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.004174d1
pop ecx
mov ecx, dword [ebp - 0x224]
lea ecx, [ecx - 0x10]
jmp 0x40f26c
add eax, 0xfffffff0
mov byte [ebp - 0x240], bl
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 - 0x23c]
xor edi, edi
mov ebx, dword [ebp - 0x240]
inc edi
mov dword [ebp - 0x238], eax
cmp eax, 0xffffffff
je 0x40f21f
push 0x4cd574
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.0044418d
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 fcn.00409b05
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 0x40f221
mov eax, dword [ebp - 0x238]
jmp 0x40f1a1
test bl, bl
mov esi, dword [ebp - 0x22c]
mov edi, dword [ebp - 0x220]
mov ebx, dword [ebp - 0x24c]
jne 0x40f292
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.004174d1
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 0x40f40a
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.00444357
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 [0x51940c], 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 0x40f34f
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.00416da0
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.00451d9d
mov eax, dword [0x51940c]
pop ecx
test eax, eax
jne 0x40f3a9
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.00416da0
mov eax, dword [ebp - 0x228]
pop ecx
pop ecx
lea ecx, [eax - 0x10]
call fcn.00402e64
mov esi, dword [ebp - 0x22c]
jmp 0x40f40a
push str.UTInitialize
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x519410], eax
test eax, eax
jne 0x40f420
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.004174d1
pop ecx
mov ecx, dword [ebp - 0x228]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov eax, dword [0x51940c]
test eax, eax
je 0x40f403
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
and dword [0x51940c], 0
lea ecx, [esi - 0x10]
call fcn.00402e64
mov ecx, edi
call fcn.00402e64
xor al, al
jmp 0x40f5c4
push str.UTStartSession
push dword [0x51940c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.UTLogEvent
push dword [0x51940c]
mov dword [0x519414], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.UTNewDataGroup
push dword [0x51940c]
mov dword [0x519418], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.UTAddToGroup
push dword [0x51940c]
mov dword [0x51941c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.UTCloseSession
push dword [0x51940c]
mov dword [0x519420], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.UTIsLogSessionActive
push dword [0x51940c]
mov dword [0x519424], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.UTDisableRealTime
push dword [0x51940c]
mov dword [0x519430], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.UTDisableIngestEvents
push dword [0x51940c]
mov dword [0x519434], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.UTSetEnvironment
push dword [0x51940c]
mov dword [0x519428], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [esi - 0x10]
mov dword [0x51942c], eax
call fcn.00402e64
or dword [ebp - 4], 0xffffffff
mov ecx, edi
jmp 0x40f52d
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.004174d1
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, dword [ebp - 0x228]
lea ecx, [ecx - 0x10]
call fcn.00402e64
cmp dword [0x519414], 0
je 0x40f571
cmp dword [0x519418], 0
je 0x40f571
cmp dword [0x51941c], 0
je 0x40f571
cmp dword [0x519420], 0
je 0x40f571
cmp dword [0x519424], 0
je 0x40f571
cmp dword [0x519428], 0
je 0x40f571
cmp dword [0x51942c], 0
jne 0x40f5c2
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.004174d1
pop ecx
mov ecx, dword [ebp - 0x230]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov eax, dword [0x51940c]
test eax, eax
je 0x40f5b9
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
and dword [0x51940c], 0
xor bl, bl
mov al, bl
call fcn.0046c316
ret 4