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

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x480
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rax, qword [0x1800c4650]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov eax, dword [0x1800de858]
test eax, eax
jne 0x1800017e6
mov ecx, dword [0x1800de85c]
cmp ecx, 3
jge 0x1800017e6
inc ecx
mov dword [0x1800de85c], ecx
lea rdx, [0x180096c10]
lea rcx, [rsp + 0x40]
call fcn.180024700
nop
call fcn.18000e770
mov r8, rax
lea r9, str.CameraFuncx64
lea rdx, [0x180096e60]
lea rcx, [rsp + 0x40]
call fcn.180023e40
xor ebx, ebx
mov word [rsp + 0x60], bx
xor edx, edx
mov r8d, 0x40e
lea rcx, [rsp + 0x62]
call fcn.180034650
lea rdx, [rsp + 0x60]
mov ecx, 0x207
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ebp, eax
mov esi, ebx
mov r8, qword [rsp + 0x40]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x60]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov eax, dword [r8 - 8]
cmp rax, rcx
jne 0x18000139e
lea rdx, [rsp + 0x60]
mov rcx, r8
call fcn.180032c98
test eax, eax
je 0x1800013a9
mov r8, qword [rsp + 0x40]
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov esi, eax
cmp dword [0x1800dde20], ebx
je 0x1800013e2
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], ebp
lea r9, str.CCameraFunc::Init_1___08x____d____s_
lea r8, str.Camera
mov edx, reloc.WS2_32.dll_ntohs
lea rcx, [0x1800ddd68]
call fcn.180017680
lea rdx, [0x180096c10]
lea rcx, [rsp + 0x48]
call fcn.180024700
nop
lea r9, str.CameraFunc64.dll
mov r8, qword [rsp + 0x40]
lea rdx, [0x180096e60]
lea rcx, [rsp + 0x48]
call fcn.180023e40
xor edx, edx
lea r8d, [rdx + 8]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
cmp dword [0x1800dde20], 0
je 0x18000145c
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, str.CCameraFunc::Init_2___08x____s_
lea r8, str.Camera
mov edx, reloc.WS2_32.dll_ntohs
lea rcx, [0x1800ddd68]
call fcn.180017680
mov r8, qword [rsp + 0x40]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x60]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov eax, dword [r8 - 8]
cmp rax, rcx
jne 0x18000148f
lea rdx, [rsp + 0x60]
mov rcx, r8
call fcn.180032c98
test eax, eax
je 0x18000149c
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ebx, eax
cmp dword [0x1800dde20], 0
je 0x1800014d2
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
lea r9, str.CCameraFunc::Init_3___d____s_
lea r8, str.Camera
mov edx, reloc.WS2_32.dll_ntohs
lea rcx, [0x1800ddd68]
call fcn.180017680
test rsi, rsi
je 0x180001798
lea rdx, str.CameraCapture
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800dd938], rax
lea rdx, str.CameraDestroy
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800dd940], rax
lea rdx, str.VCam_Install
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800dd948], rax
lea rdx, str.VCam_Release
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800dd950], rax
lea rdx, str.VCam_StartVCam
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800dd958], rax
lea rdx, str.VCam_SetResolution
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800dd960], rax
lea rdx, str.VCam_StopVCam
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800dd968], rax
lea rdx, str.VCam_GetLastError
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800dd970], rax
lea rdx, str.VCam_UnInstall
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800dd978], rax
lea rdx, str.Camera_Start
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800dd980], rax
lea rdx, str.Camera_Stop
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800dd988], rax
lea rdx, str.Camera_SetResolution
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800dd990], rax
lea rdx, str.Camera_QueryImage2
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800dd998], rax
lea rdx, str.Camera_FreeImage
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800dd9a0], rax
lea rdx, str.Camera_ShowImage
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800dd9a8], rax
lea rdx, str.Camera_ShowImageEx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800dd9b0], rax
lea rdx, str.Camera_HideImage
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800dd9b8], rax
lea rdx, str.Camera_GetLastError
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800dd9c0], rax
lea rdx, str.Camera_Release
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800dd9c8], rax
lea rdx, str.Face_Initialize
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800dd9d0], rax
lea rdx, str.Face_SetFaceDetectInfo
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800dd9d8], rax
lea rdx, str.Face_DealRefreshFacePhoto
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800dd9e0], rax
lea rdx, str.Face_DetectFaceImage
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800dd9e8], rax
lea rdx, str.Face_GetLastError
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800dd9f0], rax
lea rdx, str.Face_Release
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
mov qword [0x1800dd9f8], rax
cmp qword [0x1800dd938], 0
je 0x180001798
cmp qword [0x1800dd940], 0
je 0x180001798
cmp qword [0x1800dd948], 0
je 0x180001798
cmp qword [0x1800dd958], 0
je 0x180001798
cmp qword [0x1800dd978], 0
je 0x180001798
cmp qword [0x1800dd980], 0
je 0x180001798
cmp qword [0x1800dd988], 0
je 0x180001798
cmp qword [0x1800dd9c8], 0
je 0x180001798
cmp qword [0x1800dd9d0], 0
je 0x180001798
cmp qword [0x1800dd9e8], 0
je 0x180001798
mov eax, dword [0x1800de858]
mov edx, 1
test rcx, rcx
cmovne eax, edx
mov dword [0x1800de858], eax
cmp dword [0x1800dde20], 0
je 0x1800017cb
mov eax, dword [0x1800de858]
mov dword [rsp + 0x20], eax
lea r9, str.CCameraFunc::Init_4___d_
lea r8, str.Camera
mov edx, reloc.WS2_32.dll_ntohs
lea rcx, [0x1800ddd68]
call fcn.180017680
nop
lea rcx, [rsp + 0x48]
call fcn.180023290
nop
lea rcx, [rsp + 0x40]
call fcn.180023290
mov eax, dword [0x1800de858]
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.1800327a0
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret