Function at 0x1000fd7ac
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x120
mov rax, qword [0x100165138]
xor rax, rsp
mov qword [rsp + 0x110], rax
xor r13d, r13d
mov r12, rdx
mov rbx, rcx
lea rsi, [0x100011668]
cmp rdx, r13
jne 0x1000fd800
lea r8, [0x1000116a8]
mov edx, 0x106
mov rcx, rsi
call fcn.100099ad8
cmp qword [rbx + 0x10], 0xffffffffffffffff
jne 0x1000fd81b
lea r8, [0x10000fb98]
mov edx, 0x107
mov rcx, rsi
call fcn.100099ad8
mov r14d, 1
cmp dword [rbx + 8], r14d
je 0x1000fd841
cmp dword [rbx + 8], 2
je 0x1000fd841
lea r8, [0x100011920]
mov edx, 0x10a
mov rcx, rsi
call fcn.100099ad8
xor eax, eax
or rbp, 0xffffffffffffffff
mov edi, r13d
mov dword [rsp + 0x68], r13d
mov dword [rsp + 0x6c], eax
cmp dword [rbx + 8], r14d
jne 0x1000fd89c
cmp qword [rbx + 0x18], r13
je 0x1000fd873
lea r8, [0x100011960]
mov edx, 0x113
mov rcx, rsi
call fcn.100099ad8
mov ecx, dword [rbx + 0x20]
call qword [sym.imp.msvcrt.dll_malloc]
mov rsi, rax
cmp rax, r13
jne 0x1000fd898
xor r9d, r9d
xor r8d, r8d
mov edx, r14d
mov ecx, 0x8007000e
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov qword [rbx + 0x18], rsi
mov ecx, dword [rbx + 0x24]
mov rsi, rcx
add rsi, qword [rbx + 0x18]
cmp dword [rbx + 8], r14d
je 0x1000fd8b5
cmp ecx, dword [rbx + 0x20]
jne 0x1000fd9aa
mov ecx, dword [rbx + 0x18]
mov r9d, dword [rbx + 0x20]
mov eax, 8
and ecx, 7
mov edx, 0xa
sub eax, ecx
mov rcx, qword [rbx + 0x10]
mov r8d, eax
sub r9d, eax
mov dword [rbx + 0x24], r8d
add r8, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandleEx]
cmp eax, r13d
jne 0x1000fd999
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
cmp eax, r13d
cmovle edi, eax
cmp edi, r13d
jge 0x1000fd999
lea rax, [0x100167d30]
mov qword [rsp + 0x40], rax
lea rax, [0x1000116f0]
cmp edi, 0x80070012
jne 0x1000fd962
mov r9, qword [rbx + 0x38]
mov qword [rsp + 0x48], rax
mov rax, qword [rbx + 0x88]
lea r8, [0x100011970]
lea rcx, [rsp + 0x40]
mov edx, 5
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x50], 0x126
mov qword [rsp + 0x58], rbx
call fcn.1000f2b00
jmp 0x1000fdcfd
mov r9, qword [rbx + 0x88]
mov r8, qword [rbx + 0x38]
lea rdx, [0x100011970]
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x48], edi
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0x126
mov qword [rsp + 0x60], rbx
call sym.wbengine.exe_public:_void___cdecl_CTraceFailureHelper::TraceMessage_unsigned_short_int_const____ptr64____ptr64
jmp 0x1000fdcfd
mov ecx, dword [rbx + 0x24]
mov dword [rbx + 8], 2
mov rsi, rcx
add rsi, qword [rbx + 0x18]
add ecx, dword [rsi]
mov dword [rbx + 0x24], ecx
cmp dword [rsi], r13d
jne 0x1000fd9ba
mov eax, dword [rbx + 0x20]
mov dword [rbx + 0x24], eax
bt dword [rsi + 0x38], 0xa
jae 0x1000fdc4d
mov eax, dword [rsp + 0x8c]
mov r8d, dword [rsi + 0x3c]
mov edx, 0x18
and eax, 0xfffffffe
lea rcx, [rsp + 0x90]
mov dword [rsp + 0x78], edx
and eax, 0xfffffffb
mov qword [rsp + 0x80], rcx
lea rcx, [rsp + 0xe0]
or eax, 2
mov dword [rsp + 0xc8], edx
mov qword [rsp + 0xd0], rcx
mov dword [rsp + 0x8c], eax
mov eax, dword [rsp + 0xdc]
lea rdx, [rsi + 0x68]
and eax, 0xfffffffe
lea rcx, [0x10000a0dc]
shr r8, 1
and eax, 0xfffffffb
mov qword [rsp + 0x70], r13
mov dword [rsp + 0x88], r13d
or eax, 2
mov word [rsp + 0x90], r13w
mov qword [rsp + 0xc0], r13
mov dword [rsp + 0xd8], r13d
mov word [rsp + 0xe0], r13w
mov dword [rsp + 0xdc], eax
call qword [sym.imp.msvcrt.dll_wcsncmp]
cmp eax, r13d
jne 0x1000fda83
mov r8d, dword [rbx + 0x40]
mov rdx, qword [rbx + 0x38]
lea rcx, [rsp + 0x70]
call fcn.1000f2a80
jmp 0x1000fdaf5
mov r8d, dword [rsi + 0x3c]
lea rdx, [rsi + 0x68]
lea rcx, [0x10000a0e0]
shr r8, 1
call qword [sym.imp.msvcrt.dll_wcsncmp]
cmp eax, r13d
jne 0x1000fdab8
lea rcx, [rbx + 0x28]
lea r8, [rsp + 0xc0]
lea rdx, [rsp + 0x70]
call fcn.1000fa2c4
jmp 0x1000fdaf5
mov r8d, dword [rbx + 0x40]
mov rdx, qword [rbx + 0x38]
lea rcx, [rsp + 0x70]
call fcn.1000f2a80
cmp eax, r13d
jge 0x1000fdae0
xor r9d, r9d
xor r8d, r8d
mov edx, r14d
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov r8d, dword [rsi + 0x3c]
lea rdx, [rsi + 0x68]
lea rcx, [rsp + 0x70]
shr r8d, 1
call fcn.1000f356c
cmp eax, r13d
jge 0x1000fdb0b
xor r9d, r9d
xor r8d, r8d
mov edx, r14d
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x30], r13
xor r9d, r9d
mov r8d, r14d
xor edx, edx
mov dword [rsp + 0x28], 0x3200000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x1000fdbb7
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
cmp eax, r13d
cmovle edi, eax
cmp edi, r13d
jge 0x1000fdbb7
mov r8, qword [rsp + 0x80]
lea rax, [0x100167d30]
lea rdx, [0x100011860]
mov qword [rsp + 0x40], rax
lea rax, [0x1000116f0]
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x48], edi
mov dword [rsp + 0x58], 0x15b
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x50], rax
call sym.wbengine.exe_public:_void___cdecl_CTraceFailureHelper::TraceMessage_unsigned_short_int_const____ptr64____ptr64
lea rcx, [rsp + 0xc0]
call fcn.1000f2568
lea rcx, [rsp + 0x70]
call fcn.1000f2568
jmp 0x1000fdcc5
mov r9d, 8
lea r8, [rsp + 0x68]
mov rcx, rbp
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandleEx]
cmp eax, r13d
jne 0x1000fdc36
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, [0x1000119d0]
lea r8, [0x10000f2d0]
movzx edi, ax
lea rdx, [0x10000fa60]
lea rcx, [rsp + 0x40]
or edi, 0x80070000
cmp eax, r13d
mov dword [rsp + 0x58], 0x15e
cmovle edi, eax
lea rax, [0x100167d30]
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x40], rax
lea rax, [0x1000116f0]
mov dword [rsp + 0x48], edi
mov qword [rsp + 0x50], rax
call sym.wbengine.exe_public:_void___cdecl_CTraceFailureHelper::TraceMessage_unsigned_short_int_const____ptr64____ptr64
jmp 0x1000fdb9b
lea rcx, [rsp + 0xc0]
call fcn.1000f2568
lea rcx, [rsp + 0x70]
call fcn.1000f2568
mov eax, dword [rsi + 0x38]
lea r8, [rsi + 0x68]
lea rcx, [r12 + 0x2c]
mov dword [r12], eax
mov rax, qword [rsi + 8]
mov edx, 0x104
mov qword [r12 + 4], rax
mov rax, qword [rsi + 0x10]
mov qword [r12 + 0xc], rax
mov rax, qword [rsi + 0x18]
mov dword [r12 + 0x28], r13d
mov qword [r12 + 0x14], rax
mov eax, dword [rsp + 0x6c]
mov dword [r12 + 0x24], eax
mov eax, dword [rsi + 0x2c]
mov dword [r12 + 0x1c], eax
mov eax, dword [rsi + 0x28]
mov dword [r12 + 0x20], eax
mov r9d, dword [rsi + 0x3c]
shr r9, 1
call sub.msvcrt.dll_wcsncpy_s
movsx r9, byte [rsi + 0x44]
lea r8, [rsi + 0x46]
lea rcx, [r12 + 0x234]
shr r9, 1
mov edx, 0xe
call sub.msvcrt.dll_wcsncpy_s
cmp rbp, 0xffffffffffffffff
je 0x1000fdcfd
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, r13d
jne 0x1000fdcfd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, r14d
movzx ecx, ax
or ecx, 0x80070000
cmp eax, r13d
cmovle ecx, eax
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, edi
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.10014e480
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret