Function at 0x180224270
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 0x1802242e1
jmp 0x1802248a7
mov rax, qword [rsp + 0x80]
mov eax, dword [rax]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x180224311
cmp dword [rsp + 0x50], 1
je 0x1802244ea
cmp dword [rsp + 0x50], 2
je 0x18022476b
jmp 0x1802248a7
mov edx, 2
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax + 0xc8]
call fcn.18016dfd0
test eax, eax
jne 0x180224352
mov r8d, 1
lea rdx, [rsp + 0x34]
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax + 0xc8]
call fcn.18016e1f0
cmp eax, 1
je 0x180224357
jmp 0x1802248da
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 0x1802243bf
jmp 0x1802248da
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x3c], 9
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x34], 0
je 0x1802243e6
mov dword [rsp + 0x58], 0x101
jmp 0x1802243ee
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 0x18022444a
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 0x18022445b
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.180225110
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jl 0x18022448c
cmp dword [rsp + 0x44], 0xff
jle 0x180224491
jmp 0x1802248da
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 0x1802244c0
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 0x1802244dc
jmp 0x1802248a7
mov rax, qword [rsp + 0x80]
mov dword [rax], 1
mov rcx, qword [rsp + 0x80]
call fcn.180225110
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
jge 0x180224507
jmp 0x1802248da
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0x100
jne 0x180224554
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x34], 0
je 0x180224554
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 0x1802244ea
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x4c], 0x100
jb 0x1802246e6
mov eax, dword [rsp + 0x4c]
sub eax, 0x100
mov rcx, qword [rsp + 0x80]
cmp eax, dword [rcx + 0x40]
jb 0x180224616
mov eax, dword [rsp + 0x4c]
sub eax, 0x100
mov rcx, qword [rsp + 0x80]
cmp eax, dword [rcx + 0x40]
jbe 0x18022459f
jmp 0x1802248da
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x78]
mov rcx, qword [rsp + 0x80]
cmp rax, qword [rcx + 0x80]
jb 0x1802245d1
mov rcx, qword [rsp + 0x80]
call fcn.180225350
test eax, eax
jge 0x1802245d1
jmp 0x1802248da
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 0x18022459f
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0x100
jb 0x1802246e6
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x58], 0
jne 0x180224638
jmp 0x1802248da
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x78]
mov rcx, qword [rsp + 0x80]
cmp rax, qword [rcx + 0x80]
jb 0x18022466a
mov rcx, qword [rsp + 0x80]
call fcn.180225350
test eax, eax
jge 0x18022466a
jmp 0x1802248da
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 0x180224638
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 0x180224616
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 0x180224720
mov rcx, qword [rsp + 0x80]
call fcn.180225350
test eax, eax
jge 0x180224720
jmp 0x1802248da
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 0x1802246ee
mov rax, qword [rsp + 0x80]
mov dword [rax], 2
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x78], 0
jbe 0x1802247e5
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 0x1802247c7
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 0x1802247e3
jmp 0x1802248a7
jmp 0x18022476b
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x38]
cmp dword [rax + 0x40], ecx
jae 0x18022488c
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x68]
cmp dword [rax + 0x40], ecx
jb 0x18022482f
mov rcx, qword [rsp + 0x80]
call fcn.1802254c0
test eax, eax
jge 0x18022482f
jmp 0x1802248da
xor eax, eax
test eax, eax
jne 0x18022482f
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 0x1802244ea
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 0x1802248ea
mov rax, qword [rsp + 0x80]
mov dword [rax], 3
jmp 0x1802248a7
mov rdi, rax
mov rcx, rsp
lea rdx, [0x18029b820]
call fcn.180225a10
mov rax, rdi
add rsp, 0x70
pop rdi
ret