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

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x70]
cmp qword [rax + 8], 0
jne 0x18002186f
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x18], 0
jne 0x18002186f
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x30], 0
jne 0x18002186f
mov rax, qword [rsp + 0x70]
cmp dword [rax + 0x28], 0
jne 0x18002186f
mov rax, qword [rsp + 0x70]
cmp dword [rax + 0x24], 0
jne 0x18002186f
mov rax, qword [rsp + 0x70]
movzx eax, byte [rax + 0x40]
test eax, eax
je 0x180021879
mov eax, 0x1000000
jmp 0x180021ad0
cmp dword [rsp + 0x88], 1
jne 0x18002191f
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x70]
mov byte [rax + 0x10], 0
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0xffffffff
je 0x1800218d7
mov dword [rsp + 0x44], 1
jmp 0x1800218df
mov dword [rsp + 0x44], 0
mov rax, qword [rsp + 0x70]
movzx ecx, byte [rsp + 0x44]
mov byte [rax + 0x2c], cl
mov rax, qword [rsp + 0x70]
movzx eax, byte [rax + 0x2c]
test eax, eax
je 0x180021907
mov rax, qword [rsp + 0x70]
mov ecx, dword [rsp + 0x48]
mov dword [rax + 0x20], ecx
jmp 0x180021913
mov rax, qword [rsp + 0x70]
mov dword [rax + 0x20], 0
xor eax, eax
jmp 0x180021ad0
cmp dword [rsp + 0x88], 2
jne 0x1800219bc
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, qword [rsp + 0x70]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x70]
cmp qword [rax + 8], 0xffffffffffffffff
jne 0x180021992
mov rax, qword [rsp + 0x70]
mov qword [rax + 8], 0
mov eax, 0x200
jmp 0x180021ad0
mov rax, qword [rsp + 0x70]
mov byte [rax + 0x2c], 1
mov rax, qword [rsp + 0x70]
mov dword [rax + 0x20], 0
mov rax, qword [rsp + 0x70]
mov byte [rax + 0x10], 1
xor eax, eax
jmp 0x180021ad0
cmp dword [rsp + 0x88], 3
jne 0x180021acb
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x1800219e6
mov eax, 0x30000
jmp 0x180021ad0
cmp qword [rsp + 0x78], 0
je 0x180021a01
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
mov qword [rax + 0x30], rcx
jmp 0x180021aa4
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8d, 4
xor edx, edx
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, qword [rsp + 0x70]
mov qword [rcx + 0x18], rax
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x18], 0
jne 0x180021a49
mov eax, 0x300
jmp 0x180021ad0
mov eax, dword [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf001f
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, qword [rsp + 0x70]
mov qword [rcx + 0x30], rax
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x30], 0
jne 0x180021aa4
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x70]
mov qword [rax + 0x18], 0
mov eax, 0x300
jmp 0x180021ad0
mov rax, qword [rsp + 0x70]
mov byte [rax + 0x2c], 1
mov rax, qword [rsp + 0x70]
mov dword [rax + 0x38], 0
mov rax, qword [rsp + 0x70]
mov ecx, dword [rsp + 0x40]
mov dword [rax + 0x3c], ecx
xor eax, eax
jmp 0x180021ad0
mov eax, 0x10000
add rsp, 0x68
ret