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

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x880
mov dword [rsp + 0x108], 0
mov rax, qword [rsp + 0x890]
mov eax, dword [rax + 0x10]
and eax, 1
test eax, eax
je 0x140002bc0
mov rax, qword [rsp + 0x890]
cmp dword [rax + 0x18], 6
jb 0x140002bc0
mov rax, qword [rsp + 0x890]
cmp dword [rax + 0x1c], 1
jb 0x140002bc0
mov rax, qword [rsp + 0x890]
add rax, 0x3c
mov r8d, 0x104
lea rdx, [rsp + 0x670]
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_SHAnsiToUnicode]
lea rax, [rsp + 0x110]
mov rdi, rax
xor eax, eax
mov ecx, 0x20
rep stosb byte [rdi], al
mov dword [rsp + 0x110], 0x20
lea rax, [rsp + 0x670]
mov qword [rsp + 0x118], rax
mov qword [rsp + 0x120], 0
mov qword [rsp + 0x128], 0
mov dword [rsp + 0x50], 0xaac56b
mov eax, 0xcd44
mov word [rsp + 0x54], ax
mov eax, 0x11d0
mov word [rsp + 0x56], ax
mov byte [rsp + 0x58], 0x8c
mov byte [rsp + 0x59], 0xc2
mov byte [rsp + 0x5a], 0
mov byte [rsp + 0x5b], 0xc0
mov byte [rsp + 0x5c], 0x4f
mov byte [rsp + 0x5d], 0xc2
mov byte [rsp + 0x5e], 0x95
mov byte [rsp + 0x5f], 0xee
lea rax, [rsp + 0x130]
mov rdi, rax
xor eax, eax
mov ecx, 0x58
rep stosb byte [rdi], al
mov dword [rsp + 0x130], 0x58
mov qword [rsp + 0x138], 0
mov qword [rsp + 0x140], 0
mov dword [rsp + 0x148], 2
mov dword [rsp + 0x14c], 0
mov dword [rsp + 0x150], 1
mov dword [rsp + 0x160], 1
mov qword [rsp + 0x168], 0
mov qword [rsp + 0x170], 0
mov dword [rsp + 0x17c], 0
lea rax, [rsp + 0x110]
mov qword [rsp + 0x158], rax
lea r8, [rsp + 0x130]
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.WINTRUST.dll_WinVerifyTrust]
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x160], 2
lea r8, [rsp + 0x130]
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.WINTRUST.dll_WinVerifyTrust]
cmp dword [rsp + 0x78], 0
je 0x140002bc0
mov eax, 1
jmp 0x140003164
mov rax, qword [rsp + 0x890]
mov eax, dword [rax + 0x10]
and eax, 2
test eax, eax
je 0x140002ccc
mov qword [rsp + 0x48], 0
jmp 0x140002bee
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x890]
add rax, 0x140
mov rcx, rax
call fcn.140003240
cmp qword [rsp + 0x48], rax
jae 0x140002ccc
mov rax, qword [rsp + 0x890]
add rax, 0x140
mov qword [rsp + 0xa0], rax
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0xa0]
call fcn.140003210
mov eax, dword [rax + 8]
mov dword [rsp + 0x7c], eax
mov rax, qword [rsp + 0x890]
add rax, 0x140
mov qword [rsp + 0xa8], rax
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0xa8]
call fcn.140003210
mov rax, qword [rax]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x890]
add rax, 0x140
mov qword [rsp + 0xb8], rax
mov edx, dword [rsp + 0x7c]
mov rcx, qword [rsp + 0xb0]
call fcn.140013280
mov dword [rsp + 0x80], eax
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0xb8]
call fcn.140003210
mov ecx, dword [rsp + 0x80]
cmp ecx, dword [rax + 0xc]
je 0x140002cc7
mov eax, 1
jmp 0x140003164
jmp 0x140002be1
mov rax, qword [rsp + 0x890]
mov eax, dword [rax + 0x10]
and eax, 4
test eax, eax
je 0x140003084
call fcn.140015300
test eax, eax
je 0x140002cf5
mov eax, 1
jmp 0x140003164
mov dword [rsp + 0x60], 0
call fcn.140014a30
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.140014f40
cmp dword [rsp + 0x60], 0
je 0x140002d20
mov eax, 1
jmp 0x140003164
mov ecx, 0xdeadc0de
call fcn.140004970
mov rcx, rax
call fcn.140014e50
jmp 0x140002d3e
lea rcx, [0x14001e998]
call fcn.140014160
lea rdx, str.ZwSetInformationObject
mov rcx, rax
call fcn.1400141d0
mov qword [rsp + 0xc0], rax
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 2
rep stosb byte [rdi], al
mov byte [rsp + 0x40], 0
mov byte [rsp + 0x41], 1
call fcn.140014a30
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x88]
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0xc8], rax
mov r9d, 2
lea r8, [rsp + 0x40]
mov edx, 4
mov rcx, qword [rsp + 0x88]
call qword [rsp + 0xc8]
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x88]
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
jmp 0x140002e2e
mov rax, qword [rsp + 0x890]
cmp dword [rax + 4], 0
je 0x140002e46
mov eax, 1
jmp 0x140003164
mov rax, qword [rsp + 0x890]
cmp dword [rax + 0x20], 0
je 0x140002f7c
mov rax, qword [rsp + 0x890]
mov rax, qword [rax + 0x170]
mov qword [rsp + 0xd0], rax
lea rax, [rsp + 0x190]
mov qword [rsp + 0x20], rax
mov r9d, 8
lea r8, [rsp + 0xd8]
mov edx, 0x1e
mov rcx, 0xffffffffffffffff
call qword [rsp + 0xd0]
mov qword [rsp + 0x70], rax
mov eax, 0xc0000353
cmp qword [rsp + 0x70], rax
je 0x140002eb8
mov eax, 1
jmp 0x140003164
mov eax, 0xc0000353
cmp qword [rsp + 0x70], rax
jne 0x140002ed9
cmp qword [rsp + 0xd8], 0
je 0x140002ed9
mov eax, 1
jmp 0x140003164
mov rax, qword [rsp + 0x890]
mov edx, dword [rax + 0x2c]
mov rax, qword [rsp + 0x890]
mov rcx, qword [rax + 0x30]
call fcn.140013280
mov rcx, qword [rsp + 0x890]
cmp eax, dword [rcx + 0x38]
je 0x140002f0c
mov eax, 1
jmp 0x140003164
mov rax, qword [rsp + 0x890]
mov rax, qword [rax + 0x170]
mov qword [rsp + 0xe0], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, 8
lea r8, [rsp + 0x90]
mov edx, 0x1e
mov rcx, 0xffffffffffffffff
call qword [rsp + 0xe0]
mov qword [rsp + 0x70], rax
mov eax, 0xc0000353
cmp qword [rsp + 0x70], rax
jne 0x140002f77
cmp qword [rsp + 0x90], 8
je 0x140002f77
mov eax, 1
jmp 0x140003164
jmp 0x140003084
mov rax, qword [rsp + 0x890]
mov rax, qword [rax + 0x168]
mov qword [rsp + 0xe8], rax
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rsp + 0x84]
mov edx, 0x1e
mov ecx, 0xffffffff
call qword [rsp + 0xe8]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0xc0000353
je 0x140002fd7
mov eax, 1
jmp 0x140003164
cmp dword [rsp + 0x44], 0xc0000353
jne 0x140002ff5
cmp dword [rsp + 0x84], 0
je 0x140002ff5
mov eax, 1
jmp 0x140003164
mov rax, qword [rsp + 0x890]
mov edx, dword [rax + 0x2c]
mov rax, qword [rsp + 0x890]
mov rcx, qword [rax + 0x30]
call fcn.140013280
mov rcx, qword [rsp + 0x890]
cmp eax, dword [rcx + 0x38]
je 0x140003028
mov eax, 1
jmp 0x140003164
mov rax, qword [rsp + 0x890]
mov rax, qword [rax + 0x168]
mov qword [rsp + 0xf0], rax
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rsp + 0x64]
mov edx, 0x1e
mov ecx, 0xffffffff
call qword [rsp + 0xf0]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0xc0000353
jne 0x140003084
cmp dword [rsp + 0x64], 4
je 0x140003084
mov eax, 1
jmp 0x140003164
mov rax, qword [rsp + 0x890]
mov eax, dword [rax + 0x10]
and eax, 8
test eax, eax
je 0x140003162
lea rax, [rsp + 0x1a0]
mov rdi, rax
xor eax, eax
mov ecx, 0x4d0
rep stosb byte [rdi], al
mov dword [rsp + 0x1d0], 0x100010
lea rdx, [rsp + 0x1a0]
mov rcx, 0xfffffffffffffffe
call fcn.140014a90
test eax, eax
je 0x140003104
cmp qword [rsp + 0x1e8], 0
jne 0x1400030fd
cmp qword [rsp + 0x1f0], 0
jne 0x1400030fd
cmp qword [rsp + 0x1f8], 0
jne 0x1400030fd
cmp qword [rsp + 0x200], 0
je 0x140003104
mov eax, 1
jmp 0x140003164
lea rdx, [0x140001940]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
lea rax, [0x140001930]
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x100], rax
mov rcx, qword [rsp + 0x890]
call qword [rsp + pe_nt_image_headers64]
lea rcx, [0x140001940]
call qword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
mov rax, qword [rsp + 0x890]
cmp dword [rax], 0
je 0x140003162
mov eax, 1
jmp 0x140003164
xor eax, eax
add rsp, 0x880
pop rdi
ret