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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x476077
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4bfd60]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [0x4c44f4], ebx
jne 0x4184cf
cmp dword [ebp + 8], ebx
je 0x4184cf
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push ebx
push ebx
call edi
mov esi, eax
add esi, 0x13
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00447e91
pop ecx
push eax
push esi
mov dword [esp + 0x28], eax
call edi
mov edi, dword [ebp + 8]
lea eax, [edi + 0x68]
push eax
lea ecx, [esp + 0x18]
call fcn.004020ea
mov dword [esp + 0x30], ebx
call fcn.00405238
lea ecx, [esp + 0x14]
test eax, eax
je 0x418276
push str.Reader_
jmp 0x41827b
push str.Acrobat_
call fcn.0040af5f
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
call fcn.004020ea
push str.logsession.dll
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 1
call fcn.0040af5f
mov edi, dword [esp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x4182ea
push ebx
push str.Agent
push str.SoftwareAdobeCommonFilesUsageCC_
push SysReAllocString
call fcn.0043d205
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
add esp, 0x10
push ebx
call esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push dword [esp + 0x20]
mov dword [0x4c44f4], eax
call esi
jmp 0x418324
push str.Unable_to_find_Logsession.dll:
lea ecx, [esp + 0x20]
call fcn.004020a6
push 0
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x24]
push eax
push 2
mov byte [esp + 0x40], 2
call fcn.00414e01
mov byte [esp + 0x40], 1
mov ecx, dword [esp + 0x2c]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025d2
push dword [esp + 0x20]
call fcn.00447e9c
mov eax, dword [0x4c44f4]
pop ecx
test eax, eax
jne 0x418381
push str.LoadLibrary_failed:
lea ecx, [esp + 0x24]
call fcn.004020a6
push 0
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
push eax
push 2
mov byte [esp + 0x40], 3
call fcn.00414e01
add esp, 0x10
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.004025d2
lea ecx, [edi - 0x10]
call fcn.004025d2
lea ecx, [ebx - 0x10]
call fcn.004025d2
jmp 0x41857a
mov ecx, dword [0x4c44f8]
cmp ecx, 1
jne 0x4183ec
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.UTInitialize
push eax
call esi
mov dword [0x4c44fc], eax
test eax, eax
jne 0x418421
push str.Failed_to_export_UTInitialize_from_Logsession_HB
lea ecx, [esp + 0x24]
call fcn.004020a6
mov byte [esp + 0x30], 4
push 0
lea eax, [esp + 0x24]
push eax
push 2
call fcn.004152d1
mov ecx, dword [esp + 0x2c]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
mov eax, dword [0x4c44f4]
test eax, eax
je 0x4183e3
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
and dword [0x4c44f4], 0
jmp 0x41836c
cmp ecx, 2
jne 0x4184a6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.UTInitialize
push eax
call esi
mov dword [0x4c4604], eax
test eax, eax
jne 0x418421
push str.Failed_to_export_UTInitialize_from_Logsession_NGL
lea ecx, [esp + 0x24]
call fcn.004020a6
mov byte [esp + 0x30], 5
jmp 0x4183b6
push str.UTStartSession
push dword [0x4c44f4]
call esi
push str.UTLogEvent
push dword [0x4c44f4]
mov dword [0x4c4608], eax
call esi
push str.UTNewDataGroup
push dword [0x4c44f4]
mov dword [0x4c460c], eax
call esi
push str.UTAddToGroup
push dword [0x4c44f4]
mov dword [0x4c4610], eax
call esi
push str.UTCloseSession
push dword [0x4c44f4]
mov dword [0x4c4614], eax
call esi
push str.UTDisableRealTime
push dword [0x4c44f4]
mov dword [0x4c4618], eax
call esi
lea ecx, [edi - 0x10]
mov dword [0x4c461c], eax
call fcn.004025d2
or dword [esp + 0x30], 0xffffffff
lea ecx, [ebx - 0x10]
call fcn.004025d2
xor ebx, ebx
jmp 0x418506
push str.Not_valid_LogsessionType_in_HB::AVUsageMeasureInitialized
lea ecx, [esp + 0x24]
call fcn.004020a6
push 0
lea eax, [esp + 0x24]
push eax
push 2
mov byte [esp + 0x3c], 6
call fcn.004152d1
add esp, 0xc
jmp 0x418360
push str.No_condition_to_load_library
lea ecx, [esp + 0x24]
call fcn.004020a6
push ebx
lea eax, [esp + 0x24]
push eax
push 2
mov dword [esp + 0x3c], 7
call fcn.004152d1
or dword [esp + 0x3c], 0xffffffff
mov ecx, dword [esp + 0x2c]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
cmp dword [0x4c4608], ebx
je 0x418532
cmp dword [0x4c460c], ebx
je 0x418532
cmp dword [0x4c4610], ebx
je 0x418532
cmp dword [0x4c4614], ebx
je 0x418532
cmp dword [0x4c4618], ebx
je 0x418532
mov al, 1
jmp 0x41857c
push str.One_of_the_exports_failed
lea ecx, [esp + 0x20]
call fcn.004020a6
push ebx
lea eax, [esp + 0x20]
push eax
push 2
mov dword [esp + 0x3c], 8
call fcn.004152d1
mov ecx, dword [esp + 0x28]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
mov eax, dword [0x4c44f4]
cmp eax, ebx
je 0x418574
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x4c44f4], ebx
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret