Function at 0x140029ec0
Capabilities:
Map section object
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x578
mov esi, edx
mov rdi, rcx
mov rax, qword [0x140062030]
xor rax, rsp
mov qword [rsp + 0x570], rax
mov rdx, qword [rcx]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0x30
lea r9, [rsp + 0x98]
mov rcx, 0xffffffffffffffff
xor r8d, r8d
call sub.ntdll.dll_NtQueryVirtualMemory
test eax, eax
js 0x14002a7ed
test byte [rsp + 0xc3], 1
je 0x14002a801
mov r8, qword [rdi]
lea rcx, [0x140062060]
mov rax, qword [0x140062060]
mov rax, qword [rax + 0x58]
lea rbx, [rsp + 0x150]
mov rdx, rbx
call qword [0x140068010]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14002a7ed
movzx eax, word [rsp + 0x150]
test ax, ax
je 0x14002a7ed
movzx edx, ax
mov eax, edx
and eax, 0xfffffffe
add rax, rcx
add rax, 0xfffffffffffffffe
mov r8, rax
cmp dx, 2
jb 0x140029f9b
mov r8, rax
cmp word [r8], 0x5c
je 0x140029f9b
add r8, 0xfffffffffffffffe
cmp r8, rcx
jae 0x140029f8b
add r8, 2
lea rdx, [rsp + 0x88]
mov qword [rdx + 8], r8
sub eax, r8d
add eax, 2
mov word [rdx], ax
mov word [rdx + 2], ax
movups xmm0, xmmword [0x140054810]
lea rcx, [rsp + 0x70]
movaps xmmword [rcx], xmm0
mov r13b, 1
mov r8b, 1
call sub.ntdll.dll_RtlCompareUnicodeString
xor r12d, r12d
test eax, eax
je 0x14002a016
lea rcx, [0x140062d98]
call sub.ntdll.dll_RtlAcquireSRWLockShared
lea rcx, [0x140062d90]
lea rdx, [0x140028e40]
xor ebx, ebx
xor r8d, r8d
xor r9d, r9d
call fcn.140052640
mov r15, qword [0x140062d88]
test r15, r15
je 0x14002a08a
cmp dword [r15], 3
jge 0x14002a01e
xor ebx, ebx
jmp 0x14002a08a
xor r15d, r15d
jmp 0x14002a0c0
mov eax, dword [0x140062db0]
mov rcx, qword gs:[0x30]
cmp eax, dword [rcx + 0x48]
je 0x14002a078
cmp byte [0x140062db4], 1
jne 0x14002a078
mov eax, dword [0x1400624b8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp byte [rax + 8], 0
jne 0x14002a05c
call fcn.14002f238
mov eax, dword [0x1400624b8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + 0x10]
jmp 0x14002a07d
call fcn.140029e70
lea rbx, [r15 + 8]
test rax, rax
je 0x14002a149
mov rdx, qword [rdi]
lea rcx, [rsp + 0x88]
mov r8, rbx
call fcn.14002a860
mov ebp, eax
xor r15d, r15d
lea rcx, [0x140062d98]
call sub.ntdll.dll_RtlReleaseSRWLockShared
cmp ebp, 4
je 0x14002a67a
cmp ebp, 1
je 0x14002a0c7
test ebp, ebp
jne 0x14002a139
xor ebp, ebp
jmp 0x14002a686
mov eax, dword [0x140062db0]
mov rcx, qword gs:[0x30]
cmp eax, dword [rcx + 0x48]
je 0x14002a121
cmp byte [0x140062db4], 1
jne 0x14002a121
mov eax, dword [0x1400624b8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp byte [rax + 8], 0
jne 0x14002a105
call fcn.14002f238
mov eax, dword [0x1400624b8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rbx, qword [rax + 0x10]
jmp 0x14002a129
call fcn.140029e70
mov rbx, rax
test rbx, rbx
je 0x14002a139
cmp qword [rbx + 0x50], 0
je 0x14002a470
xor r13d, r13d
xor ebp, ebp
mov r12d, 1
jmp 0x14002a686
mov rax, qword [r15 + 0x10]
xor ecx, ecx
call qword [0x140068010]
mov r14, rax
and r14, 0xfffffffffffffffc
je 0x14002a08a
movzx eax, word [r14]
cmp eax, 0x5a4d
jne 0x14002a08a
movsxd rax, dword [r14 + 0x3c]
cmp dword [r14 + rax], 0x4550
jne 0x14002a08a
movzx ecx, word [r14 + rax + 0x18]
cmp ecx, 0x20b
jne 0x14002a08a
mov r8d, dword [r14 + rax + 0x50]
cmp r8d, 0x148
jb 0x14002a08a
mov ecx, dword [r14 + rax + 0x84]
cmp ecx, 0x10
mov edx, 0x10
cmovb edx, ecx
cmp edx, 2
jb 0x14002a08a
mov eax, dword [r14 + rax + 0x90]
cmp eax, r8d
jb 0x14002a08a
cmp dword [r14 + rax], 0
je 0x14002a08a
dec r8d
add rax, r14
xor ebp, ebp
mov dword [rsp + 0x60], r8d
test bpl, bpl
je 0x14002a203
cmp dword [rax + 0x14], 0
lea rax, [rax + 0x14]
mov bpl, 1
jne 0x14002a1ec
jmp 0x14002a32d
mov edx, dword [rax + 0xc]
cmp r8d, edx
jae 0x14002a261
mov qword [rsp + 0x50], rax
add rdx, r14
lea rbp, [rsp + 0xd8]
mov rcx, rbp
call sub.ntdll.dll_RtlInitAnsiString
lea rcx, [rsp + 0xc8]
mov rdx, rbp
mov r8b, 1
call sub.ntdll.dll_RtlAnsiStringToUnicodeString
test eax, eax
js 0x14002a276
movzx ecx, word [rsp + 0xc8]
mov rdx, qword [rsp + 0xd0]
mov eax, ecx
and eax, 0xfffffffe
add rax, rdx
add rax, 0xfffffffffffffffe
cmp cx, 2
jae 0x14002a29d
mov rcx, rax
jmp 0x14002a2af
xor ebp, ebp
cmp dword [rax + 0x14], 0
lea rax, [rax + 0x14]
jne 0x14002a1ec
jmp 0x14002a08a
mov dword [rsp + 0xc8], 0
mov qword [rsp + 0xd0], 0
mov rax, 0xfffffffffffffffe
mov rcx, 0xfffffffffffffffe
jmp 0x14002a2af
mov rcx, rax
cmp word [rcx], 0x5c
je 0x14002a2af
add rcx, 0xfffffffffffffffe
cmp rcx, rdx
jae 0x14002a2a0
add rcx, 2
mov qword [rsp + 0xe0], rcx
sub eax, ecx
add eax, 2
mov word [rsp + 0xd8], ax
mov word [rsp + 0xda], ax
lea rcx, [rsp + 0x88]
lea rdx, [rsp + 0xd8]
mov r8b, 1
call sub.ntdll.dll_RtlCompareUnicodeString
mov dword [rsp + 0x58], eax
test eax, eax
sete bpl
cmp qword [rsp + 0xd0], 0
je 0x14002a30a
lea rcx, [rsp + 0xc8]
call sub.ntdll.dll_RtlFreeUnicodeString
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x14], 0
lea rax, [rax + 0x14]
mov r8d, dword [rsp + 0x60]
jne 0x14002a1ec
cmp dword [rsp + 0x58], 0
jne 0x14002a08a
mov rcx, qword [0x140062d80]
xor eax, eax
lea r8, [rsp + 0xc8]
mov qword [r8], rax
mov qword [rsp + 0xd8], rax
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x48], 4
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 2
mov rdx, 0xffffffffffffffff
xor r9d, r9d
call sub.ntdll.dll_NtMapViewOfSection
test eax, eax
jns 0x14002a397
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov ecx, eax
call sub.ntdll.dll_RtlSetLastWin32Error
mov rax, qword [rsp + 0xc8]
test rax, rax
je 0x14002a4cc
mov ecx, dword [rax + 0x2c]
test ecx, ecx
jne 0x14002a3bb
mov dword [rax + 0x2c], 0x58
mov ecx, 0x58
mov ecx, ecx
mov edx, 0x1000
sub rdx, rcx
add rax, rcx
mov ecx, 2
cmovne rcx, rax
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], rdx
cmp rdx, 2
jb 0x14002a3ea
test rax, rax
je 0x14002a83b
mov rax, qword [rsp + 0x68]
mov rcx, rax
shr rcx, 1
mov qword [rsp + 0x58], rcx
xor ecx, ecx
cmp rax, 2
jb 0x14002a4db
lea r14, [rsp + 0xd8]
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x50], rcx
lea rdx, [rax + rcx*2]
mov rcx, r14
call sub.ntdll.dll_RtlInitUnicodeString
cmp word [rsp + 0xd8], 0
je 0x14002a4d6
mov rbp, r14
mov rcx, r14
lea rdx, [rsp + 0x150]
mov r8b, 1
call sub.ntdll.dll_RtlCompareUnicodeString
test eax, eax
je 0x14002a572
movzx eax, word [rsp + 0xda]
shr rax, 1
mov rcx, qword [rsp + 0x50]
add rcx, rax
cmp rcx, qword [rsp + 0x58]
mov r14, rbp
jb 0x14002a40e
jmp 0x14002a4db
lea r14, [rbx + 0x30]
cmp qword [rbx + 0x38], 0
je 0x14002a492
mov rcx, r14
call sub.ntdll.dll_RtlFreeUnicodeString
mov dword [rbx + 0x30], 0
mov qword [rbx + 0x38], 0
mov r12d, 1
lea rdx, [rsp + 0x88]
mov ecx, 1
mov r8, r14
call sub.ntdll.dll_RtlDuplicateUnicodeString
test eax, eax
jns 0x14002a4c0
mov dword [rbx + 0x30], 0
mov qword [rbx + 0x38], 0
mov byte [rbx + 0x10], 1
xor r13d, r13d
jmp 0x14002a0c0
call sub.ntdll.dll_RtlGetLastWin32Error
jmp 0x14002a572
mov rcx, qword [rsp + 0x50]
movzx r8d, word [rsp + 0x150]
mov r9, rcx
lea rax, [r8 + rcx*2]
add rax, 4
mov rcx, qword [rsp + 0x68]
and rcx, 0xfffffffffffffffe
cmp rax, rcx
ja 0x14002a572
mov rcx, qword [rsp + 0x58]
sub rcx, r9
jb 0x14002a846
mov rdx, qword [rsp + 0x60]
test rdx, rdx
setne al
mov r10, qword [rsp + 0x58]
xor r10, r9
cmp rcx, 0xffffffffffffffff
setne cl
or r10, rdx
je 0x14002a532
and al, cl
je 0x14002a83b
mov rax, qword [rsp + 0x60]
test rax, rax
lea r14, [rax + r9*2]
mov eax, 2
cmove r14, rax
mov rdx, qword [rsp + 0x158]
mov rcx, r14
call sub.ntdll.dll_memcpy
movzx ecx, word [rsp + 0x150]
and ecx, 0xfffffffe
add rcx, r14
mov r8d, 2
xor edx, edx
call sub.ntdll.dll_memset
mov rdx, qword [rsp + 0xc8]
test rdx, rdx
je 0x14002a59d
mov rcx, 0xffffffffffffffff
call sub.ntdll.dll_NtUnmapViewOfSection
test eax, eax
jns 0x14002a59d
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov ecx, eax
call sub.ntdll.dll_RtlSetLastWin32Error
mov rdx, qword [rdi]
lea rcx, [rsp + 0x88]
mov r8, rbx
call fcn.14002a860
mov ebp, eax
and eax, 0xfffffffe
cmp eax, 2
jne 0x14002a609
mov r14, qword [rdi]
mov bpl, 1
test r14, r14
je 0x14002a611
movzx eax, word [r14]
cmp eax, 0x5a4d
jne 0x14002a611
movsxd rax, dword [r14 + 0x3c]
lea rcx, [r14 + rax]
mov qword [rsp + 0x50], rcx
cmp dword [r14 + rax], 0x4550
jne 0x14002a618
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x14002a618
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x50], 0x148
setb bpl
jmp 0x14002a618
mov r15b, 1
jmp 0x14002a0a2
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0xc8], rbx
mov rax, qword [r15 + 0x18]
lea rbx, [rsp + 0xd8]
mov rcx, rbx
call qword [0x140068010]
mov eax, dword [rbx + 4]
mov dword [rsp + 0xd0], eax
test bpl, bpl
jne 0x14002a827
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x28]
add r14, rax
lea rcx, [rsp + 0xc8]
mov rdx, r14
call fcn.14002af20
test al, al
je 0x14002a827
lea rcx, [0x140062d98]
call sub.ntdll.dll_RtlReleaseSRWLockShared
mov r15b, 1
mov r12d, 2
mov bpl, 1
xor r13d, r13d
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
cmp qword [rax + 0x30], 0
je 0x14002a7e8
mov rbx, qword [rdi]
lea rdx, [rsp + 0x150]
lea r8, [rsp + 0xc8]
mov ecx, 1
call sub.ntdll.dll_RtlDuplicateUnicodeString
test eax, eax
jns 0x14002a6d6
mov dword [rsp + 0xc8], 0
mov qword [rsp + 0xd0], 0
mov eax, dword [0x140062db0]
mov rcx, qword gs:[0x30]
cmp eax, dword [rcx + 0x48]
je 0x14002a730
cmp byte [0x140062db4], 1
jne 0x14002a730
mov eax, dword [0x1400624b8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp byte [rax + 8], 0
jne 0x14002a714
call fcn.14002f238
mov eax, dword [0x1400624b8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov r14, qword [rax + 0x10]
jmp 0x14002a738
call fcn.140029e70
mov r14, rax
test r14, r14
je 0x14002a784
cmp qword [r14 + 0x50], 0
jne 0x14002a7a0
lea r15, [r14 + 0x40]
cmp qword [r14 + 0x48], 0
je 0x14002a757
mov rcx, r15
call sub.ntdll.dll_RtlFreeUnicodeString
movups xmm0, xmmword [rsp + 0xc8]
movups xmmword [r15], xmm0
mov dword [rsp + 0xc8], 0
mov qword [rsp + 0xd0], 0
mov qword [r14 + 0x50], rbx
mov dword [r14 + 0x70], r12d
jmp 0x14002a7d0
lea rcx, [0x140062060]
mov rax, qword [0x140062060]
mov rax, qword [rax + 0x50]
call qword [0x140068010]
test al, al
je 0x14002a7d0
mov byte [rsp + 0x28], r15b
mov dword [rsp + 0x20], r12d
lea r14, [rsp + 0xd8]
lea rdx, [rsp + 0xc8]
mov rcx, r14
mov r8, rbx
mov r9d, esi
call fcn.14002b4c0
mov rcx, r14
call fcn.140027bb0
cmp qword [rsp + 0xd0], 0
je 0x14002a7e8
lea rcx, [rsp + 0xc8]
call sub.ntdll.dll_RtlFreeUnicodeString
or r13b, bpl
jne 0x14002a801
mov rdx, qword [rdi]
mov rcx, 0xffffffffffffffff
call sub.ntdll.dll_NtUnmapViewOfSection
mov esi, 0xc0000022
mov rcx, qword [rsp + 0x570]
xor rcx, rsp
call fcn.14002fa70
mov eax, esi
add rsp, 0x578
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x140062d98]
call sub.ntdll.dll_RtlReleaseSRWLockShared
mov r15b, 1
jmp 0x14002a0c0
int3
int3