Function at 0x140001f70
Capabilities:
Link function at runtime on windows
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov ebx, ecx
xor r12d, r12d
mov ecx, 0xbb8
mov qword [rax + 0x18], r12
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp ebx, 2
jl 0x14000229b
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140002293
call fcn.140005aa0
mov r8d, eax
xor edx, edx
mov ecx, 0x43a
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rcx, qword [0x14001f008]
lea rdx, [rsp + 0x80]
mov r13, rax
call fcn.140001660
test eax, eax
je 0x140002293
mov rdi, qword [rsp + 0x80]
lea r8d, [r12 + 4]
xor edx, edx
mov qword [rsp + 0x28], r12
xor r9d, r9d
mov ebp, r12d
mov r14d, r12d
movsxd rbx, dword [rdi + 0x3c]
add rbx, rdi
lea rcx, [rdx - 1]
mov eax, dword [rbx + 0x50]
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov r15, rax
test rax, rax
je 0x140002293
xor r9d, r9d
mov qword [rsp + 0x20], r12
xor r8d, r8d
lea edx, [r12 + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rsi, rax
test rax, rax
je 0x1400020f2
mov r8d, dword [rbx + 0x54]
mov rdx, rdi
mov rcx, rax
call fcn.1400039d0
cmp r12w, word [rbx + 6]
jae 0x1400020a8
nop dword [rax]
movsxd rax, dword [rdi + 0x3c]
add rax, rbp
mov edx, dword [rax + rdi + 0x11c]
mov ecx, dword [rax + rdi + 0x114]
add rdx, rdi
mov r8d, dword [rax + rdi + 0x118]
add rcx, rsi
call fcn.1400039d0
movzx eax, word [rbx + 6]
inc r14d
add rbp, 0x28
cmp r14d, eax
jl 0x140002070
mov edx, dword [rbx + 0x50]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r8d, dword [rbx + 0x50]
mov r14, rax
test r8, r8
je 0x1400020e4
test rax, rax
jne 0x1400020d9
call fcn.140005700
mov dword [rax], 0x16
call fcn.1400055e0
jmp 0x1400020e4
mov rdx, rsi
mov rcx, rax
call fcn.1400039d0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ebp, 1
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
je 0x140002293
mov eax, 0x5a4d
cmp word [r14], ax
jne 0x14000229b
movsxd r15, dword [r14 + 0x3c]
xor edx, edx
add r15, r14
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov rcx, r13
mov r8d, dword [r15 + 0x50]
call qword [0x14001f5b8]
mov r12, rax
test rax, rax
je 0x140002293
cmp dword [r15 + 0x94], 0
je 0x1400021c8
mov ebp, dword [r15 + 0x90]
add rbp, r14
mov eax, dword [rbp + 0xc]
test eax, eax
je 0x1400021c8
nop dword [rax]
mov ecx, eax
add rcx, r14
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x1400021c8
mov ebx, dword [rbp]
mov edi, dword [rbp + 0x10]
add rbx, r14
add rdi, r14
mov rax, qword [rbx]
test rax, rax
je 0x1400021b4
mov rcx, rsi
test rax, rax
jns 0x140002194
movzx edx, ax
jmp 0x14000219b
lea rdx, [rax + 2]
add rdx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
add rbx, 8
mov qword [rdi], rax
add rdi, 8
mov rax, qword [rbx]
test rax, rax
jne 0x140002187
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [rbp + 0x20]
add rbp, 0x14
test eax, eax
jne 0x140002160
mov r10d, dword [r15 + 0xb0]
mov rbx, r12
mov eax, dword [r15 + 0xb4]
add r10, r14
sub rbx, qword [r15 + 0x30]
xor esi, esi
lea rdi, [r10 - 8]
add rdi, rax
cmp r10, rdi
jae 0x14000224b
nop
mov r11d, dword [r10 + 4]
lea r9, [r10 + 8]
sub r11, 8
mov r8d, esi
shr r11, 1
test r11d, r11d
je 0x14000223f
nop word [rax + rax]
movzx edx, word [r9]
mov eax, edx
shr eax, 0xc
test eax, eax
je 0x140002233
cmp eax, 3
jne 0x14000224b
mov ecx, dword [r10]
and edx, 0xfff
lea rax, [r14 + rdx]
add qword [rcx + rax], rbx
inc r8d
add r9, 2
cmp r8d, r11d
jb 0x140002210
mov eax, dword [r10 + 4]
add r10, rax
cmp r10, rdi
jb 0x1400021f0
mov r9d, dword [r15 + 0x50]
mov r8, r14
mov rdx, r12
mov qword [rsp + 0x20], rsi
mov rcx, r13
call qword [0x14001f5a8]
test eax, eax
je 0x140002293
mov r9d, dword [r15 + 0x28]
xor r8d, r8d
mov qword [rsp + 0x30], rsi
add r9, r12
mov dword [rsp + 0x28], esi
xor edx, edx
mov rcx, r13
mov qword [rsp + 0x20], rsi
call qword [0x14001f5b0]
test rax, rax
je 0x140002293
xor eax, eax
jmp 0x1400022a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400022a0
mov eax, 1
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret