Function at 0x14000442c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov r13, r8
mov rsi, rdx
mov r14, rcx
mov dword [rax - 0x58], 0x80004005
xor r15d, r15d
mov qword [rax - 0x48], r15
mov qword [rax - 0x50], r15
mov dword [rax + 0x20], r15d
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
call qword [sym.imp.WDSCORE.dll_CurrentIP]
nop dword [rax + rax]
mov rbx, rax
mov r8, qword [r14]
mov rcx, r14
mov rax, qword [r8]
call qword [0x1400075b0]
mov r8, rax
lea rdx, str.MigHost:_CMigPluginSurrogate::LoadAndRegisterServerInThreadContext:_Loaded_server__s_
mov ecx, 0x4000000
call fcn.14000351c
mov rcx, rax
mov dword [rsp + 0x50], r15d
mov qword [rsp + 0x48], r15
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x38], rbx
lea rax, str.CMigPluginSurrogate::LoadAndRegisterServerInThreadContext
mov qword [rsp + 0x30], rax
lea rax, str.base_ntsetupmigrationmigcoremighost_surrogate.cpp
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a6
xor r9d, r9d
lea r8, [0x140008628]
mov edx, 0x80000
call qword [sym.imp.WDSCORE.dll_WdsSetupLogMessageW]
nop dword [rax + rax]
nop
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax]
call qword [0x1400075b0]
mov rcx, rax
xor edx, edx
lea r8d, [r15 + 8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
nop dword [rax + rax]
mov r12, rax
mov qword [rsp + 0x70], rax
test rax, rax
jne 0x1400046a1
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx r15d, ax
or r15d, 0x80070000
test eax, eax
cmovle r15d, eax
mov dword [rsp + 0x60], r15d
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov esi, eax
call qword [sym.imp.WDSCORE.dll_CurrentIP]
nop dword [rax + rax]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [r14]
mov rax, qword [rcx]
mov rcx, r14
call qword [0x1400075b0]
mov r8, rax
mov r9d, ebx
lea rdx, str.MigHost:_CMigPluginSurrogate::LoadAndRegisterServerInThreadContext:_LoadLibraryExW__s__LOAD_WITH_ALTERED_SEARCH_PATH__failed_gle0x_x.
mov ecx, 0x200085f
call fcn.14000351c
mov rcx, rax
and dword [rsp + 0x50], r12d
and qword [rsp + 0x48], r12
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x38], rdi
lea rax, str.CMigPluginSurrogate::LoadAndRegisterServerInThreadContext
mov qword [rsp + 0x30], rax
lea rax, str.base_ntsetupmigrationmigcoremighost_surrogate.cpp
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2b8
xor r9d, r9d
lea r8, [0x140008628]
mov esi, 0x80000
mov edx, esi
call qword [sym.imp.WDSCORE.dll_WdsSetupLogMessageW]
nop dword [rax + rax]
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax]
call qword [0x1400075b0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x140004911
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
call qword [sym.imp.WDSCORE.dll_CurrentIP]
nop dword [rax + rax]
mov rbx, rax
lea rdx, str.MigHost:_CMigPluginSurrogate::LoadAndRegisterServerInThreadContext:_File_is_present__most_likely_it_does_not_load_on_the_current_OS_version
mov ecx, 0x4000000
call fcn.14000351c
mov rcx, rax
and dword [rsp + 0x50], r12d
and qword [rsp + 0x48], r12
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x38], rbx
lea rax, str.CMigPluginSurrogate::LoadAndRegisterServerInThreadContext
mov qword [rsp + 0x30], rax
lea rax, str.base_ntsetupmigrationmigcoremighost_surrogate.cpp
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2bf
mov edx, esi
lea r8, [0x140008628]
xor r9d, r9d
call qword [sym.imp.WDSCORE.dll_WdsSetupLogMessageW]
nop dword [rax + rax]
jmp 0x140004911
lea rdx, str.DllGetClassObject
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x140004777
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx r15d, ax
or r15d, 0x80070000
test eax, eax
cmovle r15d, eax
mov dword [rsp + 0x60], r15d
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov esi, eax
call qword [sym.imp.WDSCORE.dll_CurrentIP]
nop dword [rax + rax]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [r14]
mov rax, qword [rcx]
mov rcx, r14
call qword [0x1400075b0]
mov r8, rax
mov r9d, ebx
lea rdx, str.MigHost:_CMigPluginSurrogate::LoadAndRegisterServerInThreadContext:_GetProcAddress__s__DllGetClassObject__failed_gle0x_x.
mov ecx, 0x2000860
call fcn.14000351c
mov rcx, rax
and dword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x38], rdi
lea rax, str.CMigPluginSurrogate::LoadAndRegisterServerInThreadContext
mov qword [rsp + 0x30], rax
lea rax, str.base_ntsetupmigrationmigcoremighost_surrogate.cpp
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2d0
mov edx, 0x80000
jmp 0x140004686
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax + 8]
call qword [0x1400075b0]
mov rcx, rax
lea r8, [rsp + 0x68]
lea rdx, [0x140007700]
mov rax, rbx
call qword [0x1400075b0]
mov r15d, eax
mov dword [rsp + 0x60], eax
test eax, eax
jns 0x140004848
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
call qword [sym.imp.WDSCORE.dll_CurrentIP]
nop dword [rax + rax]
mov rbx, rax
mov rcx, qword [r14]
mov rax, qword [rcx]
mov rcx, r14
call qword [0x1400075b0]
mov r8, rax
mov r9d, r15d
lea rdx, str.MigHost:_CMigPluginSurrogate::LoadAndRegisterServerInThreadContext:_DllGetClassObject__s__failed_hr0x_x.
mov ecx, 0x2000861
call fcn.14000351c
mov rcx, rax
and dword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x38], rbx
lea rax, str.CMigPluginSurrogate::LoadAndRegisterServerInThreadContext
mov qword [rsp + 0x30], rax
lea rax, str.base_ntsetupmigrationmigcoremighost_surrogate.cpp
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2e3
xor r9d, r9d
lea r8, [0x140008628]
mov edx, 0x80000
call qword [sym.imp.WDSCORE.dll_WdsSetupLogMessageW]
nop dword [rax + rax]
jmp 0x140004919
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax + 8]
call qword [0x1400075b0]
mov rcx, rax
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x20], rax
mov r9d, 1
lea r8d, [r9 + 3]
mov rdx, qword [rsp + 0x68]
call qword [sym.imp.ole32.dll_CoRegisterClassObject]
nop dword [rax + rax]
mov r15d, eax
mov dword [rsp + 0x60], eax
test eax, eax
jns 0x140004919
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
call qword [sym.imp.WDSCORE.dll_CurrentIP]
nop dword [rax + rax]
mov rbx, rax
mov rcx, qword [r14]
mov rax, qword [rcx]
mov rcx, r14
call qword [0x1400075b0]
mov r8, rax
mov r9d, r15d
lea rdx, str.MigHost:_CMigPluginSurrogate::LoadAndRegisterServerInThreadContext:_CoRegisterClassObject__s__failed_hr0x_x.
mov ecx, 0x2000a6c
call fcn.14000351c
mov rcx, rax
and dword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x38], rbx
lea rax, str.CMigPluginSurrogate::LoadAndRegisterServerInThreadContext
mov qword [rsp + 0x30], rax
lea rax, str.base_ntsetupmigrationmigcoremighost_surrogate.cpp
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2f5
jmp 0x140004828
mov rsi, qword [rsp + 0xc8]
test r15d, r15d
js 0x1400049cf
mov r9d, dword [rsp + 0xd8]
mov dword [rsi], r9d
test r13, r13
je 0x14000493b
mov rax, qword [rsp + 0x68]
mov qword [r13], rax
mov rax, qword [r14]
mov r8, r12
mov rdx, qword [rsp + 0x68]
mov rcx, r14
mov rax, qword [rax + 0x28]
call qword [0x1400075b0]
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
call qword [sym.imp.WDSCORE.dll_CurrentIP]
nop dword [rax + rax]
mov rbx, rax
mov rdx, qword [r14]
mov rcx, r14
mov rax, qword [rdx]
call qword [0x1400075b0]
mov r8, rax
lea rdx, str.MigHost:_CMigPluginSurrogate::LoadAndRegisterServerInThreadContext:_Successfully_loaded_and_registered_server__s_
mov ecx, 0x4000000
call fcn.14000351c
mov rcx, rax
and dword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x38], rbx
lea rax, str.CMigPluginSurrogate::LoadAndRegisterServerInThreadContext
mov qword [rsp + 0x30], rax
lea rax, str.base_ntsetupmigrationmigcoremighost_surrogate.cpp
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x30c
jmp 0x140004a8e
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400049e6
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x1400075b0]
test r12, r12
je 0x140004aa9
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
test eax, eax
jne 0x140004aa9
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov esi, eax
call qword [sym.imp.WDSCORE.dll_CurrentIP]
nop dword [rax + rax]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [r14]
mov rax, qword [rcx]
mov rcx, r14
call qword [0x1400075b0]
mov r8, rax
mov r9d, ebx
lea rdx, str.MigHost:_CMigPluginSurrogate::LoadAndRegisterServerInThreadContext:_FreeLibrary__s__failed_gle0x_x.
mov ecx, 0x3000950
call fcn.14000351c
mov rcx, rax
and dword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x38], rdi
lea rax, str.CMigPluginSurrogate::LoadAndRegisterServerInThreadContext
mov qword [rsp + 0x30], rax
lea rax, str.base_ntsetupmigrationmigcoremighost_surrogate.cpp
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x31d
xor r9d, r9d
lea r8, [0x140008628]
mov edx, 0x80000
call qword [sym.imp.WDSCORE.dll_WdsSetupLogMessageW]
nop dword [rax + rax]
mov rax, qword [r14]
mov edx, r15d
mov rcx, r14
mov rax, qword [rax + 0x38]
call qword [0x1400075b0]
mov eax, r15d
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret