Function at 0x1800127f0
Capabilities:
Get common file path
Set current directory

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x3f8]
sub rsp, 0x4f0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x180126050]
xor rax, rsp
mov qword [rbp + 0x3e0], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rbp + 0x1b0]
call fcn.1800bb070
nop
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
movdqa xmm1, xmmword [0x1800e68a0]
movdqu xmmword [rsp + 0x30], xmm1
xor eax, eax
mov word [rsp + 0x20], ax
lea rdx, str.KeanImageSDK.dll
lea rcx, [rsp + 0x20]
call fcn.1800034c0
nop
lea r8, [rsp + 0x20]
lea rdx, [rbp + 0x1b0]
lea rcx, [rbp + 0x190]
call fcn.18001dd60
nop
lea rcx, [rsp + 0x20]
call fcn.180003440
lea rcx, [rbp + 0x190]
call fcn.18001bfb0
test al, al
jne 0x1800128a5
xor sil, sil
jmp 0x180012a65
xor edx, edx
mov r8d, 0x20a
lea rcx, [rbp + 0x1d0]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp + 0x1d0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor eax, eax
mov qword [rbp + 0x180], rax
mov qword [rbp + 0x188], rax
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x180], xmm0
lea rdx, [rsp + 0x70]
lea rax, [rbp + 0x1d0]
mov ecx, 4
nop word [rax + rax]
movups xmm0, xmmword [rax]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rdx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rdx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rdx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rdx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rdx + 0x60], xmm0
lea rdx, [rdx + 0x80]
movups xmm1, xmmword [rax + 0x70]
movups xmmword [rdx - 0x10], xmm1
lea rax, [rax + 0x80]
sub rcx, 1
jne 0x180012900
mov rcx, qword [rax]
mov qword [rdx], rcx
movzx ecx, word [rax + 8]
mov word [rdx + 8], cx
lea r8, [rsp + 0x70]
lea rcx, [rbp + 0x180]
call fcn.180013530
nop
lea rcx, [rsp + 0x48]
call fcn.1800b9840
nop
cmp qword [rax + 0x18], 8
jb 0x180012987
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
nop
lea rcx, [rsp + 0x48]
call fcn.180003440
lea rcx, [rbp + 0x190]
cmp qword [rbp + 0x1a8], 8
cmovae rcx, qword [rbp + 0x190]
xor edx, edx
lea r8d, [rdx + 8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [rbx + 0x20], rax
test rax, rax
jne 0x1800129cc
xor sil, sil
jmp 0x180012a21
lea rdx, str.GetImageInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx], rax
lea rdx, str.ConvertImage
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 8], rax
lea rdx, str.CompressImage
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x10], rax
lea rdx, str.RescaleImage
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x18], rax
mov sil, 1
mov rcx, qword [rbp + 0x188]
test rcx, rcx
je 0x180012a65
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x180012a65
mov rbx, qword [rbp + 0x188]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x180012a65
mov rcx, qword [rbp + 0x188]
mov rdx, qword [rcx]
call qword [rdx + 8]
nop
lea rcx, [rbp + 0x190]
call fcn.180003440
nop
lea rcx, [rbp + 0x1b0]
call fcn.180003440
movzx eax, sil
mov rcx, qword [rbp + 0x3e0]
xor rcx, rsp
call fcn.1800bd270
lea r11, [rsp + 0x4f0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret