Function at 0x140051f00
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process filename
Resolve function by parsing pe exports

Disassembly:
push rbp
push rbx
push r13
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x14006e010]
xor rax, rsp
mov qword [rbp + 0x60], rax
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
mov qword [rsp + 0x40], rcx
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov qword [rsp + 0x38], rdx
mov eax, dword [rdx + 0x50]
mov rbx, qword [rdx + 0x30]
mov qword [rsp + 0x58], rax
mov eax, dword [rdx + 0x28]
lea rdx, str.___Exe_File_Prefer_Image_Base_at
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x60], rbx
call fcn.140053ac0
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_long_unsigned___int64_____ptr64]
mov rcx, rax
lea rdx, [0x140053c90]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rax, qword gs:[0x60]
xor r13d, r13d
mov r11, qword [rax + 0x18]
add r11, 0x20
mov r10, qword [r11]
cmp r10, r11
je 0x140052027
cmp word [r10 + 0x48], 0x3f
jae 0x14005201b
mov r9, qword [r10 + 0x50]
mov r8d, r13d
mov rcx, r13
cmp word [r9], r13w
je 0x140051fd4
cmp r8d, 0x3f
jae 0x140051fd4
movzx eax, word [r9 + rcx*2]
cmp ax, 0x61
jb 0x140051fc3
sub al, 0x20
mov byte [rbp + rcx - 0x60], al
inc r8d
inc rcx
cmp word [r9 + rcx*2], r13w
jne 0x140051fb0
add rcx, 0xfffffffffffffffc
cmp rcx, 0x40
jae 0x1400526b9
mov byte [rbp + rcx - 0x60], r13b
lea rdx, [rbp - 0x60]
movsx ecx, byte [rbp - 0x60]
mov eax, 0x268eeb8e
test ecx, ecx
je 0x14005201b
nop dword [rax + rax]
imul eax, eax, 0x11
lea rdx, [rdx + 1]
add eax, ecx
movsx ecx, byte [rdx]
test ecx, ecx
jne 0x140052000
cmp eax, 0x6eb4d9ec
je 0x140052167
mov r10, qword [r10]
cmp r10, r11
jne 0x140051f98
mov r11, r13
movsxd rax, dword [r11 + 0x3c]
mov r8d, r13d
mov qword [rsp + 0x1a8], rsi
mov qword [rsp + 0x1b0], rdi
mov qword [rsp + 0x1b8], r12
mov ecx, dword [rax + r11 + 0x88]
add rcx, r11
mov qword [rsp + 0x178], r14
mov qword [rsp + 0x170], r15
mov r15d, dword [rcx + 0x1c]
mov r12d, dword [rcx + 0x24]
add r15, r11
mov ebx, dword [rcx + 0x20]
add r12, r11
mov r14d, dword [rcx + 0x18]
add rbx, r11
test r14d, r14d
je 0x1400520c9
mov r9, rbx
nop dword [rax]
nop dword [rax + rax]
mov ecx, dword [r9]
mov eax, 0x268eeb8e
add rcx, r11
movsx edx, byte [rcx]
test edx, edx
je 0x1400520bd
imul eax, eax, 0x11
lea rcx, [rcx + 1]
add eax, edx
movsx edx, byte [rcx]
test edx, edx
jne 0x1400520a2
cmp eax, 0x15b812
je 0x140052170
inc r8d
add r9, 4
cmp r8d, r14d
jb 0x140052090
mov qword [rsp + 0x30], r13
mov rdi, r15
mov rsi, r12
mov r9, rbx
mov r8d, r13d
mov r10d, r14d
test r14d, r14d
je 0x140052125
nop dword [rax]
nop word [rax + rax]
mov ecx, dword [r9]
mov eax, 0x268eeb8e
add rcx, r11
movsx edx, byte [rcx]
test edx, edx
je 0x140052119
imul eax, eax, 0x11
lea rcx, [rcx + 1]
add eax, edx
movsx edx, byte [rcx]
test edx, edx
jne 0x140052102
cmp eax, 0x2caae01c
je 0x140052198
inc r8d
add r9, 4
cmp r8d, r10d
jb 0x1400520f0
xor eax, eax
mov r14, qword [rsp + 0x178]
mov r12, qword [rsp + 0x1b8]
mov rdi, qword [rsp + 0x1b0]
mov rsi, qword [rsp + 0x1a8]
mov r15, qword [rsp + 0x170]
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.140068590
add rsp, 0x180
pop r13
pop rbx
pop rbp
ret
mov r11, qword [r10 + 0x20]
jmp 0x14005202a
mov eax, r8d
mov rdi, r15
mov rsi, r12
mov r9, rbx
mov r8d, r13d
mov r10d, r14d
movzx ecx, word [r12 + rax*2]
mov eax, dword [r15 + rcx*4]
add rax, r11
mov qword [rsp + 0x30], rax
jmp 0x1400520f0
mov eax, r8d
movzx ecx, word [rsi + rax*2]
mov eax, dword [rdi + rcx*4]
add rax, r11
mov qword [rsp + 0x48], rax
je 0x140052125
mov r8d, r13d
test r14d, r14d
je 0x1400521f8
nop dword [rax + rax]
mov ecx, dword [rbx]
mov eax, 0x268eeb8e
add rcx, r11
movsx edx, byte [rcx]
test edx, edx
je 0x1400521ec
imul eax, eax, 0x11
lea rcx, [rcx + 1]
add eax, edx
movsx edx, byte [rcx]
test edx, edx
jne 0x1400521d1
cmp eax, 0x42895c96
je 0x14005229a
inc r8d
add rbx, 4
cmp r8d, r14d
jb 0x1400521c0
mov rbx, r13
mov rdi, qword [rsp + 0x60]
mov edx, 1
mov rcx, rbx
mov qword [0x140082950], rdi
mov qword [0x140082988], r13
mov qword [0x140082978], r13
mov dword [0x140082940], 1
call fcn.140001640
mov rdx, qword [0x140082988]
mov rcx, qword [0x140082978]
call rbx
xor edx, edx
mov rcx, rbx
call fcn.140001640
mov rbx, qword [rsp + 0x58]
mov esi, 0x3000
mov r8d, esi
mov dword [0x140082940], 0xffffffff
mov rdx, rbx
mov r9d, 4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r12, qword [rsp + 0x38]
mov r14, rax
test rax, rax
jne 0x1400522f1
cmp dword [r12 + 0xb0], r13d
je 0x1400522ae
mov rdx, rdi
lea rcx, str.____Allocate_Image_Base_At__x_Failure._n
call fcn.140001040
jmp 0x140052125
mov eax, r8d
movzx ecx, word [r12 + rax*2]
mov ebx, dword [r15 + rcx*4]
add rbx, r11
jmp 0x1400521fb
lea rcx, str.___Try_to_Allocate_Memory_for_New_Image_Base_n
call fcn.140001040
mov r9d, 4
mov r8d, esi
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r15, qword [rsp + 0x30]
mov r14, rax
mov qword [rsp + 0x30], r15
test rax, rax
jne 0x1400522f6
lea rcx, str.____Allocate_Memory_For_Image_Base_Failure._n
call fcn.140001040
jmp 0x140052125
mov r15, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov rcx, r14
mov r8d, dword [r12 + 0x54]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov edi, r13d
cmp r13w, word [r12 + 6]
jae 0x140052357
lea rbx, [r12 + 0x118]
nop
mov ecx, dword [rbx - 4]
mov eax, dword [rbx]
add rcx, r14
test eax, eax
je 0x14005233c
mov edx, dword [rbx + 4]
mov r8d, eax
add rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
jmp 0x140052347
mov r8d, dword [rbx - 8]
xor edx, edx
call fcn.140069364
movzx eax, word [r12 + 6]
inc edi
add rbx, 0x28
cmp edi, eax
jl 0x140052320
mov esi, dword [r12 + 0x90]
lea r10, [0x14006a850]
add rsi, 0x10
mov dword [rbp - 0x70], 0x5d337aab
mov dword [rbp - 0x6c], 0xf2f7e20a
mov r9d, r13d
mov dword [rbp - 0x68], 0x35f2531
mov r8, r13
mov qword [rsp + 0x58], r13
nop word [rax + rax]
mov eax, 0x92492493
mov ecx, r9d
imul r9d
add edx, r9d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 7
sub ecx, eax
movsxd rax, ecx
movzx eax, byte [rax + r10]
xor al, byte [rbp + r8 - 0x70]
mov byte [rbp + r8 - 0x20], al
lea rax, [r8 + 1]
cmp rax, 0x80
jae 0x1400526b3
inc r9d
mov byte [rbp + r8 - 0x1f], r13b
mov r8, rax
cmp rax, 0xc
jl 0x140052390
mov ecx, pe_nt_image_headers64
call fcn.140068890
mov r9d, 0xffffffff
mov dword [rsp + 0x28], 0x80
lea r8, [rbp - 0x20]
mov qword [rsp + 0x20], rax
xor edx, edx
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rdx, rbx
lea rcx, [rsp + 0x70]
call r15
mov r15, qword [rsp + 0x48]
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x70]
xor edx, edx
xor ecx, ecx
call r15
mov r10, qword [rsp + 0x58]
test r10, r10
je 0x140052125
movsxd rax, dword [r10 + 0x3c]
mov r9d, r13d
mov ecx, dword [rax + r10 + 0x88]
add rcx, r10
mov ebx, dword [rcx + 0x1c]
mov edi, dword [rcx + 0x24]
add rbx, r10
mov r8d, dword [rcx + 0x20]
add rdi, r10
mov r11d, dword [rcx + 0x18]
add r8, r10
test r11d, r11d
je 0x1400524a8
nop dword [rax + rax]
mov ecx, dword [r8]
mov eax, 0x268eeb8e
add rcx, r10
movsx edx, byte [rcx]
test edx, edx
je 0x14005249c
imul eax, eax, 0x11
inc rcx
add eax, edx
movsx edx, byte [rcx]
test edx, edx
jne 0x140052482
cmp eax, 0xf34d7838
je 0x140052557
inc r9d
add r8, 4
cmp r9d, r11d
jb 0x140052470
mov r12, r13
add rsi, r14
nop
cmp dword [rsi - 0x10], 0
jne 0x1400524bf
cmp dword [rsi], 0
je 0x1400525a7
mov edi, dword [rsi - 4]
mov ecx, pe_nt_image_headers64
add rdi, r14
mov qword [rsp + 0x60], r13
call fcn.140068890
mov r9d, 0xffffffff
mov dword [rsp + 0x28], 0x80
mov r8, rdi
mov qword [rsp + 0x20], rax
xor edx, edx
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rdx, rbx
lea rcx, [rbp - 0x80]
call qword [rsp + 0x30]
lea r9, [rsp + 0x60]
xor edx, edx
lea r8, [rbp - 0x80]
xor ecx, ecx
call r15
mov r15, qword [rsp + 0x60]
test r15, r15
je 0x140052125
mov eax, dword [rsi - 0x10]
test eax, eax
jne 0x140052529
mov eax, dword [rsi]
mov r13d, eax
xor edi, edi
mov eax, dword [rsi]
add r13, r14
add rax, r14
mov ebx, edi
mov qword [rsp + 0x40], rax
mov rax, qword [r13]
test rax, rax
je 0x140052596
mov rcx, r15
test rax, rax
js 0x14005256a
lea rdx, [rax + 2]
add rdx, r14
jmp 0x14005256d
mov eax, r9d
movzx ecx, word [rdi + rax*2]
mov r12d, dword [rbx + rcx*4]
add r12, r10
jmp 0x1400524ab
mov rdx, rax
call r12
test rax, rax
je 0x140052125
mov rcx, qword [rsp + 0x40]
inc rbx
mov qword [rdi + rcx], rax
lea rdi, [rbx*8]
mov rax, qword [rdi + r13]
test rax, rax
jne 0x140052546
mov r15, qword [rsp + 0x48]
add rsi, 0x14
xor r13d, r13d
jmp 0x1400524b0
mov rdi, qword [rsp + 0x38]
mov rbx, r14
sub rbx, qword [rdi + 0x30]
mov eax, dword [rdi + 0xb0]
test eax, eax
je 0x14005263a
test rbx, rbx
je 0x14005263a
cmp dword [r14 + rax], 0
lea r10, [r14 + rax]
je 0x14005263a
mov esi, 0xf000
mov r15d, 0x3000
nop dword [rax + rax]
mov r11d, dword [r10 + 4]
lea r9, [r10 + 8]
sub r11, 8
mov r8d, r13d
shr r11, 1
je 0x14005262d
nop dword [rax]
nop dword [rax + rax]
movzx ecx, word [r9]
mov edx, dword [r10]
mov eax, ecx
and eax, 0xfff
and cx, si
add rax, r14
cmp cx, r15w
jne 0x14005261e
add qword [rdx + rax], rbx
inc r8d
add r9, 2
movsxd rax, r8d
cmp rax, r11
jb 0x140052600
mov eax, dword [r10 + 4]
add r10, rax
cmp dword [r10], 0
jne 0x1400525e0
mov edx, dword [rdi + 0x54]
lea r9, [rsp + 0x68]
mov r8d, 2
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp r13w, word [rdi + 6]
jae 0x1400526a6
lea rbx, [rdi + 0x12c]
nop
mov r8d, dword [rbx]
lea r9, [rsp + 0x68]
mov ecx, dword [rbx - 0x18]
mov edx, dword [rbx - 0x1c]
add rcx, r14
sar r8d, 0x1f
mov eax, r8d
and r8d, 2
and eax, 0x20
add r8d, 2
add eax, 0x20
test dword [rbx], 0x20000000
cmovne r8d, eax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
movzx eax, word [rdi + 6]
lea rbx, [rbx + 0x28]
inc r13d
cmp r13d, eax
jl 0x140052660
mov rax, qword [rsp + 0x50]
add rax, r14
jmp 0x140052127
call fcn.1400686b8
int3
call fcn.1400686b8
int3