Function at 0x140005088
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x120]
sub rsp, 0x220
mov rax, qword [0x14006f5c0]
xor rax, rsp
mov qword [rbp + 0x110], rax
mov rbx, rcx
mov r12, rdx
lea rcx, str.wimgapi.dll
call fcn.14001b83c
mov rdi, rax
test rax, rax
je 0x140005197
lea rdx, str.WIMCreateFile
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WIMCloseHandle
mov rcx, rdi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WIMSetTemporaryPath
mov rcx, rdi
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WIMLoadImage
mov rcx, rdi
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WIMGetImageInformation
mov rcx, rdi
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ecx, ecx
mov r13, rax
test rsi, rsi
je 0x140005625
cmp qword [rsp + 0x40], rcx
je 0x140005625
test r14, r14
je 0x140005625
test r15, r15
je 0x140005625
test rax, rax
je 0x140005625
mov qword [rsp + 0x28], rcx
lea r8d, [rcx + 3]
mov dword [rsp + 0x20], ecx
mov rax, r12
neg rax
mov rcx, rbx
sbb edx, edx
xor r9d, r9d
not edx
and edx, 0x40000000
call rsi
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x1400051a3
call fcn.14001b570
mov esi, eax
jmp 0x14000562a
and qword [rbp + 0x108], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x60], rax
lea rdx, [rbp + 0xd0]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x68], rax
lea rcx, [rbp + 0x10]
movups xmm0, xmmword [rsp + 0x60]
lea rax, fcn.140012a88
mov qword [rbp + 0x10], rax
lea rax, [rbp + 0x10]
mov qword [rbp + 0x48], rax
movdqu xmmword [rbp + 0x18], xmm0
call fcn.140012a88
mov rcx, qword [rbp + 0x48]
mov qword [rbp + 0x108], rax
test rcx, rcx
je 0x14000520c
mov rax, qword [rcx]
lea rdx, [rbp + 0x10]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
call fcn.140001b5c
test rax, rax
je 0x14000566e
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x58], rax
call fcn.14001b988
mov rbx, qword [rsp + 0x58]
mov esi, eax
test eax, eax
je 0x140005249
xor r14d, r14d
jmp 0x1400055cd
mov rcx, qword [rsp + 0x38]
mov rdx, rbx
call r14
xor r14d, r14d
test eax, eax
je 0x140005271
mov rcx, qword [rsp + 0x38]
lea edx, [r14 + 1]
call r15
mov qword [rsp + 0x48], rax
test rax, rax
jne 0x14000527d
call fcn.14001b570
mov esi, eax
jmp 0x1400055cd
lea rax, [rsp + 0x40]
mov qword [rbp + 0xc8], r14
mov qword [rsp + 0x60], rax
lea rdx, [rbp + 0x90]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x68], rax
lea rcx, [rbp + 0x50]
movups xmm0, xmmword [rsp + 0x60]
lea rax, fcn.140012a68
mov qword [rbp + 0x50], rax
lea rax, [rbp + 0x50]
mov qword [rbp + 0x88], rax
movdqu xmmword [rbp + 0x58], xmm0
call fcn.140012a68
mov rcx, qword [rbp + 0x88]
mov qword [rbp + 0xc8], rax
test rcx, rcx
je 0x1400052eb
mov rax, qword [rcx]
lea rdx, [rbp + 0x50]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov rcx, qword [rsp + 0x48]
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x70]
call r13
test eax, eax
jne 0x14000530d
call fcn.14001b570
mov esi, eax
jmp 0x140005591
xorps xmm0, xmm0
mov qword [rbp - 0x70], r14
lea rax, [rbp - 0x80]
movdqa xmmword [rbp - 0x80], xmm0
xorps xmm1, xmm1
mov qword [rbp - 0x58], rax
movdqa xmmword [rbp - 0x40], xmm0
movdqa xmmword [rbp - 0x30], xmm1
movdqa xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x68], r14
mov qword [rbp - 0x60], r14
mov dword [rbp - 0x50], r14d
mov qword [rbp - 0x48], r14
mov qword [rbp - 8], r14
mov qword [rbp - 0x10], r14
call fcn.140001b5c
test rax, rax
je 0x14000566e
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x60]
add rax, 0x18
mov qword [rbp], rax
call fcn.1400022c8
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.1400109e0
mov rcx, qword [rsp + 0x70]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
jne 0x140005541
lea rdx, str.IMAGE
lea rcx, [rbp - 0x80]
call fcn.14001cd64
mov rsi, rax
test r12, r12
jne 0x14000546a
lea rdx, str.WIMSetImageInformation
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
jne 0x1400053d8
mov esi, 0x80004002
jmp 0x140005541
mov rcx, rsi
call fcn.14001cfd0
lea rcx, [rsp + 0x30]
call fcn.140010d50
xor r9d, r9d
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x30]
lea r8d, [r9 + 1]
call fcn.14001a17c
mov rdx, qword [rsp + 0x30]
cmp dword [rdx - 8], 1
mov esi, dword [rdx - 0x10]
jle 0x14000541e
mov edx, esi
lea rcx, [rsp + 0x30]
call fcn.140001fb0
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
lea r8d, [rsi + rsi]
call rbx
test eax, eax
jne 0x14000545c
call fcn.14001b570
mov rdx, qword [rsp + 0x30]
mov esi, eax
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140005541
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x140005541
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
jmp 0x140005528
call fcn.140001b5c
test rax, rax
je 0x14000566e
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
lea rdx, str.NATIVEDISM
mov rcx, rsi
lea rbx, [rax + 0x18]
mov qword [rsp + 0x50], rbx
call fcn.14001cd64
mov rsi, rax
test rax, rax
jne 0x1400054a9
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400054ff
lea rbx, [0x140063614]
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], r14w
jne 0x1400054b4
mov r8d, eax
lea rcx, [rsp + 0x50]
mov rdx, rbx
call fcn.1400021bc
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x1400054dd
mov rax, qword [rsi + 0x18]
jmp 0x1400054e0
mov rax, r14
test rcx, rcx
mov r8d, eax
cmovne rbx, rcx
lea rcx, [rsp + 0x50]
mov rdx, rbx
call fcn.140019f84
mov rbx, qword [rsp + 0x50]
mov eax, r14d
test eax, eax
je 0x140005508
mov ecx, r14d
jmp 0x140005520
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 0xa]
call qword [sym.imp.msvcrt.dll_wcstoul]
cmp eax, 6
mov ecx, r14d
setae cl
mov dword [r12], ecx
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000553e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov esi, r14d
mov rdx, qword [rbp]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000555f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rbp - 0x18]
test rax, rax
je 0x140005580
mov rbx, qword [rax]
mov rcx, rax
call qword [sym.imp.msvcrt.dll_free]
mov qword [rbp - 0x18], rbx
mov rax, rbx
test rbx, rbx
jne 0x140005568
mov rbx, qword [rsp + 0x58]
mov qword [rbp - 0x18], r14
mov qword [rbp - 8], r14
mov qword [rbp - 0x10], r14
mov rcx, qword [rbp + 0xc8]
test rcx, rcx
je 0x140005679
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0xc8]
test rcx, rcx
je 0x1400055cd
mov rax, qword [rcx]
lea rdx, [rbp + 0x90]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rbp + 0xc8], r14
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400055e7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rbp + 0x108]
test rcx, rcx
je 0x140005679
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x108]
test rcx, rcx
je 0x14000562a
mov rax, qword [rcx]
lea rdx, [rbp + 0xd0]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rbp + 0x108], r14
jmp 0x14000562a
mov esi, 0x80004002
test rdi, rdi
je 0x140005642
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
jne 0x140005642
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, esi
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.1400408d0
mov rbx, qword [rsp + 0x270]
add rsp, 0x220
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140002198
int3
call fcn.1400398f8
int3