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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov eax, dword [0x140049860]
dec eax
mov dword [0x140049860], eax
mov eax, dword [0x140049860]
cdq
idiv dword [0x140049860]
cdqe
mov qword [rsp + 0x40], rax
movzx eax, byte [0x14004981c]
mov byte [rsp + 0x22], al
mov eax, 2
imul rax, rax, 0x1b31
mov rcx, qword [rsp + 0xb8]
movzx eax, word [rcx + rax]
imul eax, eax, 0x1a2d
cdqe
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x80], 0xa3d
movzx eax, word [0x140049878]
cdqe
mov rcx, qword [rsp + 0xb0]
movsxd rax, dword [rcx + rax*4]
mov qword [rsp + 0x68], rax
mov eax, 4
imul rax, rax, 0x1335
mov rcx, qword [rsp + 0xa0]
movsxd rax, dword [rcx + rax]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x28], 0x1ec5
movzx eax, word [0x14004988c]
mov ecx, 2
imul rcx, rcx, 0x1b76
mov rdx, qword [rsp + 0x28]
movzx ecx, word [rdx + rcx]
cmp eax, ecx
jge 0x140018fa5
movzx eax, word [0x140049878]
cdqe
mov rcx, qword [0x140049848]
mov rax, qword [rcx + rax*8]
mov qword [rsp + 0x50], rax
movsxd rax, dword [rsp + 0xa8]
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0xa8]
inc eax
mov dword [rsp + 0xa8], eax
mov rax, qword [rsp + 0x48]
cmp qword [rsp + 0x50], rax
jbe 0x140018fa5
mov rax, qword [0x140049850]
cmp qword [0x140049830], rax
jb 0x140018fa5
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
imul eax, eax, 3
cdqe
mov rcx, qword [rsp + 0x40]
movzx eax, byte [rcx + rax]
mov rcx, qword [rsp + 0xb8]
movzx ecx, word [rcx]
movsxd rcx, ecx
mov rdx, qword [rsp + 0xb0]
xor eax, dword [rdx + rcx*4]
mov rcx, qword [rsp + 0xb8]
movzx ecx, word [rcx]
movsxd rcx, ecx
mov rdx, qword [rsp + 0xb0]
mov dword [rdx + rcx*4], eax
mov eax, dword [rsp + 0xa8]
jmp 0x1400190e5
mov eax, dword [0x140049844]
cdq
mov ecx, 0x1d95
idiv ecx
cdqe
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0xb0]
movzx eax, byte [rcx + rax*4 + 0x1c]
mov byte [rsp + 0x20], al
mov rax, qword [0x140049828]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov dword [rsp + 0x38], eax
movsxd rax, dword [rsp + 0xa8]
mov qword [rsp + 0x58], rax
mov r9, qword [rsp + 0x58]
mov r8d, dword [rsp + 0x38]
movzx edx, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x60]
call fcn.14001a830
mov rcx, qword [rsp + 0x40]
movzx ecx, byte [rcx]
movsxd rcx, ecx
mov rdx, qword [0x140049870]
mov dword [rdx + rcx*4], eax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
shl eax, 1
cdqe
mov rcx, qword [rsp + 0xb0]
mov eax, dword [rcx + rax*4]
or eax, 0x1a1c
mov rcx, qword [rsp + 0x28]
movzx ecx, word [rcx]
shl ecx, 1
movsxd rcx, ecx
mov rdx, qword [rsp + 0xb0]
mov dword [rdx + rcx*4], eax
mov rax, qword [rsp + 0xb8]
movzx eax, word [rax]
cdqe
mov rcx, qword [rsp + 0xb0]
movsxd rax, dword [rcx + rax*4]
mov qword [rsp + 0x78], rax
mov byte [rsp + 0x21], 1
mov rax, qword [rsp + 0x30]
dec rax
mov qword [rsp + 0x30], rax
movsxd rax, dword [0x140049840]
xor edx, edx
div qword [rsp + 0x30]
mov dword [rsp + 0x3c], eax
mov eax, dword [0x140049818]
add eax, 7
cdqe
mov rcx, qword [rsp + 0x68]
movzx eax, byte [rcx + rax]
mov ecx, dword [0x140049804]
sub ecx, eax
mov eax, ecx
cdqe
mov qword [rsp + 0x70], rax
mov r9, qword [rsp + 0x70]
mov r8d, dword [rsp + 0x3c]
movzx edx, byte [rsp + 0x21]
mov rcx, qword [rsp + 0x78]
call fcn.14001a830
mov dword [0x140049804], eax
mov eax, dword [rsp + 0xa8]
add rsp, 0x98
ret