Function at 0x401a20
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
push edi
push esi
push 0x4c41e0
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 0x401b2b
push 0x4b4c98
push 0xfffe
call fcn.00481123
push 0xfffe
mov edi, eax
push 0
push edi
call fcn.00483710
add esp, 0x14
push 0x7fff
push edi
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x401b18
push 0x5c
push edi
call fcn.00482c95
add esp, 8
test eax, eax
je 0x401b18
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.00485f03
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi], eax
push edi
call fcn.0048112c
mov eax, dword [esi]
add esp, 4
test eax, eax
je 0x401c62
push str.LogInit
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x401b47
mov ecx, edi
call dword [0x4b3390]
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 0x401c64
pop edi
pop esi
ret
mov eax, esi
pop edi
mov dword [esi + 0x28], 0x401cb0
pop esi
ret