Function at 0x1001cea0
Capabilities:
Get common file path
Link many functions at runtime
Set current directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10187566
push eax
mov dword fs:[0], esp
sub esp, 0x418
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x1001cee0
mov eax, 1
pop esi
mov ecx, dword [esp + 0x418]
mov dword fs:[0], ecx
add esp, 0x424
ret
mov eax, dword [0x101f1d98]
test eax, eax
je 0x1001cf02
push str._DocToText_Initialize_______
push str.GetTxt
push 0xffffffffffffffff
push 0x101f1d2c
call fcn.100066b0
add esp, 0x10
mov eax, dword [0x101f1cf8]
push edi
lea ecx, [esp + 8]
push eax
push ecx
call fcn.10012380
add esp, 8
mov ecx, 0x103
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
rep stosd dword es:[edi], eax
lea edx, [esp + 0x10]
mov dword [esp + 0x428], 0
push edx
push 0x207
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, dword [0x101f1d98]
test ecx, ecx
je 0x1001cf70
lea ecx, [esp + 0x10]
push ecx
push eax
push str._DocToText_Initialize_1__08x___s_
push str.GetTxt
push 0xffffffffffffffff
push 0x101f1d2c
call fcn.100066b0
add esp, 0x18
mov edx, dword [esp + 8]
lea eax, [esp + 0x10]
push ebp
push eax
mov edi, dword [edx - 8]
call fcn.100547f0
mov ebp, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
add esp, 4
cmp edi, eax
jne 0x1001cfa5
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push ecx
push edx
call fcn.10055d2e
add esp, 8
test eax, eax
je 0x1001cfac
mov eax, dword [esp + 0xc]
push eax
call ebp
push 0x101f1d00
lea ecx, [esp + 0x14]
call fcn.10032fc0
mov ecx, dword [esp + 0xc]
push str.TKSDoc32.dll
push ecx
lea edx, [esp + 0x18]
push 0x101aeb2c
push edx
mov byte [esp + 0x43c], 1
call fcn.100366e0
mov eax, dword [esp + 0x20]
add esp, 0x10
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [esi + 4], eax
mov ecx, dword [0x101f1d98]
test ecx, ecx
je 0x1001d014
push eax
push str._DocToText_Initialize_2__08x_
push str.GetTxt
push 0xffffffffffffffff
push 0x101f1d2c
call fcn.100066b0
add esp, 0x14
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
mov edi, dword [ecx - 8]
call fcn.100547f0
add esp, 4
cmp edi, eax
jne 0x1001d042
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.10055d2e
add esp, 8
test eax, eax
je 0x1001d049
lea edx, [esp + 0x14]
push edx
call ebp
mov eax, dword [0x101f1d98]
pop ebp
test eax, eax
je 0x1001d06c
push str._DocToText_Initialize_3
push str.GetTxt
push 0xffffffffffffffff
push 0x101f1d2c
call fcn.100066b0
add esp, 0x10
mov eax, dword [esi + 4]
test eax, eax
je 0x1001d0fe
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.extract_plain_text
push eax
call edi
mov dword [esi + 0xc], eax
mov eax, dword [esi + 4]
push str.extract_plain_text_f
push eax
call edi
mov ecx, dword [esi + 4]
push str.freeMalloc
push ecx
mov dword [esi + 0x10], eax
call edi
mov edx, dword [esi + 4]
push str.TKSxmlInitParser
push edx
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
mov eax, dword [esi + 4]
push str.TKSxmlCleanupParser
push eax
call edi
mov ecx, dword [esi + 4]
push str.extract_get_filetype
push ecx
mov dword [esi + 0x1c], eax
call edi
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x20], eax
test ecx, ecx
je 0x1001d0fe
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x1001d0fe
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x1001d0fe
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x1001d0fe
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x1001d0fe
test eax, eax
je 0x1001d0fe
call ecx
mov dword [esi + 8], 1
mov eax, dword [0x101f1d98]
pop edi
test eax, eax
je 0x1001d121
push str._DocToText_Initialize
push str.GetTxt
push 0xffffffffffffffff
push 0x101f1d2c
call fcn.100066b0
add esp, 0x10
mov eax, dword [esi + 8]
test eax, eax
jne 0x1001d12f
mov ecx, esi
call fcn.1001d1a0
mov eax, dword [0x101f1d98]
test eax, eax
je 0x1001d155
mov edx, dword [esi + 8]
push edx
push str._DocToText_Initialize______08x_
push str.GetTxt
push 0xffffffffffffffff
push 0x101f1d2c
call fcn.100066b0
add esp, 0x14
mov esi, dword [esi + 8]
lea ecx, [esp + 8]
mov byte [esp + 0x424], 0
call fcn.10033760
lea ecx, [esp + 4]
mov dword [esp + 0x424], 0xffffffff
call fcn.10033760
mov ecx, dword [esp + 0x41c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x424
ret