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

Disassembly:
push rbp
push rbx
sub rsp, 0x3f8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x390], rcx
mov dword [rbp + 0x36c], 0
lea rax, str._SYSTEMROOT__system32_ntdll.dll
mov qword [rbp + 0x360], rax
mov ecx, 0x100
call sym.malloc
mov qword [rbp + 0x358], rax
lea rax, [rbp - 0x11]
mov rcx, rax
call fcn.140002920
lea rdx, [rbp - 0x11]
lea rax, [rbp - 0x40]
mov r8, rdx
lea rdx, str.ExpandEnvironmentStringsA
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const_
lea rax, [rbp + 0x1f]
mov rcx, rax
call fcn.140002920
lea rdx, [rbp + 0x1f]
lea rax, [rbp - 0x10]
mov r8, rdx
lea rdx, [0x140005014]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const_
lea rdx, [rbp - 0x40]
lea rax, [rbp - 0x10]
mov rcx, rax
call sym.GetExportAddress_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
mov r9, rax
mov rdx, qword [rbp + 0x358]
mov rax, qword [rbp + 0x360]
mov r8d, 0x100
mov rcx, rax
call r9
lea rax, [rbp - 0x10]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp + 0x1f]
mov rcx, rax
call sym.std::allocator_char_::allocator__
lea rax, [rbp - 0x40]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp - 0x11]
mov rcx, rax
call sym.std::allocator_char_::allocator__
lea rax, [rbp + 0x4f]
mov rcx, rax
call fcn.140002920
lea rdx, [rbp + 0x4f]
lea rax, [rbp + 0x20]
mov r8, rdx
lea rdx, str.CreateFileA
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const_
lea rax, [rbp + 0x7f]
mov rcx, rax
call fcn.140002920
lea rdx, [rbp + 0x7f]
lea rax, [rbp + 0x50]
mov r8, rdx
lea rdx, [0x140005014]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const_
lea rdx, [rbp + 0x20]
lea rax, [rbp + 0x50]
mov rcx, rax
call sym.GetExportAddress_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
mov r10, rax
mov rax, qword [rbp + 0x358]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
mov r9d, 0
mov r8d, 5
mov edx, 0x80000000
mov rcx, rax
call r10
mov qword [rbp + 0x350], rax
lea rax, [rbp + 0x50]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp + 0x7f]
mov rcx, rax
call sym.std::allocator_char_::allocator__
lea rax, [rbp + 0x20]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp + 0x4f]
mov rcx, rax
call sym.std::allocator_char_::allocator__
lea rax, [rbp + 0xaf]
mov rcx, rax
call fcn.140002920
lea rdx, [rbp + 0xaf]
lea rax, [rbp + 0x80]
mov r8, rdx
lea rdx, str.GetFileSize
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const_
lea rax, [rbp + 0xdf]
mov rcx, rax
call fcn.140002920
lea rdx, [rbp + 0xdf]
lea rax, [rbp + 0xb0]
mov r8, rdx
lea rdx, [0x140005014]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const_
lea rdx, [rbp + 0x80]
lea rax, [rbp + 0xb0]
mov rcx, rax
call sym.GetExportAddress_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
mov r8, rax
mov rax, qword [rbp + 0x350]
mov edx, 0
mov rcx, rax
call r8
mov dword [rbp + 0x34c], eax
lea rax, [rbp + 0xb0]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp + 0xdf]
mov rcx, rax
call sym.std::allocator_char_::allocator__
lea rax, [rbp + 0x80]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp + 0xaf]
mov rcx, rax
call sym.std::allocator_char_::allocator__
lea rax, [rbp + 0x10f]
mov rcx, rax
call fcn.140002920
lea rdx, [rbp + 0x10f]
lea rax, [rbp + 0xe0]
mov r8, rdx
lea rdx, str.CreateFileMappingA
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const_
lea rax, [rbp + 0x13f]
mov rcx, rax
call fcn.140002920
lea rdx, [rbp + 0x13f]
lea rax, [rbp + 0x110]
mov r8, rdx
lea rdx, [0x140005014]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const_
lea rdx, [rbp + 0xe0]
lea rax, [rbp + 0x110]
mov rcx, rax
call sym.GetExportAddress_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
mov r10, rax
mov rax, qword [rbp + 0x350]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 2
mov edx, 0
mov rcx, rax
call r10
mov qword [rbp + 0x340], rax
lea rax, [rbp + 0x110]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp + 0x13f]
mov rcx, rax
call sym.std::allocator_char_::allocator__
lea rax, [rbp + 0xe0]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp + 0x10f]
mov rcx, rax
call sym.std::allocator_char_::allocator__
lea rax, [rbp + 0x16f]
mov rcx, rax
call fcn.140002920
lea rdx, [rbp + 0x16f]
lea rax, [rbp + 0x140]
mov r8, rdx
lea rdx, str.MapViewOfFile
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const_
lea rax, [rbp + 0x19f]
mov rcx, rax
call fcn.140002920
lea rdx, [rbp + 0x19f]
lea rax, [rbp + 0x170]
mov r8, rdx
lea rdx, [0x140005014]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const_
lea rdx, [rbp + 0x140]
lea rax, [rbp + 0x170]
mov rcx, rax
call sym.GetExportAddress_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
mov r10, rax
mov rax, qword [rbp + 0x340]
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 4
mov rcx, rax
call r10
mov qword [rbp + 0x338], rax
lea rax, [rbp + 0x170]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp + 0x19f]
mov rcx, rax
call sym.std::allocator_char_::allocator__
lea rax, [rbp + 0x140]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp + 0x16f]
mov rcx, rax
call sym.std::allocator_char_::allocator__
mov rax, qword [rbp + 0x338]
mov qword [rbp + 0x330], rax
mov rax, qword [rbp + 0x330]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140001c3c
mov eax, 0
jmp 0x140002468
mov rax, qword [rbp + 0x330]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x338]
add rax, rdx
mov qword [rbp + 0x328], rax
mov rax, qword [rbp + 0x328]
movzx eax, word [rax + 6]
movzx eax, ax
mov dword [rbp + 0x324], eax
mov rax, qword [rbp + 0x330]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x338]
add rax, rdx
add rax, 0x108
mov qword [rbp + 0x318], rax
mov rax, qword [rbp + 0x328]
mov eax, dword [rax + 0x88]
mov dword [rbp + 0x314], eax
mov rax, qword [rbp + 0x328]
mov eax, dword [rax + 0x8c]
mov dword [rbp + 0x310], eax
mov r8d, dword [rbp + 0x314]
mov ecx, dword [rbp + 0x34c]
mov edx, dword [rbp + 0x324]
mov rax, qword [rbp + 0x318]
mov r9d, r8d
mov r8d, ecx
mov rcx, rax
call sym.RawOffsetByRVA__IMAGE_SECTION_HEADER__unsigned_long__unsigned_long__unsigned_long_
mov dword [rbp + 0x30c], eax
cmp dword [rbp + 0x314], 0
je 0x140001d01
cmp dword [rbp + 0x310], 0
je 0x140001d01
cmp dword [rbp + 0x30c], 0
jne 0x140001d0b
mov eax, 0
jmp 0x140002468
mov edx, dword [rbp + 0x30c]
mov rax, qword [rbp + 0x338]
add rax, rdx
mov qword [rbp + 0x300], rax
mov rax, qword [rbp + 0x300]
mov r8d, dword [rax + 0x1c]
mov ecx, dword [rbp + 0x34c]
mov edx, dword [rbp + 0x324]
mov rax, qword [rbp + 0x318]
mov r9d, r8d
mov r8d, ecx
mov rcx, rax
call sym.RawOffsetByRVA__IMAGE_SECTION_HEADER__unsigned_long__unsigned_long__unsigned_long_
mov edx, eax
mov rax, qword [rbp + 0x338]
add rax, rdx
mov qword [rbp + 0x2f8], rax
mov rax, qword [rbp + 0x300]
mov r8d, dword [rax + 0x24]
mov ecx, dword [rbp + 0x34c]
mov edx, dword [rbp + 0x324]
mov rax, qword [rbp + 0x318]
mov r9d, r8d
mov r8d, ecx
mov rcx, rax
call sym.RawOffsetByRVA__IMAGE_SECTION_HEADER__unsigned_long__unsigned_long__unsigned_long_
mov edx, eax
mov rax, qword [rbp + 0x338]
add rax, rdx
mov qword [rbp + 0x2f0], rax
mov rax, qword [rbp + 0x300]
mov r8d, dword [rax + 0x20]
mov ecx, dword [rbp + 0x34c]
mov edx, dword [rbp + 0x324]
mov rax, qword [rbp + 0x318]
mov r9d, r8d
mov r8d, ecx
mov rcx, rax
call sym.RawOffsetByRVA__IMAGE_SECTION_HEADER__unsigned_long__unsigned_long__unsigned_long_
mov edx, eax
mov rax, qword [rbp + 0x338]
add rax, rdx
mov qword [rbp + 0x2e8], rax
mov rax, qword [rbp + 0x300]
mov eax, dword [rax + 0x18]
mov dword [rbp + 0x2e4], eax
mov dword [rbp + 0x368], 0
jmp 0x140001f6b
mov eax, dword [rbp + 0x368]
lea rdx, [rax*4]
mov rax, qword [rbp + 0x2e8]
add rax, rdx
mov eax, dword [rax]
mov dword [rbp + 0x2e0], eax
mov eax, dword [rbp + 0x368]
lea rdx, [rax + rax]
mov rax, qword [rbp + 0x2f0]
add rax, rdx
movzx eax, word [rax]
movzx eax, ax
lea rdx, [rax*4]
mov rax, qword [rbp + 0x2f8]
add rax, rdx
mov eax, dword [rax]
mov dword [rbp + 0x2dc], eax
mov r8d, dword [rbp + 0x2dc]
mov ecx, dword [rbp + 0x34c]
mov edx, dword [rbp + 0x324]
mov rax, qword [rbp + 0x318]
mov r9d, r8d
mov r8d, ecx
mov rcx, rax
call sym.RawOffsetByRVA__IMAGE_SECTION_HEADER__unsigned_long__unsigned_long__unsigned_long_
mov dword [rbp + 0x2d8], eax
mov r8d, dword [rbp + 0x2e0]
mov ecx, dword [rbp + 0x34c]
mov edx, dword [rbp + 0x324]
mov rax, qword [rbp + 0x318]
mov r9d, r8d
mov r8d, ecx
mov rcx, rax
call sym.RawOffsetByRVA__IMAGE_SECTION_HEADER__unsigned_long__unsigned_long__unsigned_long_
mov dword [rbp + 0x2d4], eax
mov edx, dword [rbp + 0x2d4]
mov rax, qword [rbp + 0x338]
add rax, rdx
mov qword [rbp + 0x2c8], rax
mov edx, dword [rbp + 0x2d8]
mov rax, qword [rbp + 0x338]
add rax, rdx
mov qword [rbp + 0x2c0], rax
mov rdx, qword [rbp + 0x2c8]
mov rax, qword [rbp + 0x390]
mov rcx, rax
call sym.strcmp
test eax, eax
jne 0x140001f64
mov rax, qword [rbp + 0x2c0]
mov r8d, 4
lea rdx, [0x1400050eb]
mov rcx, rax
call sym.memcmp
test eax, eax
jne 0x140001f37
mov rax, qword [rbp + 0x2c0]
add rax, 4
mov eax, dword [rax]
mov dword [rbp + 0x36c], eax
mov eax, dword [rbp + 0x2e4]
mov dword [rbp + 0x368], eax
jmp 0x140001f64
mov rax, qword [rbp + 0x2c0]
movzx eax, byte [rax]
cmp al, 0xb8
jne 0x140001f64
mov rax, qword [rbp + 0x2c0]
add rax, 1
mov eax, dword [rax]
mov dword [rbp + 0x36c], eax
mov eax, dword [rbp + 0x2e4]
mov dword [rbp + 0x368], eax
add dword [rbp + 0x368], 1
mov eax, dword [rbp + 0x368]
cmp eax, dword [rbp + 0x2e4]
jb 0x140001dfe
lea rax, [rbp + 0x1cf]
mov rcx, rax
call fcn.140002920
lea rdx, [rbp + 0x1cf]
lea rax, [rbp + 0x1a0]
mov r8, rdx
lea rdx, str.CloseHandle
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const_
lea rax, [rbp + 0x1ff]
mov rcx, rax
call fcn.140002920
lea rdx, [rbp + 0x1ff]
lea rax, [rbp + 0x1d0]
mov r8, rdx
lea rdx, [0x140005014]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const_
lea rdx, [rbp + 0x1a0]
lea rax, [rbp + 0x1d0]
mov rcx, rax
call sym.GetExportAddress_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
mov rdx, rax
mov rax, qword [rbp + 0x350]
mov rcx, rax
call rdx
lea rax, [rbp + 0x1d0]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp + 0x1ff]
mov rcx, rax
call sym.std::allocator_char_::allocator__
lea rax, [rbp + 0x1a0]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp + 0x1cf]
mov rcx, rax
call sym.std::allocator_char_::allocator__
lea rax, [rbp + 0x22f]
mov rcx, rax
call fcn.140002920
lea rdx, [rbp + 0x22f]
lea rax, [rbp + 0x200]
mov r8, rdx
lea rdx, str.CloseHandle
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const_
lea rax, [rbp + 0x25f]
mov rcx, rax
call fcn.140002920
lea rdx, [rbp + 0x25f]
lea rax, [rbp + 0x230]
mov r8, rdx
lea rdx, [0x140005014]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const_
lea rdx, [rbp + 0x200]
lea rax, [rbp + 0x230]
mov rcx, rax
call sym.GetExportAddress_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
mov rdx, rax
mov rax, qword [rbp + 0x340]
mov rcx, rax
call rdx
lea rax, [rbp + 0x230]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp + 0x25f]
mov rcx, rax
call sym.std::allocator_char_::allocator__
lea rax, [rbp + 0x200]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp + 0x22f]
mov rcx, rax
call sym.std::allocator_char_::allocator__
lea rax, [rbp + 0x28f]
mov rcx, rax
call fcn.140002920
lea rdx, [rbp + 0x28f]
lea rax, [rbp + 0x260]
mov r8, rdx
lea rdx, str.UnmapViewOfFile
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const_
lea rax, [rbp + 0x2bf]
mov rcx, rax
call fcn.140002920
lea rdx, [rbp + 0x2bf]
lea rax, [rbp + 0x290]
mov r8, rdx
lea rdx, [0x140005014]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const_
lea rdx, [rbp + 0x260]
lea rax, [rbp + 0x290]
mov rcx, rax
call sym.GetExportAddress_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
mov rdx, rax
mov rax, qword [rbp + 0x338]
mov rcx, rax
call rdx
lea rax, [rbp + 0x290]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp + 0x2bf]
mov rcx, rax
call sym.std::allocator_char_::allocator__
lea rax, [rbp + 0x260]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp + 0x28f]
mov rcx, rax
call sym.std::allocator_char_::allocator__
mov rax, qword [rbp + 0x358]
mov rcx, rax
call sym.free
mov eax, dword [rbp + 0x36c]
mov dword [0x140008038], eax
mov eax, dword [rbp + 0x36c]
jmp 0x140002468
add rsp, 0x3f8
pop rbx
pop rbp
ret