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

Disassembly:
mov qword [rsp + 0x20], r9
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x538
mov rax, qword [0x1408fa960]
xor rax, rsp
mov qword [rsp + 0x528], rax
mov dword [rsp + 0x40], 0
mov rcx, qword [rsp + 0x540]
call fcn.14021bb30
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x24], 0
jmp 0x140217826
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x20], 0
je 0x14021784e
mov rax, qword [rsp + 0x560]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x560]
call qword [rax + reloc.msi.dll_MsiDatabaseImportW]
movzx eax, al
test eax, eax
jne 0x1402185ab
movsxd rax, dword [rsp + 0x24]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x548]
mov rax, qword [rcx + rax]
movzx eax, word [rax]
test eax, eax
je 0x1402185ab
movsxd rax, dword [rsp + 0x24]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x548]
mov rdx, qword [rcx + rax]
lea rcx, [rsp + 0x2c8]
call fcn.1400179b0
mov qword [rsp + 0x1c0], rax
mov eax, dword [rsp + 0x40]
or eax, 1
mov dword [rsp + 0x40], eax
lea rdx, [rsp + 0x2c8]
mov rcx, qword [rsp + 0x88]
call fcn.14004fee0
mov byte [rsp + 0x39], al
movzx eax, byte [rsp + 0x39]
test eax, eax
jne 0x1402178db
movzx eax, byte [rsp + 0x550]
test eax, eax
jne 0x1402178db
mov dword [rsp + 0x60], 1
jmp 0x1402178e3
mov dword [rsp + 0x60], 0
movzx eax, byte [rsp + 0x60]
mov byte [rsp + 0x3a], al
mov eax, dword [rsp + 0x40]
and eax, 1
test eax, eax
je 0x140217909
and dword [rsp + 0x40], 0xfffffffe
lea rcx, [rsp + 0x2c8]
call fcn.14000a800
movzx eax, byte [rsp + 0x3a]
test eax, eax
je 0x140217b10
mov dword [rsp + 0x20], 0x65c6
mov rax, qword [rsp + 0x560]
mov rax, qword [rax]
mov rax, qword [rax]
mov qword [rsp + 0xa0], rax
movsxd rax, dword [rsp + 0x24]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x548]
mov rdx, qword [rcx + rax]
lea rcx, [rsp + 0x2e8]
call fcn.1400179b0
mov qword [rsp + 0x1c8], rax
lea rdx, [rsp + 0x2e8]
mov rcx, qword [rsp + 0x560]
call qword [rsp + reloc.msi.dll_MsiDatabaseIsTablePersistentA]
nop
lea rcx, [rsp + 0x2e8]
call fcn.14000a800
lea rcx, [rsp + 0x248]
call fcn.14000a280
nop
movsxd rax, dword [rsp + 0x24]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x548]
mov rax, qword [rcx + rax + 8]
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x44], 0
jmp 0x1402179c3
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
mov eax, 2
imul rax, rax, 0
movsxd rcx, dword [rsp + 0x44]
imul rcx, rcx, 0x18
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rdx + rcx]
movzx eax, word [rcx + rax]
test eax, eax
je 0x140217a60
lea rcx, [rsp + 0x248]
call fcn.1400165c0
movzx eax, al
test eax, eax
jne 0x140217a11
lea rdx, [0x140363eb0]
lea rcx, [rsp + 0x248]
call fcn.14001efd0
lea rdx, [0x140363ed8]
lea rcx, [rsp + 0x248]
call fcn.14001efd0
movsxd rax, dword [rsp + 0x44]
imul rax, rax, 0x18
mov rcx, qword [rsp + 0x90]
mov rdx, qword [rcx + rax]
lea rcx, [rsp + 0x248]
call fcn.14001efd0
lea rdx, [0x140363f10]
lea rcx, [rsp + 0x248]
call fcn.14001efd0
jmp 0x1402179b9
mov rax, qword [rsp + 0x560]
mov rax, qword [rax]
mov rax, qword [rax]
mov qword [rsp + 0xa8], rax
lea rdx, [rsp + 0x248]
mov rcx, qword [rsp + 0x560]
call qword [rsp + MsiApplyPatchA]
mov rax, qword [rsp + 0x560]
mov rax, qword [rax]
mov rax, qword [rax + 8]
mov qword [rsp + 0xb0], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x560]
call qword [rsp + 0xb0]
mov rax, qword [rsp + 0x560]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x560]
call qword [rax + reloc.msi.dll_MsiDatabaseImportW]
mov byte [rsp + 0x2c], al
movzx eax, byte [rsp + 0x2c]
test eax, eax
je 0x140217aef
lea rcx, [rsp + 0x248]
call fcn.14000a800
nop
jmp 0x1402185ab
lea rcx, [rsp + 0x248]
call fcn.14000a800
nop
jmp 0x14021781c
movsxd rax, dword [rsp + 0x24]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x548]
mov rdx, qword [rcx + rax]
lea rcx, [rsp + 0x308]
call fcn.1400179b0
mov qword [rsp + 0x1d0], rax
lea rdx, [rsp + 0x308]
mov rcx, qword [rsp + 0x88]
call fcn.14004f440
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x308]
call fcn.14000a800
movzx eax, byte [rsp + 0x550]
test eax, eax
je 0x140217ce1
mov dword [rsp + 0x20], 0x6597
mov rax, qword [rsp + 0x560]
mov rax, qword [rax]
mov rax, qword [rax]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0x558]
mov rax, qword [rax]
mov rax, qword [rax + 8]
mov qword [rsp + 0xc0], rax
lea rdx, [0x140363fa0]
lea rcx, [rsp + 0x328]
call fcn.1400179b0
mov qword [rsp + 0x1d8], rax
lea r8, [rsp + 0x328]
lea rdx, [rsp + 0x508]
mov rcx, qword [rsp + 0x558]
call qword [rsp + 0xc0]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0xd8], rax
mov rdx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0x560]
call qword [rsp + 0xe0]
nop
lea rcx, [rsp + 0x508]
call fcn.14000a800
nop
lea rcx, [rsp + 0x328]
call fcn.14000a800
mov rax, qword [rsp + 0x560]
mov rax, qword [rax]
mov rax, qword [rax]
mov qword [rsp + 0xe8], rax
movsxd rax, dword [rsp + 0x24]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x548]
mov rdx, qword [rcx + rax]
lea rcx, [rsp + 0x348]
call fcn.1400179b0
mov qword [rsp + 0x1e0], rax
lea rdx, [rsp + 0x348]
mov rcx, qword [rsp + 0x560]
call qword [rsp + 0xe8]
nop
lea rcx, [rsp + 0x348]
call fcn.14000a800
mov rax, qword [rsp + 0x560]
mov rax, qword [rax]
mov rax, qword [rax + 8]
mov qword [rsp + 0xf0], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x560]
call qword [rsp + 0xf0]
nop
jmp 0x1402185ab
movsxd rax, dword [rsp + 0x24]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x548]
mov rax, qword [rcx + rax + 8]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x28], 0
jmp 0x140217d10
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x20], 0
je 0x140217d3e
mov rax, qword [rsp + 0x560]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x560]
call qword [rax + reloc.msi.dll_MsiDatabaseImportW]
mov byte [rsp + 0x2d], al
movzx eax, byte [rsp + 0x2d]
test eax, eax
jne 0x140218333
mov eax, 2
imul rax, rax, 0
movsxd rcx, dword [rsp + 0x28]
imul rcx, rcx, 0x18
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rdx + rcx]
movzx eax, word [rcx + rax]
test eax, eax
je 0x140218333
movsxd rax, dword [rsp + 0x28]
imul rax, rax, 0x18
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rcx + rax]
lea rcx, [rsp + 0x368]
call fcn.1400179b0
mov qword [rsp + 0x1e8], rax
lea rdx, [rsp + 0x368]
mov rcx, qword [rsp + 0x58]
call fcn.14004f440
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x368]
call fcn.14000a800
movsxd rax, dword [rsp + 0x28]
imul rax, rax, 0x18
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx + rax + 8]
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x3c], 0
jmp 0x140217def
mov eax, dword [rsp + 0x3c]
inc eax
mov dword [rsp + 0x3c], eax
movsxd rax, dword [rsp + 0x28]
imul rax, rax, 0x18
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax + 0x10]
cmp dword [rsp + 0x3c], eax
jge 0x140218056
movsxd rax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x80]
mov rdx, qword [rcx + rax*8]
lea rcx, [rsp + 0x388]
call fcn.1400179b0
mov qword [rsp + 0x1f0], rax
lea rdx, [rsp + 0x388]
mov rcx, qword [rsp + 0x68]
call fcn.14004fee0
mov byte [rsp + 0x2e], al
movzx eax, byte [rsp + 0x2e]
test eax, eax
jne 0x140217e5a
mov dword [rsp + 0x64], 1
jmp 0x140217e62
mov dword [rsp + 0x64], 0
movzx eax, byte [rsp + 0x64]
mov byte [rsp + 0x2f], al
lea rcx, [rsp + 0x388]
call fcn.14000a800
movzx eax, byte [rsp + 0x2f]
test eax, eax
je 0x14021800b
mov dword [rsp + 0x20], 0x65c3
mov rax, qword [rsp + 0x560]
mov rax, qword [rax]
mov rax, qword [rax]
mov qword [rsp + 0x100], rax
movsxd rax, dword [rsp + 0x24]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x548]
mov rdx, qword [rcx + rax]
lea rcx, [rsp + 0x3a8]
call fcn.1400179b0
mov qword [rsp + 0x1f8], rax
lea rdx, [rsp + 0x3a8]
mov rcx, qword [rsp + 0x560]
call qword [rsp + 0x100]
nop
lea rcx, [rsp + 0x3a8]
call fcn.14000a800
mov rax, qword [rsp + 0x560]
mov rax, qword [rax]
mov rax, qword [rax]
mov qword [rsp + 0x108], rax
movsxd rax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x80]
mov rdx, qword [rcx + rax*8]
lea rcx, [rsp + 0x3c8]
call fcn.1400179b0
mov qword [rsp + 0x200], rax
lea rdx, [rsp + 0x3c8]
mov rcx, qword [rsp + 0x560]
call qword [rsp + 0x108]
nop
lea rcx, [rsp + 0x3c8]
call fcn.14000a800
mov rax, qword [rsp + 0x560]
mov rax, qword [rax]
mov rax, qword [rax]
mov qword [rsp + 0x110], rax
movsxd rax, dword [rsp + 0x28]
imul rax, rax, 0x18
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rcx + rax]
lea rcx, [rsp + 0x3e8]
call fcn.1400179b0
mov qword [rsp + 0x208], rax
lea rdx, [rsp + 0x3e8]
mov rcx, qword [rsp + 0x560]
call qword [rsp + 0x110]
nop
lea rcx, [rsp + 0x3e8]
call fcn.14000a800
mov rax, qword [rsp + 0x560]
mov rax, qword [rax]
mov rax, qword [rax + 8]
mov qword [rsp + 0x118], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x560]
call qword [rsp + 0x118]
mov rax, qword [rsp + 0x560]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x560]
call qword [rax + reloc.msi.dll_MsiDatabaseImportW]
mov byte [rsp + 0x30], al
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x140218006
jmp 0x140218056
jmp 0x140217de5
movsxd rax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x80]
mov rdx, qword [rcx + rax*8]
lea rcx, [rsp + 0x408]
call fcn.1400179b0
mov qword [rsp + 0x210], rax
lea rdx, [rsp + 0x408]
mov rcx, qword [rsp + 0x68]
call fcn.14021c270
nop
lea rcx, [rsp + 0x408]
call fcn.14000a800
jmp 0x140217de5
cmp dword [rsp + 0x20], 0
jne 0x1402182b0
mov rcx, qword [rsp + 0x68]
call fcn.140141250
mov byte [rsp + 0x31], al
movzx eax, byte [rsp + 0x31]
test eax, eax
je 0x1402182b0
mov dword [rsp + 0x20], 0x65c5
mov rax, qword [rsp + 0x560]
mov rax, qword [rax]
mov rax, qword [rax]
mov qword [rsp + 0x120], rax
movsxd rax, dword [rsp + 0x24]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x548]
mov rdx, qword [rcx + rax]
lea rcx, [rsp + 0x428]
call fcn.1400179b0
mov qword [rsp + 0x218], rax
lea rdx, [rsp + 0x428]
mov rcx, qword [rsp + 0x560]
call qword [rsp + 0x120]
nop
lea rcx, [rsp + 0x428]
call fcn.14000a800
lea rcx, [rsp + 0x288]
call fcn.14000a280
nop
mov qword [rsp + 0x70], 0
jmp 0x14021810f
mov rax, qword [rsp + 0x70]
inc rax
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x68]
call fcn.14004d3b0
mov qword [rsp + 0x128], rax
mov rax, qword [rsp + 0x128]
cmp qword [rsp + 0x70], rax
jae 0x14021819e
lea rcx, [rsp + 0x288]
call fcn.1400165c0
movzx eax, al
test eax, eax
jne 0x140218158
lea rdx, [0x140364178]
lea rcx, [rsp + 0x288]
call fcn.14001efd0
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
call fcn.14004f470
mov qword [rsp + 0x130], rax
mov rcx, qword [rsp + 0x130]
call fcn.14004f580
mov qword [rsp + 0x138], rax
mov rdx, qword [rsp + 0x138]
lea rcx, [rsp + 0x288]
call fcn.14001efa0
jmp 0x140218102
mov rax, qword [rsp + 0x560]
mov rax, qword [rax]
mov rax, qword [rax]
mov qword [rsp + 0x140], rax
lea rdx, [rsp + 0x288]
mov rcx, qword [rsp + 0x560]
call qword [rsp + 0x140]
mov rax, qword [rsp + 0x560]
mov rax, qword [rax]
mov rax, qword [rax]
mov qword [rsp + 0x148], rax
movsxd rax, dword [rsp + 0x28]
imul rax, rax, 0x18
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rcx + rax]
lea rcx, [rsp + 0x448]
call fcn.1400179b0
mov qword [rsp + 0x220], rax
lea rdx, [rsp + 0x448]
mov rcx, qword [rsp + 0x560]
call qword [rsp + 0x148]
nop
lea rcx, [rsp + 0x448]
call fcn.14000a800
mov rax, qword [rsp + 0x560]
mov rax, qword [rax]
mov rax, qword [rax + 8]
mov qword [rsp + 0x150], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x560]
call qword [rsp + 0x150]
mov rax, qword [rsp + 0x560]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x560]
call qword [rax + reloc.msi.dll_MsiDatabaseImportW]
mov byte [rsp + 0x32], al
movzx eax, byte [rsp + 0x32]
test eax, eax
je 0x14021828f
lea rcx, [rsp + 0x288]
call fcn.14000a800
nop
jmp 0x140218333
lea rcx, [rsp + 0x288]
call fcn.14000a800
nop
jmp 0x140217d06
jmp 0x1402182b2
jmp 0x1402182b9
jmp 0x1402182bd
cmp dword [rsp + 0x20], 0
je 0x1402182e7
mov rax, qword [rsp + 0x560]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x560]
call qword [rax + reloc.msi.dll_MsiDatabaseImportW]
mov byte [rsp + 0x34], al
movzx eax, byte [rsp + 0x34]
test eax, eax
jne 0x14021832e
movsxd rax, dword [rsp + 0x28]
imul rax, rax, 0x18
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rcx + rax]
lea rcx, [rsp + 0x4a8]
call fcn.1400179b0
mov qword [rsp + 0x238], rax
lea rdx, [rsp + 0x4a8]
mov rcx, qword [rsp + 0x58]
call fcn.14021c270
nop
lea rcx, [rsp + 0x4a8]
call fcn.14000a800
jmp 0x140217d06
cmp dword [rsp + 0x20], 0
je 0x140218361
mov rax, qword [rsp + 0x560]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x560]
call qword [rax + reloc.msi.dll_MsiDatabaseImportW]
mov byte [rsp + 0x35], al
movzx eax, byte [rsp + 0x35]
test eax, eax
jne 0x14021854e
mov rcx, qword [rsp + 0x58]
call fcn.140141250
mov byte [rsp + 0x36], al
movzx eax, byte [rsp + 0x36]
test eax, eax
je 0x14021854e
mov dword [rsp + 0x20], 0x65c4
mov rax, qword [rsp + 0x560]
mov rax, qword [rax]
mov rax, qword [rax]
mov qword [rsp + 0x170], rax
movsxd rax, dword [rsp + 0x24]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x548]
mov rdx, qword [rcx + rax]
lea rcx, [rsp + 0x4c8]
call fcn.1400179b0
mov qword [rsp + 0x240], rax
lea rdx, [rsp + 0x4c8]
mov rcx, qword [rsp + 0x560]
call qword [rsp + 0x170]
nop
lea rcx, [rsp + 0x4c8]
call fcn.14000a800
lea rcx, [rsp + 0x2a8]
call fcn.14000a280
nop
mov qword [rsp + 0x78], 0
jmp 0x14021840f
mov rax, qword [rsp + 0x78]
inc rax
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0x58]
call fcn.14004d3b0
mov qword [rsp + 0x178], rax
mov rax, qword [rsp + 0x178]
cmp qword [rsp + 0x78], rax
jae 0x14021849e
lea rcx, [rsp + 0x2a8]
call fcn.1400165c0
movzx eax, al
test eax, eax
jne 0x140218458
lea rdx, [0x1403643dc]
lea rcx, [rsp + 0x2a8]
call fcn.14001efd0
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
call fcn.14004f470
mov qword [rsp + 0x180], rax
mov rcx, qword [rsp + 0x180]
call fcn.14004f580
mov qword [rsp + 0x188], rax
mov rdx, qword [rsp + 0x188]
lea rcx, [rsp + 0x2a8]
call fcn.14001efa0
jmp 0x140218402
mov rax, qword [rsp + 0x560]
mov rax, qword [rax]
mov rax, qword [rax]
mov qword [rsp + 0x190], rax
lea rdx, [rsp + 0x2a8]
mov rcx, qword [rsp + 0x560]
call qword [rsp + 0x190]
mov rax, qword [rsp + 0x560]
mov rax, qword [rax]
mov rax, qword [rax + 8]
mov qword [rsp + 0x198], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x560]
call qword [rsp + 0x198]
mov rax, qword [rsp + 0x560]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x560]
call qword [rax + reloc.msi.dll_MsiDatabaseImportW]
mov byte [rsp + 0x37], al
movzx eax, byte [rsp + 0x37]
test eax, eax
je 0x14021852d
lea rcx, [rsp + 0x2a8]
call fcn.14000a800
nop
jmp 0x1402185ab
lea rcx, [rsp + 0x2a8]
call fcn.14000a800
nop
jmp 0x14021781c
cmp dword [rsp + 0x20], 0
je 0x140218578
mov rax, qword [rsp + 0x560]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x560]
call qword [rax + reloc.msi.dll_MsiDatabaseImportW]
mov byte [rsp + 0x38], al
movzx eax, byte [rsp + 0x38]
test eax, eax
jne 0x1402185a0
mov rcx, qword [rsp + 0x58]
call fcn.14004f580
mov qword [rsp + 0x1a0], rax
mov rdx, qword [rsp + 0x1a0]
mov rcx, qword [rsp + 0x88]
call fcn.14021c270
nop
jmp 0x1402185a2
jmp 0x1402185a6
jmp 0x14021781c
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x528]
xor rcx, rsp
call fcn.140222a60
add rsp, 0x538
ret