Function at 0x18008e8a0
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, 0xc8
mov rax, qword [rsp + 0xd0]
mov eax, dword [rax + 8]
neg eax
mov ecx, 1
mov qword [rsp + 0x80], rcx
movzx ecx, al
mov rax, qword [rsp + 0x80]
shl rax, cl
mov rcx, qword [rsp + 0xd0]
mov r8d, dword [rcx + 8]
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.1800864f0
mov eax, dword [rsp + 0x78]
neg eax
mov rcx, qword [rsp + 0xd0]
mov qword [rsp + 0x88], rcx
movzx ecx, al
mov rax, qword [rsp + 0x88]
mov rax, qword [rax]
shr rax, cl
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x18008e935
mov byte [rsp + 0x30], 1
jmp 0x18008e93a
mov byte [rsp + 0x30], 0
movzx eax, byte [rsp + 0x30]
mov byte [rsp + 0x33], al
lea rdx, [0x180166a18]
lea rcx, [rsp + 0x33]
call fcn.18006ab60
mov eax, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x78]
neg ecx
mov rdx, qword [rsp + 0xd0]
mov rdx, qword [rdx]
shr rdx, cl
mov rcx, rdx
cmp rax, rcx
jne 0x18008e97b
mov byte [rsp + 0x31], 1
jmp 0x18008e980
mov byte [rsp + 0x31], 0
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x34], al
lea rdx, [0x180166a18]
lea rcx, [rsp + 0x34]
call fcn.18006ab60
mov rax, qword [rsp + 0x70]
dec rax
mov rcx, qword [rsp + 0xd0]
mov rcx, qword [rcx]
and rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov ecx, dword [rsp + 0x38]
call fcn.18008cb80
mov rcx, qword [rsp + 0xe0]
mov dword [rcx], eax
mov rax, qword [rsp + 0xe8]
movzx eax, byte [rax + 0x14]
test eax, eax
je 0x18008eb18
mov rax, qword [rsp + 0xe0]
mov eax, dword [rax]
mov rcx, qword [rsp + 0xe8]
add eax, dword [rcx + 0x10]
mov rcx, qword [rsp + 0xe8]
add rcx, 0xc
mov edx, eax
call fcn.18008ba70
mov rax, qword [rsp + 0xe8]
cmp dword [rax + 0xc], 0
jg 0x18008eb18
mov rax, qword [rsp + 0xe8]
cmp dword [rax + 0xc], 0
jge 0x18008ea31
mov eax, 1
jmp 0x18008ed9b
mov rax, qword [rsp + 0xe0]
mov eax, dword [rax]
dec eax
cdqe
lea rcx, [0x18015ba20]
mov qword [rsp + 0x90], rcx
mov edx, dword [rsp + 0x78]
neg edx
movzx ecx, dl
mov rdx, qword [rsp + 0x90]
mov rax, qword [rdx + rax*8]
shl rax, cl
mov qword [rsp + 0xa0], rax
imul rax, qword [rsp + 0xd8], 0xa
mov qword [rsp + 0x98], rax
xor edx, edx
mov rcx, qword [rsp + 0xd0]
mov rax, qword [rcx]
mov ecx, 0xa
div rcx
mov rcx, qword [rsp + 0x98]
mov r8, rcx
mov rdx, rax
mov rcx, qword [rsp + 0xa0]
call fcn.18008e750
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x18008eac4
mov eax, 2
jmp 0x18008ed9b
cmp dword [rsp + 0x50], 1
jne 0x18008ead2
mov byte [rsp + 0x32], 0x31
jmp 0x18008ead7
mov byte [rsp + 0x32], 0x30
mov rax, qword [rsp + 0xe8]
movsxd rax, dword [rax + 8]
mov rcx, qword [rsp + 0xe8]
mov rcx, qword [rcx]
movzx edx, byte [rsp + 0x32]
mov byte [rcx + rax], dl
mov rax, qword [rsp + 0xe8]
mov eax, dword [rax + 8]
inc eax
mov rcx, qword [rsp + 0xe8]
mov dword [rcx + 8], eax
mov eax, 1
jmp 0x18008ed9b
mov dword [rsp + 0x40], 0
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.1800861f0
mov rax, qword [rsp + 0xe0]
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.0x18008eb6d
movsxd rax, dword [rsp + 0x3c]
lea rcx, [0x180000000]
mov eax, dword [rcx + rax*4 + 0x8eda4]
add rax, rcx
jmp rax
mov edx, 0x3b9aca00
lea rcx, [rsp + 0x60]
call fcn.18008a630
jmp 0x18008ec39
mov edx, 0x5f5e100
lea rcx, [rsp + 0x60]
call fcn.18008a630
jmp 0x18008ec39
mov edx, 0x989680
lea rcx, [rsp + 0x60]
call fcn.18008a630
jmp 0x18008ec39
mov edx, 0xf4240
lea rcx, [rsp + 0x60]
call fcn.18008a630
jmp 0x18008ec39
mov edx, 0x186a0
lea rcx, [rsp + 0x60]
call fcn.18008a630
jmp 0x18008ec39
mov edx, 0x2710
lea rcx, [rsp + 0x60]
call fcn.18008a630
jmp 0x18008ec39
mov edx, 0x3e8
lea rcx, [rsp + 0x60]
call fcn.18008a630
jmp 0x18008ec39
mov edx, 0x64
lea rcx, [rsp + 0x60]
call fcn.18008a630
jmp 0x18008ec39
mov edx, 0xa
lea rcx, [rsp + 0x60]
call fcn.18008a630
jmp 0x18008ec39
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], 0
jmp 0x18008ec39
mov byte [rsp + 0x35], 0
lea rdx, str.invalid_number_of_digits
lea rcx, [rsp + 0x35]
call fcn.18006ab60
mov rax, qword [rsp + 0xe0]
mov eax, dword [rax]
dec eax
mov rcx, qword [rsp + 0xe0]
mov dword [rcx], eax
mov eax, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x78]
neg ecx
shl rax, cl
add rax, qword [rsp + 0x48]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xe0]
movsxd rax, dword [rax]
lea rcx, [0x18015ba20]
mov qword [rsp + 0xa8], rcx
mov edx, dword [rsp + 0x78]
neg edx
movzx ecx, dl
mov rdx, qword [rsp + 0xa8]
mov rax, qword [rdx + rax*8]
shl rax, cl
mov ecx, dword [rsp + 0x40]
add ecx, 0x30
mov byte [rsp + 0x28], 1
mov rdx, qword [rsp + 0xd8]
mov qword [rsp + 0x20], rdx
mov r9, qword [rsp + 0xb0]
mov r8, rax
movzx edx, cl
mov rcx, qword [rsp + 0xe8]
call fcn.18008ff30
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
je 0x18008ece3
mov eax, dword [rsp + 0x54]
jmp 0x18008ed9b
mov rax, qword [rsp + 0xe0]
cmp dword [rax], 0
jg 0x18008eb18
imul rax, qword [rsp + 0x48], 0xa
mov qword [rsp + 0x48], rax
imul rax, qword [rsp + 0xd8], 0xa
mov qword [rsp + 0xd8], rax
mov eax, dword [rsp + 0x78]
neg eax
movzx ecx, al
mov rax, qword [rsp + 0x48]
shr rax, cl
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 + 0xe0]
mov eax, dword [rax]
dec eax
mov rcx, qword [rsp + 0xe0]
mov dword [rcx], eax
mov byte [rsp + 0x28], 0
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x48]
mov r8, qword [rsp + 0x70]
movzx edx, byte [rsp + 0x36]
mov rcx, qword [rsp + 0xe8]
call fcn.18008ff30
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x18008ed96
mov eax, dword [rsp + 0x58]
jmp 0x18008ed9b
jmp 0x18008ecf4
add rsp, 0xc8
ret