Function at 0x1005aad0
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, 0x10138cf0
call fcn.1007db34
sub esp, 0x210
push ebx
xor ebx, ebx
cmp dword [0x101aeb98], ebx
jne 0x1005af68
cmp dword [0x101aeb9c], 3
jge 0x1005af68
push esi
push edi
push 0x1019f4bc
lea ecx, [ebp - 0x10]
call fcn.10094520
cmp dword [ebp + 8], ebx
mov dword [ebp - 4], ebx
je 0x1005ab23
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.10094f40
jmp 0x1005abca
cmp dword [0x101aeba0], ebx
mov esi, str.TWaterMask32.dll
mov edx, 0x1018a540
je 0x1005ab3f
mov esi, str.TWaterMask64.dll
mov edx, str.OeaReader64.dll
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x21a]
mov word [ebp - 0x21c], bx
rep stosd dword es:[edi], eax
push edx
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea ecx, [ebp - 0x21c]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x21c]
lea ecx, [ebp + 8]
push eax
call fcn.10094520
push 0x5c
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.10095e70
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 8]
call fcn.10097400
push esi
mov byte [ebp - 4], 2
push dword [eax]
lea eax, [ebp - 0x10]
push 0x10160910
push eax
call fcn.10097c40
add esp, 0x10
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.10094cc0
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.10094cc0
push dword [ebp - 0x10]
inc dword [0x101aeb9c]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
je 0x1005af5a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.TWMDebugEnableDrawLine
push edi
call esi
push str.TWMDebugEnableSaveDib
push edi
mov dword [0x101aea88], eax
call esi
push str.TWMDebugSetLevel
push edi
mov dword [0x101aea8c], eax
call esi
push str.TWMDebugSetPath
push edi
mov dword [0x101aea90], eax
call esi
push str.TWMDebugSetFontColorDif
push edi
mov dword [0x101aea94], eax
call esi
push str.TWMDebugSetFlag
push edi
mov dword [0x101aea98], eax
call esi
push str.TWMDebugGetFlag
push edi
mov dword [0x101aea9c], eax
call esi
push str.TWMSetTextValue
push edi
mov dword [0x101aeaa0], eax
call esi
push str.TWMGetTextMask
push edi
mov dword [0x101aeaa4], eax
call esi
push str.TWMSyncServerTime
push edi
mov dword [0x101aeaa8], eax
call esi
push str.TWMHaveColorAutoPolicy
push edi
mov dword [0x101aeaac], eax
call esi
push str.TWMLatticeHaveColorAutoPolicy
push edi
mov dword [0x101aeab0], eax
call esi
push str.TWMPolicyXmlToStruct
push edi
mov dword [0x101aeab4], eax
call esi
push str.TWMPolicyStructToXml
push edi
mov dword [0x101aeab8], eax
call esi
push str.TWMPolicyDestroyStruct
push edi
mov dword [0x101aeabc], eax
call esi
push str.TWMPolicyDestroyXml
push edi
mov dword [0x101aeac0], eax
call esi
push str.TWMSetNoClearType
push edi
mov dword [0x101aeac4], eax
call esi
push str.TWMCreatePolicy
push edi
mov dword [0x101aeac8], eax
call esi
push str.TWMDestroyPolicy
push edi
mov dword [0x101aeacc], eax
call esi
push str.TWMSetPolicy
push edi
mov dword [0x101aead0], eax
call esi
mov dword [0x101aead4], eax
push str.TWMSetPolicyXml
push edi
call esi
push str.TWMDraw
push edi
mov dword [0x101aead8], eax
call esi
push str.TWMDrawXml
push edi
mov dword [0x101aeadc], eax
call esi
push str.TWMXorDraw
push edi
mov dword [0x101aeae0], eax
call esi
push str.TWMXorDrawXml
push edi
mov dword [0x101aeae4], eax
call esi
push str.TWMDrawEx
push edi
mov dword [0x101aeae8], eax
call esi
push str.TWMDrawEx2
push edi
mov dword [0x101aeaec], eax
call esi
push str.TWMDrawXmlEx
push edi
mov dword [0x101aeaf0], eax
call esi
push str.TWMDrawXmlEx2
push edi
mov dword [0x101aeaf4], eax
call esi
push str.TWMLatticeSetCodeSize
push edi
mov dword [0x101aeaf8], eax
call esi
push str.TWMLatticeGenCode
push edi
mov dword [0x101aeafc], eax
call esi
push str.TWMLatticeSetCode
push edi
mov dword [0x101aeb00], eax
call esi
push str.TWMLatticeCreatePolicy
push edi
mov dword [0x101aeb04], eax
call esi
push str.TWMLatticeDestroyPolicy
push edi
mov dword [0x101aeb08], eax
call esi
push str.TWMLatticeSetPolicy
push edi
mov dword [0x101aeb0c], eax
call esi
push str.TWMLatticeSetPolicyXml
push edi
mov dword [0x101aeb10], eax
call esi
push str.TWMLatticeDraw
push edi
mov dword [0x101aeb14], eax
call esi
push str.TWMLatticeDrawXml
push edi
mov dword [0x101aeb18], eax
call esi
push str.TWMLatticeDrawEx
push edi
mov dword [0x101aeb1c], eax
call esi
push str.TWMLatticeDrawEx2
push edi
mov dword [0x101aeb20], eax
call esi
mov dword [0x101aeb24], eax
push str.TWMLatticeDrawXmlEx
push edi
call esi
push str.TWMLatticeDrawXmlEx2
push edi
mov dword [0x101aeb28], eax
call esi
push str.TWMInitDocWaterMarkPropertyParam
push edi
mov dword [0x101aeb2c], eax
call esi
push str.TWMSetWaterMarkPropertyXml
push edi
mov dword [0x101aeb30], eax
call esi
push str.TWMSetWaterMarkProperty
push edi
mov dword [0x101aeb34], eax
call esi
push str.TWMGetWaterMark
push edi
mov dword [0x101aeb38], eax
call esi
push str.TWMDestroyBuf
push edi
mov dword [0x101aeb3c], eax
call esi
push str.TWMDelWaterMark
push edi
mov dword [0x101aeb40], eax
call esi
push str.TWMRegisterDocProperty
push edi
mov dword [0x101aeb44], eax
call esi
push str.TWMSetPropertyRaw
push edi
mov dword [0x101aeb48], eax
call esi
push str.TWMGetPropertyRaw
push edi
mov dword [0x101aeb58], eax
call esi
push str.TWMSetFlowPropertyRaw
push edi
mov dword [0x101aeb5c], eax
call esi
push str.TWMGetFlowPropertyRaw
push edi
mov dword [0x101aeb64], eax
call esi
push str.TWMGetProperty
push edi
mov dword [0x101aeb68], eax
call esi
push str.TWMDelProperty
push edi
mov dword [0x101aeb4c], eax
call esi
push str.TWMSetPropertyRawEx
push edi
mov dword [0x101aeb50], eax
call esi
push str.TWMGetPropertyRawEx
push edi
mov dword [0x101aeb70], eax
call esi
push str.TWMDelPropertyRawEx
push edi
mov dword [0x101aeb74], eax
call esi
push str.TWMDelFlowPropertyRaw
push edi
mov dword [0x101aeb78], eax
call esi
push str.TWMDelPropertyRaw
push edi
mov dword [0x101aeb6c], eax
call esi
push str.TWMSetWaterMarkPropertyXmlLock
mov dword [0x101aeb60], eax
push edi
call esi
push str.TWMPolicyXmlToStructEx
push edi
mov dword [0x101aeb7c], eax
call esi
push str.TWMFinalize
push edi
mov dword [0x101aeb80], eax
call esi
push str.TWMReplaceWMXmlParamToCustom
push edi
mov dword [0x101aeb84], eax
call esi
push str.TWMGetParamRange
push edi
mov dword [0x101aeb88], eax
call esi
push str.TWMDestroyParamRangeBuf
push edi
mov dword [0x101aeb8c], eax
call esi
push str.TWMGetTextSize
push edi
mov dword [0x101aeb90], eax
call esi
mov dword [0x101aeb94], eax
mov dword [0x101aeb98], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.10094cc0
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov eax, dword [0x101aeb98]
pop ebx
mov dword fs:[0], ecx
leave
ret