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

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
lea rdi, [rsp + 0x20]
mov ecx, 0x14
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x80]
mov dword [rsp + 0x20], 0
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x4c]
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x48]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x50]
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x90], 0
jne 0x180223351
jmp 0x180223917
mov rax, qword [rsp + 0x80]
mov eax, dword [rax]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x180223381
cmp dword [rsp + 0x50], 1
je 0x18022355a
cmp dword [rsp + 0x50], 2
je 0x1802237db
jmp 0x180223917
mov edx, 2
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax + 0xc8]
call fcn.18016d040
test eax, eax
jne 0x1802233c2
mov r8d, 1
lea rdx, [rsp + 0x34]
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax + 0xc8]
call fcn.18016d260
cmp eax, 1
je 0x1802233c7
jmp 0x18022394a
movzx eax, byte [rsp + 0x34]
and eax, 0x1f
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x30], eax
movzx eax, byte [rsp + 0x34]
and eax, 0x80
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x34], eax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x30]
mov ecx, 1
mov dword [rsp + 0x54], ecx
movzx ecx, al
mov eax, dword [rsp + 0x54]
shl eax, cl
sub eax, 0x100
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x38], eax
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x30], 0x10
jbe 0x18022342f
jmp 0x18022394a
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x3c], 9
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x34], 0
je 0x180223456
mov dword [rsp + 0x58], 0x101
jmp 0x18022345e
mov dword [rsp + 0x58], 0x100
mov eax, dword [rsp + 0x58]
sub eax, 0x100
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x40], eax
mov dword [rsp + 0x2c], 0
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x30]
cmp dword [rax + 0x3c], ecx
jae 0x1802234ba
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x3c]
mov ecx, 1
mov dword [rsp + 0x5c], ecx
movzx ecx, al
mov eax, dword [rsp + 0x5c]
shl eax, cl
sub eax, 0x100
mov dword [rsp + 0x60], eax
jmp 0x1802234cb
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x38]
inc eax
mov dword [rsp + 0x60], eax
mov rax, qword [rsp + 0x80]
mov ecx, dword [rsp + 0x60]
mov dword [rax + 0x44], ecx
mov rcx, qword [rsp + 0x80]
call fcn.180224180
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jl 0x1802234fc
cmp dword [rsp + 0x44], 0xff
jle 0x180223501
jmp 0x18022394a
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x28], eax
cmp qword [rsp + 0x88], 0
je 0x180223530
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x88]
movzx edx, byte [rsp + 0x24]
mov byte [rcx + rax], dl
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x90]
cmp dword [rsp + 0x20], eax
jb 0x18022354c
jmp 0x180223917
mov rax, qword [rsp + 0x80]
mov dword [rax], 1
mov rcx, qword [rsp + 0x80]
call fcn.180224180
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
jge 0x180223577
jmp 0x18022394a
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0x100
jne 0x1802235c4
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x34], 0
je 0x1802235c4
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x40], 0
mov rax, qword [rsp + 0x80]
mov byte [rax + 0x20], 1
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x24], 0
jmp 0x18022355a
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x4c], 0x100
jb 0x180223756
mov eax, dword [rsp + 0x4c]
sub eax, 0x100
mov rcx, qword [rsp + 0x80]
cmp eax, dword [rcx + 0x40]
jb 0x180223686
mov eax, dword [rsp + 0x4c]
sub eax, 0x100
mov rcx, qword [rsp + 0x80]
cmp eax, dword [rcx + 0x40]
jbe 0x18022360f
jmp 0x18022394a
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x78]
mov rcx, qword [rsp + 0x80]
cmp rax, qword [rcx + 0x80]
jb 0x180223641
mov rcx, qword [rsp + 0x80]
call fcn.1802243c0
test eax, eax
jge 0x180223641
jmp 0x18022394a
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x78]
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 0x70]
movzx edx, byte [rsp + 0x24]
mov byte [rcx + rax], dl
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x78]
inc eax
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x78], eax
xor eax, eax
test eax, eax
jne 0x18022360f
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0x100
jb 0x180223756
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x58], 0
jne 0x1802236a8
jmp 0x18022394a
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x78]
mov rcx, qword [rsp + 0x80]
cmp rax, qword [rcx + 0x80]
jb 0x1802236da
mov rcx, qword [rsp + 0x80]
call fcn.1802243c0
test eax, eax
jge 0x1802236da
jmp 0x18022394a
mov eax, dword [rsp + 0x4c]
sub eax, 0x100
mov eax, eax
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 0x60]
mov rdx, qword [rsp + 0x80]
mov edx, dword [rdx + 0x78]
mov r8, qword [rsp + 0x80]
mov r8, qword [r8 + 0x70]
movzx eax, byte [rcx + rax]
mov byte [r8 + rdx], al
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x78]
inc eax
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x78], eax
xor eax, eax
test eax, eax
jne 0x1802236a8
mov eax, dword [rsp + 0x4c]
sub eax, 0x100
mov eax, eax
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 0x58]
movzx eax, word [rcx + rax*2]
mov dword [rsp + 0x4c], eax
jmp 0x180223686
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x78]
mov rcx, qword [rsp + 0x80]
cmp rax, qword [rcx + 0x80]
jb 0x180223790
mov rcx, qword [rsp + 0x80]
call fcn.1802243c0
test eax, eax
jge 0x180223790
jmp 0x18022394a
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x78]
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 0x70]
movzx edx, byte [rsp + 0x24]
mov byte [rcx + rax], dl
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x78]
inc eax
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x78], eax
xor eax, eax
test eax, eax
jne 0x18022375e
mov rax, qword [rsp + 0x80]
mov dword [rax], 2
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x78], 0
jbe 0x180223855
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x78]
dec eax
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x78], eax
cmp qword [rsp + 0x88], 0
je 0x180223837
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x78]
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 0x70]
mov edx, dword [rsp + 0x20]
mov r8, qword [rsp + 0x88]
movzx eax, byte [rcx + rax]
mov byte [r8 + rdx], al
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x90]
cmp dword [rsp + 0x20], eax
jne 0x180223853
jmp 0x180223917
jmp 0x1802237db
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x38]
cmp dword [rax + 0x40], ecx
jae 0x1802238fc
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x68]
cmp dword [rax + 0x40], ecx
jb 0x18022389f
mov rcx, qword [rsp + 0x80]
call fcn.180224530
test eax, eax
jge 0x18022389f
jmp 0x18022394a
xor eax, eax
test eax, eax
jne 0x18022389f
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x40]
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 0x58]
movzx edx, word [rsp + 0x28]
mov word [rcx + rax*2], dx
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x40]
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 0x60]
movzx edx, byte [rsp + 0x24]
mov byte [rcx + rax], dl
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x40]
inc eax
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x40], eax
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x80]
mov dword [rax], 1
jmp 0x18022355a
mov rax, qword [rsp + 0x80]
mov ecx, dword [rsp + 0x28]
mov dword [rax + 0x48], ecx
mov rax, qword [rsp + 0x80]
mov ecx, dword [rsp + 0x24]
mov dword [rax + 0x4c], ecx
mov rax, qword [rsp + 0x80]
mov ecx, dword [rsp + 0x2c]
mov dword [rax + 0x50], ecx
mov eax, dword [rsp + 0x20]
jmp 0x18022395a
mov rax, qword [rsp + 0x80]
mov dword [rax], 3
jmp 0x180223917
mov rdi, rax
mov rcx, rsp
lea rdx, [0x18029b380]
call fcn.180224a80
mov rax, rdi
add rsp, 0x70
pop rdi
ret