Function at 0x1800015f0
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 [0x1800cb660]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov ecx, dword [0x1800e5d98]
test ecx, ecx
jne 0x180001b56
mov eax, dword [0x1800e5d9c]
cmp eax, 3
jge 0x180001b56
inc eax
mov dword [0x1800e5d9c], eax
lea rdx, [0x18009c2c8]
lea rcx, [rsp + 0x40]
call fcn.180027390
nop
call fcn.18000fa30
mov r8, rax
lea r9, str.CameraFuncx64
lea rdx, [0x18009c688]
lea rcx, [rsp + 0x40]
call fcn.180026420
xor ebx, ebx
mov word [rsp + 0x60], bx
xor edx, edx
mov r8d, 0x40e
lea rcx, [rsp + 0x62]
call fcn.180037550
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 0x1800016de
lea rdx, [rsp + 0x60]
mov rcx, r8
call fcn.180035b98
test eax, eax
je 0x1800016e9
mov r8, qword [rsp + 0x40]
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov esi, eax
cmp dword [0x1800e52c0], ebx
je 0x180001722
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, [0x1800e5208]
call fcn.180018f90
lea rdx, [0x18009c2c8]
lea rcx, [rsp + 0x48]
call fcn.180027390
nop
lea r9, str.CameraFunc64.dll
mov r8, qword [rsp + 0x40]
lea rdx, [0x18009c688]
lea rcx, [rsp + 0x48]
call fcn.180026420
xor edx, edx
lea r8d, [rdx + 8]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
cmp dword [0x1800e52c0], 0
je 0x18000179c
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, [0x1800e5208]
call fcn.180018f90
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 0x1800017cf
lea rdx, [rsp + 0x60]
mov rcx, r8
call fcn.180035b98
test eax, eax
je 0x1800017dc
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ebx, eax
cmp dword [0x1800e52c0], 0
je 0x180001812
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, [0x1800e5208]
call fcn.180018f90
test rsi, rsi
je 0x180001b06
lea rdx, str.CameraCapture
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800e4db0], rax
lea rdx, str.CameraDestroy
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800e4db8], rax
lea rdx, str.VCam_Install
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800e4dc0], rax
lea rdx, str.VCam_Release
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800e4dc8], rax
lea rdx, str.VCam_StartVCam
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800e4dd0], rax
lea rdx, str.VCam_SetResolution
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800e4dd8], rax
lea rdx, str.VCam_StopVCam
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800e4de0], rax
lea rdx, str.VCam_GetLastError
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800e4de8], rax
lea rdx, str.VCam_UnInstall
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800e4df0], rax
lea rdx, str.Camera_Start
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800e4df8], rax
lea rdx, str.Camera_Stop
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800e4e00], rax
lea rdx, str.Camera_SetResolution
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800e4e08], rax
lea rdx, str.Camera_QueryImage2
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800e4e10], rax
lea rdx, str.Camera_FreeImage
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800e4e18], rax
lea rdx, str.Camera_ShowImage
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800e4e20], rax
lea rdx, str.Camera_ShowImageEx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800e4e28], rax
lea rdx, str.Camera_HideImage
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800e4e30], rax
lea rdx, str.Camera_GetLastError
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800e4e38], rax
lea rdx, str.Camera_Release
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800e4e40], rax
lea rdx, str.Camera_GetOpenInfo
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800e4e48], rax
lea rdx, str.Camera_GetDeviceInfo
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800e4e50], rax
lea rdx, str.Face_Initialize
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800e4e58], rax
lea rdx, str.Face_SetFaceDetectInfo
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800e4e60], rax
lea rdx, str.Face_DealRefreshFacePhoto
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800e4e68], rax
lea rdx, str.Face_DetectFaceImage
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800e4e70], rax
lea rdx, str.Face_GetLastError
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800e4e78], rax
lea rdx, str.Face_Release
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
mov qword [0x1800e4e80], rax
cmp qword [0x1800e4db0], 0
je 0x180001b06
cmp qword [0x1800e4db8], 0
je 0x180001b06
cmp qword [0x1800e4dc0], 0
je 0x180001b06
cmp qword [0x1800e4dd0], 0
je 0x180001b06
cmp qword [0x1800e4df0], 0
je 0x180001b06
cmp qword [0x1800e4df8], 0
je 0x180001b06
cmp qword [0x1800e4e00], 0
je 0x180001b06
cmp qword [0x1800e4e40], 0
je 0x180001b06
cmp qword [0x1800e4e58], 0
je 0x180001b06
cmp qword [0x1800e4e70], 0
je 0x180001b06
mov eax, dword [0x1800e5d98]
mov edx, 1
test rcx, rcx
cmovne eax, edx
mov dword [0x1800e5d98], eax
cmp dword [0x1800e52c0], 0
je 0x180001b39
mov eax, dword [0x1800e5d98]
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, [0x1800e5208]
call fcn.180018f90
nop
lea rcx, [rsp + 0x48]
call fcn.180025870
nop
lea rcx, [rsp + 0x40]
call fcn.180025870
mov eax, dword [0x1800e5d98]
jmp 0x180001b58
mov eax, ecx
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.1800356a0
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