Function at 0x40b050
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
push edi
push esi
push 0x4c91e4
push 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
mov eax, dword [esi]
test eax, eax
jne 0x40b15b
push 0x4d197c
push 0xfffe
call fcn.00450e5d
push 0xfffe
mov edi, eax
push 0
push edi
call fcn.00495790
add esp, 0x14
push 0x7fff
push edi
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40b148
push 0x5c
push edi
call fcn.004958ea
add esp, 8
test eax, eax
je 0x40b148
mov edx, eax
mov ecx, 0x7fff
sub edx, edi
sar edx, 1
push str.log.dll
sub ecx, edx
push ecx
push eax
call fcn.004989ad
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi], eax
push edi
call fcn.00450e58
mov eax, dword [esi]
add esp, 4
test eax, eax
je 0x40b292
push str.LogInit
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x40b177
mov ecx, edi
call dword [0x4c758c]
call edi
push str.LogApplySettings
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.LogSetSettingsFile
push dword [esi]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.LogEnable
push dword [esi]
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.LogSetLevel
push dword [esi]
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.LogSetPath
push dword [esi]
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.LogSetType
push dword [esi]
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.LogSetMode
push dword [esi]
mov dword [esi + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.LogSetMaxSize
push dword [esi]
mov dword [esi + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.LogSetDepth
push dword [esi]
mov dword [esi + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.LogWrite
push dword [esi]
mov dword [esi + 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.LogIsEnabled
push dword [esi]
mov dword [esi + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.LogMonitorSettings
push dword [esi]
mov dword [esi + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.LogGetLevel
push dword [esi]
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.LogUninitDeskMetrics
push dword [esi]
mov dword [esi + 0x44], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.LogTrackEvent
push dword [esi]
mov dword [esi + 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.LogTrackEventData
push dword [esi]
mov dword [esi + 0x38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.LogRemoveModule
push dword [esi]
mov dword [esi + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [esi + 0x28], 0
mov dword [esi + 0x40], eax
mov eax, esi
je 0x40b294
pop edi
pop esi
ret
mov eax, esi
pop edi
mov dword [esi + 0x28], 0x40b5a0
pop esi
ret