Function at 0x180220dd0
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
push rdi
sub rsp, 0x70
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0x10]
mov qword [rsp], rax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 4]
mov dword [rsp + 8], eax
jmp 0x180220e2e
mov eax, dword [rsp + 0x90]
dec eax
mov dword [rsp + 0x90], eax
mov rax, qword [rsp + 0x88]
add rax, 0x40
mov qword [rsp + 0x88], rax
cmp dword [rsp + 0x90], 0
jbe 0x1802212d5
mov dword [rsp + 0xc], 0
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x30]
mov dword [rsp + 0x10], eax
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x1c]
and eax, 0x10
test eax, eax
je 0x180220e67
jmp 0x180220e0a
mov rax, qword [rsp + 0x88]
movsx eax, byte [rax + 0x20]
cmp eax, dword [rsp + 0xa0]
je 0x180220e95
mov rax, qword [rsp + 0x88]
movsx eax, byte [rax + 0x20]
mov ecx, dword [rsp + 0xa0]
neg ecx
cmp eax, ecx
jne 0x180220ea7
mov rax, qword [rsp + 0x88]
movsx eax, byte [rax + 0x20]
mov dword [rsp + 0xc], eax
jmp 0x180220ee5
mov rax, qword [rsp + 0x88]
movsx eax, byte [rax + 0x21]
cmp eax, dword [rsp + 0xa0]
je 0x180220ed5
mov rax, qword [rsp + 0x88]
movsx eax, byte [rax + 0x21]
mov ecx, dword [rsp + 0xa0]
neg ecx
cmp eax, ecx
jne 0x180220ee5
mov rax, qword [rsp + 0x88]
movsx eax, byte [rax + 0x21]
mov dword [rsp + 0xc], eax
cmp dword [rsp + 0xc], 0
je 0x180221080
mov eax, dword [rsp + 0xa0]
cmp dword [rsp + 0xc], eax
jne 0x180220fb3
mov dword [rsp + 0x14], 0
jmp 0x180220f15
mov eax, dword [rsp + 0x14]
inc eax
mov dword [rsp + 0x14], eax
mov eax, dword [rsp + 8]
cmp dword [rsp + 0x14], eax
jae 0x180220fae
mov eax, dword [rsp + 0x14]
mov rcx, qword [rsp]
mov rax, qword [rcx + rax*8]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x18]
mov eax, dword [rax]
mov ecx, dword [rsp + 0x10]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x98]
cmp dword [rsp + 0x20], eax
jge 0x180220fa9
mov eax, dword [rsp + 0x20]
neg eax
cmp eax, dword [rsp + 0x98]
jge 0x180220fa9
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x1c]
or eax, 0x10
mov rcx, qword [rsp + 0x88]
mov dword [rcx + 0x1c], eax
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x1c]
bts eax, 9
mov rcx, qword [rsp + 0x88]
mov dword [rcx + 0x1c], eax
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x18]
mov qword [rax + 0x28], rcx
jmp 0x180220fae
jmp 0x180220f0b
jmp 0x18022107b
mov eax, dword [rsp + 0xa0]
neg eax
cmp dword [rsp + 0xc], eax
jne 0x18022107b
mov dword [rsp + 0x24], 0
jmp 0x180220fda
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 8]
cmp dword [rsp + 0x24], eax
jae 0x18022107b
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp]
mov rax, qword [rcx + rax*8]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax]
mov ecx, dword [rsp + 0x10]
sub ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x28]
sub eax, dword [rcx + 4]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x98]
cmp dword [rsp + 0x30], eax
jge 0x180221076
mov eax, dword [rsp + 0x30]
neg eax
cmp eax, dword [rsp + 0x98]
jge 0x180221076
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x1c]
or eax, 0x10
mov rcx, qword [rsp + 0x88]
mov dword [rcx + 0x1c], eax
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x1c]
bts eax, 0xa
mov rcx, qword [rsp + 0x88]
mov dword [rcx + 0x1c], eax
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x28]
mov qword [rax + 0x28], rcx
jmp 0x18022107b
jmp 0x180220fd0
jmp 0x1802212d0
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x1c]
and eax, 0x40
test eax, eax
je 0x1802212d0
cmp dword [rsp + 0xa0], 2
jne 0x1802210b2
mov dword [rsp + 0x38], 0x80
mov dword [rsp + 0x3c], 0x100
jmp 0x1802210c2
mov dword [rsp + 0x38], 0x100
mov dword [rsp + 0x3c], 0x80
mov rax, qword [rsp + 0x88]
mov ecx, dword [rsp + 0x38]
mov eax, dword [rax + 0x1c]
and eax, ecx
test eax, eax
je 0x18022118d
mov dword [rsp + 0x34], 0
jmp 0x1802210ef
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 8]
cmp dword [rsp + 0x34], eax
jae 0x180221188
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp]
mov rax, qword [rcx + rax*8]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
mov ecx, dword [rsp + 0x10]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x98]
cmp dword [rsp + 0x48], eax
jge 0x180221183
mov eax, dword [rsp + 0x48]
neg eax
cmp eax, dword [rsp + 0x98]
jge 0x180221183
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x1c]
bts eax, 9
mov rcx, qword [rsp + 0x88]
mov dword [rcx + 0x1c], eax
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x28], rcx
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x1c]
or eax, 0x10
mov rcx, qword [rsp + 0x88]
mov dword [rcx + 0x1c], eax
jmp 0x180221188
jmp 0x1802210e5
jmp 0x18022125b
mov rax, qword [rsp + 0x88]
mov ecx, dword [rsp + 0x3c]
mov eax, dword [rax + 0x1c]
and eax, ecx
test eax, eax
je 0x18022125b
mov dword [rsp + 0x34], 0
jmp 0x1802211ba
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 8]
cmp dword [rsp + 0x34], eax
jae 0x18022125b
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp]
mov rax, qword [rcx + rax*8]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax]
mov ecx, dword [rsp + 0x10]
sub ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x50]
sub eax, dword [rcx + 4]
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x98]
cmp dword [rsp + 0x58], eax
jge 0x180221256
mov eax, dword [rsp + 0x58]
neg eax
cmp eax, dword [rsp + 0x98]
jge 0x180221256
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x1c]
bts eax, 0xa
mov rcx, qword [rsp + 0x88]
mov dword [rcx + 0x1c], eax
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 0x28], rcx
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x1c]
or eax, 0x10
mov rcx, qword [rsp + 0x88]
mov dword [rcx + 0x1c], eax
jmp 0x18022125b
jmp 0x1802211b0
mov rax, qword [rsp + 0x88]
cmp qword [rax + 0x28], 0
jne 0x1802212d0
mov dword [rsp + 0x34], 0
jmp 0x18022127e
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 8]
cmp dword [rsp + 0x34], eax
jae 0x1802212d0
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp]
mov rax, qword [rcx + rax*8]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov eax, dword [rax]
cmp dword [rsp + 0x10], eax
jl 0x1802212ce
mov rax, qword [rsp + 0x60]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x60]
add eax, dword [rcx + 4]
cmp dword [rsp + 0x10], eax
jg 0x1802212ce
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x60]
mov qword [rax + 0x28], rcx
jmp 0x1802212d0
jmp 0x180221274
jmp 0x180220e0a
add rsp, 0x70
pop rdi
ret