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

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x30], 0
cmp qword [rsp + 0x98], 0
je 0x180022dae
mov rax, qword [rsp + 0x98]
mov byte [rax], 0
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x180022dcd
mov eax, 0xffffff9a
jmp 0x180023329
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x80]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x180022df0
mov eax, 0xffffff9a
jmp 0x180023329
mov rax, qword [rsp + 0x28]
cmp qword [rax], 0
jne 0x180022e05
mov eax, 0xffffff9c
jmp 0x180023329
cmp dword [rsp + 0x90], 0
jne 0x180022e16
xor eax, eax
jmp 0x180023329
mov rcx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x88]
mov qword [rcx + 0x18], rax
mov rcx, qword [rsp + 0x28]
mov eax, dword [rsp + 0x90]
mov dword [rcx + 0x20], eax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x80]
cmp dword [rsp + 0x90], eax
jbe 0x180022e5d
mov rcx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x80]
mov dword [rcx + 0x20], eax
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x20], 0
jbe 0x180023318
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x10], 0
jne 0x180022fed
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x7c], 0
jbe 0x180022fed
mov dword [rsp + 0x3c], 0x4000
mov rcx, qword [rsp + 0x28]
mov eax, dword [rsp + 0x3c]
cmp dword [rcx + 0x7c], eax
jae 0x180022eac
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x7c]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jne 0x180022ed0
cmp qword [rsp + 0x98], 0
je 0x180022ec9
mov rax, qword [rsp + 0x98]
mov byte [rax], 1
xor eax, eax
jmp 0x180023329
mov rax, qword [rsp + 0x28]
mov edx, dword [rax + 0x60]
mov rax, qword [rsp + 0x28]
add edx, dword [rax + 0x94]
xor r8d, r8d
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x88]
call fcn.180021520
test eax, eax
je 0x180022f05
mov eax, 0xffffffff
jmp 0x180023329
mov edx, dword [rsp + 0x3c]
mov r9, qword [rsp + 0x28]
mov r9, qword [r9 + 0x88]
mov r8d, 1
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx]
call fcn.180021640
cmp rax, 1
je 0x180022f38
mov eax, 0xffffffff
jmp 0x180023329
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax + 0x60]
add ecx, dword [rsp + 0x3c]
mov rax, qword [rsp + 0x28]
mov dword [rax + 0x60], ecx
mov rcx, qword [rsp + 0x28]
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rcx + 0x7c]
sub ecx, eax
mov rax, qword [rsp + 0x28]
mov dword [rax + 0x7c], ecx
mov rcx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rcx + 8], rax
mov rcx, qword [rsp + 0x28]
mov eax, dword [rsp + 0x3c]
mov dword [rcx + 0x10], eax
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax + 0x98]
test eax, eax
je 0x180022fed
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], 0
jmp 0x180022fb2
mov eax, dword [rsp + 0x48]
add eax, 1
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x3c]
cmp dword [rsp + 0x48], eax
jae 0x180022fed
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
add rcx, 0x9c
mov rax, qword [rsp + 0x40]
movzx edx, byte [rax + rdx]
call fcn.180020230
movzx r11d, al
mov ecx, dword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov byte [rax + rcx], r11b
jmp 0x180022fa7
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0xa8]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x10]
cmp dword [rsp + 0x38], eax
jbe 0x180023016
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jbe 0x1800230cc
mov eax, dword [rsp + 0x38]
sub eax, 1
mov ecx, eax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
movzx eax, byte [rcx + rax]
mov byte [rsp + 0x4c], al
mov rcx, qword [rsp + 0x28]
mov eax, dword [rsp + 0x38]
mov ecx, dword [rcx + 0x80]
sub ecx, eax
mov rax, qword [rsp + 0x28]
mov dword [rax + 0x80], ecx
mov rcx, qword [rsp + 0x28]
mov eax, dword [rsp + 0x38]
mov ecx, dword [rcx + 0x10]
sub ecx, eax
mov rax, qword [rsp + 0x28]
mov dword [rax + 0x10], ecx
mov ecx, dword [rsp + 0x38]
mov rax, qword [rsp + 0x28]
add rcx, qword [rax + 8]
mov rax, qword [rsp + 0x28]
mov qword [rax + 8], rcx
mov rcx, qword [rsp + 0x28]
mov eax, dword [rsp + 0x38]
mov ecx, dword [rcx + 0xa8]
sub ecx, eax
mov rax, qword [rsp + 0x28]
mov dword [rax + 0xa8], ecx
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0xa8], 0
jne 0x1800230cc
movsx ecx, byte [rsp + 0x4c]
mov rax, qword [rsp + 0x28]
movsx eax, byte [rax + 0xac]
cmp ecx, eax
je 0x1800230cc
mov eax, 0xffffff96
jmp 0x180023329
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x90], 0
jne 0x180023234
mov rcx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x10]
cmp dword [rcx + 0x20], eax
jae 0x1800230fe
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x20]
mov dword [rsp + 0x54], eax
jmp 0x18002310a
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x50], 0
jmp 0x18002311f
mov eax, dword [rsp + 0x50]
add eax, 1
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x54]
cmp dword [rsp + 0x50], eax
jae 0x18002314e
mov r8d, dword [rsp + 0x50]
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov edx, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x18]
movzx eax, byte [r8 + rax]
mov byte [rdx + rcx], al
jmp 0x180023114
mov r8d, dword [rsp + 0x54]
mov rdx, qword [rsp + 0x28]
mov rdx, qword [rdx + 0x18]
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax + 0x74]
call fcn.18001fec0
mov r11d, eax
mov rax, qword [rsp + 0x28]
mov dword [rax + 0x74], r11d
mov rcx, qword [rsp + 0x28]
mov eax, dword [rsp + 0x54]
mov ecx, dword [rcx + 0x80]
sub ecx, eax
mov rax, qword [rsp + 0x28]
mov dword [rax + 0x80], ecx
mov rcx, qword [rsp + 0x28]
mov eax, dword [rsp + 0x54]
mov ecx, dword [rcx + 0x10]
sub ecx, eax
mov rax, qword [rsp + 0x28]
mov dword [rax + 0x10], ecx
mov rcx, qword [rsp + 0x28]
mov eax, dword [rsp + 0x54]
mov ecx, dword [rcx + 0x20]
sub ecx, eax
mov rax, qword [rsp + 0x28]
mov dword [rax + 0x20], ecx
mov ecx, dword [rsp + 0x54]
mov rax, qword [rsp + 0x28]
add rcx, qword [rax + 0x18]
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x18], rcx
mov ecx, dword [rsp + 0x54]
mov rax, qword [rsp + 0x28]
add rcx, qword [rax + 8]
mov rax, qword [rsp + 0x28]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax + 0x24]
add ecx, dword [rsp + 0x54]
mov rax, qword [rsp + 0x28]
mov dword [rax + 0x24], ecx
mov ecx, dword [rsp + 0x54]
mov eax, dword [rsp + 0x30]
add eax, ecx
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x80], 0
jne 0x18002322f
cmp qword [rsp + 0x98], 0
je 0x18002322f
mov rax, qword [rsp + 0x98]
mov byte [rax], 1
jmp 0x180023313
mov dword [rsp + 0x64], 2
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x24]
mov dword [rsp + 0x6c], eax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x28]
add rcx, 8
mov edx, dword [rsp + 0x64]
call fcn.180020940
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x24]
mov dword [rsp + 0x68], eax
mov ecx, dword [rsp + 0x6c]
mov eax, dword [rsp + 0x68]
sub eax, ecx
mov dword [rsp + 0x60], eax
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax + 0x74]
call fcn.18001fec0
mov r11d, eax
mov rax, qword [rsp + 0x28]
mov dword [rax + 0x74], r11d
mov rcx, qword [rsp + 0x28]
mov eax, dword [rsp + 0x60]
mov ecx, dword [rcx + 0x80]
sub ecx, eax
mov rax, qword [rsp + 0x28]
mov dword [rax + 0x80], ecx
mov eax, dword [rsp + 0x6c]
mov ecx, dword [rsp + 0x68]
sub ecx, eax
mov eax, dword [rsp + 0x30]
add eax, ecx
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x34], 1
je 0x1800232ee
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x80], 0
jne 0x18002330a
cmp qword [rsp + 0x98], 0
je 0x180023304
mov rax, qword [rsp + 0x98]
mov byte [rax], 1
mov eax, dword [rsp + 0x30]
jmp 0x180023329
cmp dword [rsp + 0x34], 0
je 0x180023313
jmp 0x180023318
jmp 0x180022e5d
cmp dword [rsp + 0x34], 0
jne 0x180023325
mov eax, dword [rsp + 0x30]
jmp 0x180023329
mov eax, dword [rsp + 0x34]
add rsp, 0x78
ret