Function at 0x180066b30
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.18005fab0
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 0x180066ba4
mov byte [rsp + 0x30], 1
jmp 0x180066ba9
mov byte [rsp + 0x30], 0
movzx eax, byte [rsp + 0x30]
mov byte [rsp + 0x33], al
lea rdx, [0x18013eefe]
lea rcx, [rsp + 0x33]
call fcn.180044b30
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 0x180066be9
mov byte [rsp + 0x31], 1
jmp 0x180066bee
mov byte [rsp + 0x31], 0
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x34], al
lea rdx, [0x18013eefe]
lea rcx, [rsp + 0x34]
call fcn.180044b30
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.180064c60
mov rcx, qword [rsp + 0xc0]
mov dword [rcx], eax
mov rax, qword [rsp + 0xc8]
movzx eax, byte [rax + 0x14]
test eax, eax
je 0x180066d78
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 0x180066d78
mov rax, qword [rsp + 0xc8]
cmp dword [rax + 0xc], 0
jge 0x180066ca3
mov eax, 1
jmp 0x180066ff9
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax]
dec eax
cdqe
lea rcx, [0x180131fb0]
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.1800669e0
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x180066d24
mov eax, 2
jmp 0x180066ff9
cmp dword [rsp + 0x50], 1
jne 0x180066d32
mov byte [rsp + 0x32], 0x31
jmp 0x180066d37
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 0x180066ff9
mov dword [rsp + 0x40], 0
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.18005ec70
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.0x180066dce
movsxd rax, dword [rsp + 0x3c]
lea rcx, [0x180000000]
mov eax, dword [rcx + rax*4 + 0x67004]
add rax, rcx
jmp rax
mov edx, 0x3b9aca00
lea rcx, [rsp + 0x60]
call fcn.180061c20
nop
jmp 0x180066ea7
mov edx, 0x5f5e100
lea rcx, [rsp + 0x60]
call fcn.180061c20
nop
jmp 0x180066ea7
mov edx, 0x989680
lea rcx, [rsp + 0x60]
call fcn.180061c20
nop
jmp 0x180066ea7
mov edx, 0xf4240
lea rcx, [rsp + 0x60]
call fcn.180061c20
nop
jmp 0x180066ea7
mov edx, 0x186a0
lea rcx, [rsp + 0x60]
call fcn.180061c20
nop
jmp 0x180066ea7
mov edx, 0x2710
lea rcx, [rsp + 0x60]
call fcn.180061c20
nop
jmp 0x180066ea7
mov edx, 0x3e8
lea rcx, [rsp + 0x60]
call fcn.180061c20
nop
jmp 0x180066ea7
mov edx, 0x64
lea rcx, [rsp + 0x60]
call fcn.180061c20
nop
jmp 0x180066ea7
mov edx, 0xa
lea rcx, [rsp + 0x60]
call fcn.180061c20
nop
jmp 0x180066ea7
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], 0
jmp 0x180066ea7
mov byte [rsp + 0x35], 0
lea rdx, str.invalid_number_of_digits
lea rcx, [rsp + 0x35]
call fcn.180044b30
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, [0x180131fb0]
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.180068080
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
je 0x180066f43
mov eax, dword [rsp + 0x54]
jmp 0x180066ff9
mov rax, qword [rsp + 0xc0]
cmp dword [rax], 0
jg 0x180066d78
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.180068080
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x180066ff4
mov eax, dword [rsp + 0x58]
jmp 0x180066ff9
jmp 0x180066f54
add rsp, 0xa8
ret