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

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x438]
sub rsp, 0x530
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x180122010]
xor rax, rsp
mov qword [rbp + 0x420], rax
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rcx, [rbp + 0x1d0]
call fcn.1800b9d90
nop
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
movdqa xmm1, xmmword [0x1800e3630]
movdqu xmmword [rsp + 0x38], xmm1
mov word [rsp + 0x28], bx
lea rdx, str.2345OCRCore.dll
lea rcx, [rsp + 0x28]
call fcn.1800034f0
nop
lea r8, [rsp + 0x28]
lea rdx, [rbp + 0x1d0]
lea rcx, [rbp + 0x1f0]
call fcn.18001dd10
nop
lea rcx, [rsp + 0x28]
call fcn.180003470
lea rcx, [rbp + 0x1f0]
call fcn.18001bf90
test al, al
jne 0x180013894
xor sil, sil
jmp 0x180013bbe
xor edx, edx
mov r8d, 0x20a
lea rcx, [rbp + 0x210]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp + 0x210]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor eax, eax
mov qword [rbp + 0x1a0], rax
mov qword [rbp + 0x1a8], rax
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x1a0], xmm0
lea rcx, [rbp - 0x70]
lea rdx, [rbp + 0x210]
mov eax, 4
nop word [rax + rax]
movups xmm0, xmmword [rdx]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rdx + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rdx + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rdx + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rdx + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rdx + 0x60]
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm1, xmmword [rdx + 0x70]
movups xmmword [rcx - 0x10], xmm1
lea rdx, [rdx + 0x80]
sub rax, 1
jne 0x1800138f0
mov rax, qword [rdx]
mov qword [rcx], rax
movzx eax, word [rdx + 8]
mov word [rcx + 8], ax
lea r8, [rbp - 0x70]
lea rcx, [rbp + 0x1a0]
call fcn.180016510
nop
lea rcx, [rbp + 0x1d0]
cmp qword [rbp + 0x1e8], 8
cmovae rcx, qword [rbp + 0x1d0]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea rcx, [rbp + 0x1f0]
cmp qword [rbp + 0x208], 8
cmovae rcx, qword [rbp + 0x1f0]
xor edx, edx
lea r8d, [rdx + 8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [0x1801253f8], rax
test rax, rax
je 0x180013b77
lea rdx, str.CreateOCREngine
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1801253c0], rax
test rax, rax
je 0x180013b77
lea rdx, str.FreeOCREngine
mov rcx, qword [0x1801253f8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1801253c8], rax
lea rdx, str.Init
mov rcx, qword [0x1801253f8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1801253d0], rax
lea rdx, str.UnInit
mov rcx, qword [0x1801253f8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1801253d8], rax
lea rdx, str.Infer
mov rcx, qword [0x1801253f8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1801253e0], rax
lea rdx, str.Infer2
mov rcx, qword [0x1801253f8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1801253e8], rax
lea rcx, [0x1801253f0]
call qword [0x1801253c0]
test eax, eax
jne 0x180013b66
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
movdqa xmm1, xmmword [0x1800e3630]
movdqu xmmword [rsp + 0x58], xmm1
mov word [rsp + 0x48], bx
lea rdx, str.model_cfg.dat
lea rcx, [rsp + 0x48]
call fcn.1800034f0
nop
lea r8, [rsp + 0x48]
lea rdx, [rbp + 0x1d0]
lea rcx, [rbp + 0x1b0]
call fcn.18001dd10
nop
lea rcx, [rsp + 0x48]
call fcn.180003470
lea rcx, [rbp + 0x1b0]
call fcn.18001bf90
test al, al
je 0x180013b6b
lea rdx, [rbp + 0x1b0]
cmp qword [rbp + 0x1c8], 8
cmovae rdx, qword [rbp + 0x1b0]
xor r9d, r9d
mov r8d, dword [rbp + 0x1c0]
lea rcx, [rsp + 0x70]
call fcn.18001b8a0
mov ebx, 1
mov dword [rsp + 0x20], ebx
mov rdx, rax
lea rdi, [0x180125400]
mov rcx, rdi
call fcn.180014ee0
and ebx, 0xfffffffe
mov dword [rsp + 0x20], ebx
lea rcx, [rsp + 0x70]
call fcn.1800054e0
mov rcx, qword [0x1801253f0]
test rcx, rcx
je 0x180013b6b
mov rax, qword [0x1801253d0]
test rax, rax
je 0x180013b6b
cmp qword [0x180125418], 0x10
cmovae rdi, qword [0x180125400]
mov rdx, rdi
call rax
test eax, eax
jne 0x180013b6b
lea rcx, [rbp + 0x1b0]
call fcn.180003470
mov sil, 1
jmp 0x180013b7a
lea rcx, [rbp + 0x1b0]
call fcn.180003470
xor sil, sil
mov rcx, qword [rbp + 0x1a8]
test rcx, rcx
je 0x180013bbe
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x180013bbe
mov rbx, qword [rbp + 0x1a8]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x180013bbe
mov rcx, qword [rbp + 0x1a8]
mov rdx, qword [rcx]
call qword [rdx + 8]
nop
lea rcx, [rbp + 0x1f0]
call fcn.180003470
nop
lea rcx, [rbp + 0x1d0]
call fcn.180003470
movzx eax, sil
mov rcx, qword [rbp + 0x420]
xor rcx, rsp
call fcn.1800ba9e0
lea r11, [rsp + 0x530]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret