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

Disassembly:
push rdi
push r12
sub rsp, 0x2b8
mov rax, qword [0x18004f020]
xor rax, rsp
mov qword [rsp + 0x290], rax
lea rcx, str.ntdll.dll
call qword [0x18003a020]
mov rcx, rax
lea rdx, str.NtMapViewOfSection
mov r12, rax
call qword [0x18003a050]
lea rdx, str.NtQueryInformationProcess
mov rcx, r12
mov qword [0x180052b40], rax
call qword [0x18003a050]
lea rdx, str.LdrGetDllHandleEx
mov rcx, r12
mov qword [0x180052b30], rax
call qword [0x18003a050]
lea rdx, str.NtQueryVirtualMemory
mov rcx, r12
mov qword [0x180052b28], rax
call qword [0x18003a050]
lea rdx, str.NtQuerySystemInformation
mov rcx, r12
mov qword [0x180052b18], rax
call qword [0x18003a050]
lea rdx, str.NtUnmapViewOfSection
mov rcx, r12
mov qword [0x180052b38], rax
call qword [0x18003a050]
xor edi, edi
lea r8, [rsp + 0x48]
xor edx, edx
mov qword [0x180052b20], rax
mov qword [rsp + 0x20], rdi
lea r9d, [rdi + 0x30]
lea rcx, [rdi - 1]
call qword [0x180052b30]
test eax, eax
js 0x1800045f0
mov rax, qword [rsp + 0x68]
mov qword [0x180052af8], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x2d0], rbx
mov ebx, edi
mov qword [0x180052b00], rax
xor eax, eax
mov qword [rsp + 0x2e0], rsi
mov esi, 1
lock cmpxchg dword [0x180052b50], esi
je 0x180004337
cmp rbx, 0x20
jae 0x180004320
xor ecx, ecx
jmp 0x180004322
mov ecx, esi
call qword [0x18003a0c0]
inc rbx
xor eax, eax
lock cmpxchg dword [0x180052b50], esi
jne 0x180004316
cmp qword [0x180052b48], rdi
jne 0x180004622
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [0x18003a070]
mov qword [0x180052b48], rax
mov ecx, edi
test rax, rax
mov edx, 9
mov eax, edi
xchg dword [0x180052b50], eax
cmove ecx, edx
test ecx, ecx
jne 0x1800045e0
mov rbx, qword [0x180052b38]
lea r8, [0x180052b38]
mov rcx, rbx
lea rdx, [0x180002070]
call fcn.180005e70
mov rcx, rbx
call fcn.180006160
mov rbx, qword [0x180052b28]
lea r8, [0x180052b28]
mov rcx, rbx
lea rdx, [0x1800022b0]
call fcn.180005e70
mov rcx, rbx
call fcn.180006160
mov rbx, qword [0x180052b40]
lea r8, [0x180052b40]
mov rcx, rbx
lea rdx, [0x180002450]
call fcn.180005e70
test eax, eax
jne 0x1800045e0
mov rcx, rbx
call fcn.180006160
test eax, eax
jne 0x1800045e0
mov rbx, qword [0x180052b20]
lea r8, [0x180052b20]
mov rcx, rbx
lea rdx, [0x180002550]
call fcn.180005e70
test eax, eax
jne 0x1800045e0
mov rcx, rbx
call fcn.180006160
test eax, eax
jne 0x1800045e0
mov r8d, 0x104
mov word [rsp + 0x80], di
lea rdx, [rsp + 0x80]
mov rcx, r12
call qword [0x18003a040]
mov qword [rsp + 0x30], rdi
lea rcx, [rsp + 0x80]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov r8d, esi
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
call qword [0x18003a048]
mov rbx, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x180004619
xor edx, edx
mov qword [rsp + 0x2a0], r15
mov rcx, rax
call qword [0x18003a058]
xor ecx, ecx
mov edx, eax
mov r8d, 0x3000
mov esi, eax
lea r9d, [rcx + 0x40]
call qword [0x18003a010]
mov r15, rax
mov rcx, rbx
test rax, rax
je 0x1800044e9
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rdi
mov r8d, esi
mov rdx, rax
call qword [0x18003a038]
test eax, eax
jne 0x1800044fb
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [0x18003a008]
mov rcx, rbx
call qword [0x18003a018]
mov qword [0x180052b10], rdi
jmp 0x1800045d8
mov qword [rsp + 0x2d8], rbp
mov rcx, rbx
mov qword [rsp + 0x2b0], r13
mov qword [rsp + 0x2a8], r14
call qword [0x18003a018]
movsxd r14, dword [r12 + 0x3c]
mov esi, edi
add r14, r12
mov qword [0x180052b10], r15
mov ebp, dword [r14 + 0x88]
movzx r13d, word [r14 + 0x14]
mov ebx, dword [rbp + r12 + 0x1c]
add rbx, r12
cmp dword [rbp + r12 + 0x14], edi
jbe 0x1800045c0
nop dword [rax + rax]
movzx r11d, word [r14 + 6]
lea rax, [r14 + 0x18]
mov r10d, dword [rbx]
add rax, r13
mov r9d, edi
test r11d, r11d
je 0x18000458b
mov r8d, dword [rax + 0xc]
cmp r8d, r10d
ja 0x18000457f
mov edx, dword [rax + 8]
add edx, r8d
cmp r10d, edx
jb 0x18000460b
inc r9d
add rax, 0x28
cmp r9d, r11d
jl 0x180004567
mov ecx, edi
mov edx, ecx
lea rcx, [r12 + r10]
add rdx, r15
movzx eax, word [rdx]
cmp word [rcx], ax
je 0x1800045b3
mov eax, 0xb848
mov qword [rdx + 2], rcx
mov word [rdx], ax
mov eax, 0xe0ff
mov word [rdx + 0xa], ax
inc esi
add rbx, 4
cmp esi, dword [rbp + r12 + 0x14]
jb 0x180004550
mov r14, qword [rsp + 0x2a8]
mov r13, qword [rsp + 0x2b0]
mov rbp, qword [rsp + 0x2d8]
mov r15, qword [rsp + 0x2a0]
mov rbx, qword [rsp + 0x2d0]
mov rsi, qword [rsp + 0x2e0]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.180007ac0
add rsp, 0x2b8
pop r12
pop rdi
ret
mov ecx, dword [rax + 0x14]
sub ecx, r8d
add ecx, r10d
jmp 0x18000458d
mov qword [0x180052b10], rdi
jmp 0x1800045e0
xchg dword [0x180052b50], edi
jmp 0x1800045e0