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 [0x1800bd650]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov eax, dword [0x1800d7528]
test eax, eax
jne 0x1800017e6
mov ecx, dword [0x1800d752c]
cmp ecx, 3
jge 0x1800017e6
inc ecx
mov dword [0x1800d752c], ecx
lea rdx, [0x1800926d0]
lea rcx, [rsp + 0x40]
call fcn.180022100
nop
call fcn.18000e3c0
mov r8, rax
lea r9, str.CameraFuncx64
lea rdx, [0x180092920]
lea rcx, [rsp + 0x40]
call fcn.180021990
xor ebx, ebx
mov word [rsp + 0x60], bx
xor edx, edx
mov r8d, 0x40e
lea rcx, [rsp + 0x62]
call fcn.180031f40
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.1800305e8
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 [0x1800d6b50], 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, [0x1800d6a98]
call fcn.1800157c0
lea rdx, [0x1800926d0]
lea rcx, [rsp + 0x48]
call fcn.180022100
nop
lea r9, str.CameraFunc64.dll
mov r8, qword [rsp + 0x40]
lea rdx, [0x180092920]
lea rcx, [rsp + 0x48]
call fcn.180021990
xor edx, edx
lea r8d, [rdx + 8]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
cmp dword [0x1800d6b50], 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, [0x1800d6a98]
call fcn.1800157c0
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.1800305e8
test eax, eax
je 0x18000149c
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ebx, eax
cmp dword [0x1800d6b50], 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, [0x1800d6a98]
call fcn.1800157c0
test rsi, rsi
je 0x180001798
lea rdx, str.CameraCapture
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800d6668], rax
lea rdx, str.CameraDestroy
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800d6670], rax
lea rdx, str.VCam_Install
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800d6678], rax
lea rdx, str.VCam_Release
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800d6680], rax
lea rdx, str.VCam_StartVCam
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800d6688], rax
lea rdx, str.VCam_SetResolution
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800d6690], rax
lea rdx, str.VCam_StopVCam
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800d6698], rax
lea rdx, str.VCam_GetLastError
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800d66a0], rax
lea rdx, str.VCam_UnInstall
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800d66a8], rax
lea rdx, str.Camera_Start
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800d66b0], rax
lea rdx, str.Camera_Stop
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800d66b8], rax
lea rdx, str.Camera_SetResolution
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800d66c0], rax
lea rdx, str.Camera_QueryImage2
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800d66c8], rax
lea rdx, str.Camera_FreeImage
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800d66d0], rax
lea rdx, str.Camera_ShowImage
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800d66d8], rax
lea rdx, str.Camera_ShowImageEx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800d66e0], rax
lea rdx, str.Camera_HideImage
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800d66e8], rax
lea rdx, str.Camera_GetLastError
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800d66f0], rax
lea rdx, str.Camera_Release
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800d66f8], rax
lea rdx, str.Face_Initialize
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800d6700], rax
lea rdx, str.Face_SetFaceDetectInfo
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800d6708], rax
lea rdx, str.Face_DealRefreshFacePhoto
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800d6710], rax
lea rdx, str.Face_DetectFaceImage
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800d6718], rax
lea rdx, str.Face_GetLastError
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800d6720], rax
lea rdx, str.Face_Release
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
mov qword [0x1800d6728], rax
cmp qword [0x1800d6668], 0
je 0x180001798
cmp qword [0x1800d6670], 0
je 0x180001798
cmp qword [0x1800d6678], 0
je 0x180001798
cmp qword [0x1800d6688], 0
je 0x180001798
cmp qword [0x1800d66a8], 0
je 0x180001798
cmp qword [0x1800d66b0], 0
je 0x180001798
cmp qword [0x1800d66b8], 0
je 0x180001798
cmp qword [0x1800d66f8], 0
je 0x180001798
cmp qword [0x1800d6700], 0
je 0x180001798
cmp qword [0x1800d6718], 0
je 0x180001798
mov eax, dword [0x1800d7528]
mov edx, 1
test rcx, rcx
cmovne eax, edx
mov dword [0x1800d7528], eax
cmp dword [0x1800d6b50], 0
je 0x1800017cb
mov eax, dword [0x1800d7528]
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, [0x1800d6a98]
call fcn.1800157c0
nop
lea rcx, [rsp + 0x48]
call fcn.180020de0
nop
lea rcx, [rsp + 0x40]
call fcn.180020de0
mov eax, dword [0x1800d7528]
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.1800300f0
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