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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 8]
neg eax
mov eax, eax
mov ecx, 1
shlx rax, rcx, rax
mov rcx, qword [rsp + 0xb0]
mov r8d, dword [rcx + 8]
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.1800a8cd0
mov eax, dword [rsp + 0x78]
neg eax
mov eax, eax
mov rcx, qword [rsp + 0xb0]
shrx rax, qword [rcx], rax
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x1800afdc4
mov byte [rsp + 0x30], 1
jmp 0x1800afdc9
mov byte [rsp + 0x30], 0
movzx eax, byte [rsp + 0x30]
mov byte [rsp + 0x33], al
lea rdx, [0x1801b2f40]
lea rcx, [rsp + 0x33]
call fcn.18008ddc0
nop
mov eax, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x78]
neg ecx
mov ecx, ecx
mov rdx, qword [rsp + 0xb0]
shrx rcx, qword [rdx], rcx
cmp rax, rcx
jne 0x1800afe09
mov byte [rsp + 0x31], 1
jmp 0x1800afe0e
mov byte [rsp + 0x31], 0
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x34], al
lea rdx, [0x1801b2f40]
lea rcx, [rsp + 0x34]
call fcn.18008ddc0
nop
mov rax, qword [rsp + 0x70]
dec rax
mov rcx, qword [rsp + 0xb0]
mov rcx, qword [rcx]
and rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov ecx, dword [rsp + 0x38]
call fcn.1800ade80
mov rcx, qword [rsp + 0xc0]
mov dword [rcx], eax
mov rax, qword [rsp + 0xc8]
movzx eax, byte [rax + 0x14]
test eax, eax
je 0x1800aff98
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax]
mov rcx, qword [rsp + 0xc8]
add eax, dword [rcx + 0x10]
mov rcx, qword [rsp + 0xc8]
add eax, dword [rcx + 0xc]
mov rcx, qword [rsp + 0xc8]
mov dword [rcx + 0xc], eax
mov rax, qword [rsp + 0xc8]
cmp dword [rax + 0xc], 0
jg 0x1800aff98
mov rax, qword [rsp + 0xc8]
cmp dword [rax + 0xc], 0
jge 0x1800afec3
mov eax, 1
jmp 0x1800b0219
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax]
dec eax
cdqe
lea rcx, [0x18017d9b0]
mov edx, dword [rsp + 0x78]
neg edx
mov edx, edx
shlx rax, qword [rcx + rax*8], rdx
mov qword [rsp + 0x88], rax
imul rax, qword [rsp + 0xb8], 0xa
mov qword [rsp + 0x80], rax
xor edx, edx
mov rcx, qword [rsp + 0xb0]
mov rax, qword [rcx]
mov ecx, 0xa
div rcx
mov rcx, qword [rsp + 0x80]
mov r8, rcx
mov rdx, rax
mov rcx, qword [rsp + 0x88]
call fcn.1800afc00
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x1800aff44
mov eax, 2
jmp 0x1800b0219
cmp dword [rsp + 0x50], 1
jne 0x1800aff52
mov byte [rsp + 0x32], 0x31
jmp 0x1800aff57
mov byte [rsp + 0x32], 0x30
mov rax, qword [rsp + 0xc8]
movsxd rax, dword [rax + 8]
mov rcx, qword [rsp + 0xc8]
mov rcx, qword [rcx]
movzx edx, byte [rsp + 0x32]
mov byte [rcx + rax], dl
mov rax, qword [rsp + 0xc8]
mov eax, dword [rax + 8]
inc eax
mov rcx, qword [rsp + 0xc8]
mov dword [rcx + 8], eax
mov eax, 1
jmp 0x1800b0219
mov dword [rsp + 0x40], 0
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.1800a7f20
nop
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax]
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x3c]
dec eax
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 9
ja case.default.0x1800affee
movsxd rax, dword [rsp + 0x3c]
lea rcx, [0x180000000]
mov eax, dword [rcx + rax*4 + 0xb0224]
add rax, rcx
jmp rax
mov edx, 0x3b9aca00
lea rcx, [rsp + 0x60]
call fcn.1800aae40
nop
jmp 0x1800b00c7
mov edx, 0x5f5e100
lea rcx, [rsp + 0x60]
call fcn.1800aae40
nop
jmp 0x1800b00c7
mov edx, 0x989680
lea rcx, [rsp + 0x60]
call fcn.1800aae40
nop
jmp 0x1800b00c7
mov edx, 0xf4240
lea rcx, [rsp + 0x60]
call fcn.1800aae40
nop
jmp 0x1800b00c7
mov edx, 0x186a0
lea rcx, [rsp + 0x60]
call fcn.1800aae40
nop
jmp 0x1800b00c7
mov edx, 0x2710
lea rcx, [rsp + 0x60]
call fcn.1800aae40
nop
jmp 0x1800b00c7
mov edx, 0x3e8
lea rcx, [rsp + 0x60]
call fcn.1800aae40
nop
jmp 0x1800b00c7
mov edx, 0x64
lea rcx, [rsp + 0x60]
call fcn.1800aae40
nop
jmp 0x1800b00c7
mov edx, 0xa
lea rcx, [rsp + 0x60]
call fcn.1800aae40
nop
jmp 0x1800b00c7
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], 0
jmp 0x1800b00c7
mov byte [rsp + 0x35], 0
lea rdx, str.invalid_number_of_digits
lea rcx, [rsp + 0x35]
call fcn.18008ddc0
nop
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax]
dec eax
mov rcx, qword [rsp + 0xc0]
mov dword [rcx], eax
mov eax, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x78]
neg ecx
mov ecx, ecx
shlx rax, rax, rcx
add rax, qword [rsp + 0x48]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0xc0]
movsxd rax, dword [rax]
lea rcx, [0x18017d9b0]
mov edx, dword [rsp + 0x78]
neg edx
mov edx, edx
shlx rax, qword [rcx + rax*8], rdx
mov ecx, dword [rsp + 0x40]
add ecx, 0x30
mov byte [rsp + 0x28], 1
mov rdx, qword [rsp + 0xb8]
mov qword [rsp + 0x20], rdx
mov r9, qword [rsp + 0x90]
mov r8, rax
movzx edx, cl
mov rcx, qword [rsp + 0xc8]
call fcn.1800b12a0
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
je 0x1800b0163
mov eax, dword [rsp + 0x54]
jmp 0x1800b0219
mov rax, qword [rsp + 0xc0]
cmp dword [rax], 0
jg 0x1800aff98
imul rax, qword [rsp + 0x48], 0xa
mov qword [rsp + 0x48], rax
imul rax, qword [rsp + 0xb8], 0xa
mov qword [rsp + 0xb8], rax
mov eax, dword [rsp + 0x78]
neg eax
mov eax, eax
shrx rax, qword [rsp + 0x48], rax
add rax, 0x30
mov byte [rsp + 0x36], al
mov rax, qword [rsp + 0x70]
dec rax
mov rcx, qword [rsp + 0x48]
and rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax]
dec eax
mov rcx, qword [rsp + 0xc0]
mov dword [rcx], eax
mov byte [rsp + 0x28], 0
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x48]
mov r8, qword [rsp + 0x70]
movzx edx, byte [rsp + 0x36]
mov rcx, qword [rsp + 0xc8]
call fcn.1800b12a0
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x1800b0214
mov eax, dword [rsp + 0x58]
jmp 0x1800b0219
jmp 0x1800b0174
add rsp, 0xa8
ret