Function at 0x180005610
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.180010530
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 0x1800056a5
mov byte [rsp + 0x30], 1
jmp 0x1800056aa
mov byte [rsp + 0x30], 0
movzx eax, byte [rsp + 0x30]
mov byte [rsp + 0x33], al
lea rdx, [0x18007f81d]
lea rcx, [rsp + 0x33]
call fcn.180001e00
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 0x1800056eb
mov byte [rsp + 0x31], 1
jmp 0x1800056f0
mov byte [rsp + 0x31], 0
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x34], al
lea rdx, [0x18007f81d]
lea rcx, [rsp + 0x34]
call fcn.180001e00
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.180004bb0
mov rcx, qword [rsp + 0xe0]
mov dword [rcx], eax
mov rax, qword [rsp + 0xe8]
movzx eax, byte [rax + 0x14]
test eax, eax
je 0x180005888
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.180005590
mov rax, qword [rsp + 0xe8]
cmp dword [rax + 0xc], 0
jg 0x180005888
mov rax, qword [rsp + 0xe8]
cmp dword [rax + 0xc], 0
jge 0x1800057a1
mov eax, 1
jmp 0x180005b0b
mov rax, qword [rsp + 0xe0]
mov eax, dword [rax]
dec eax
cdqe
lea rcx, [0x180080980]
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.1800051c0
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x180005834
mov eax, 2
jmp 0x180005b0b
cmp dword [rsp + 0x50], 1
jne 0x180005842
mov byte [rsp + 0x32], 0x31
jmp 0x180005847
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 0x180005b0b
mov dword [rsp + 0x40], 0
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.180005b90
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.0x1800058dd
movsxd rax, dword [rsp + 0x3c]
lea rcx, [0x180000000]
mov eax, dword [rcx + rax*4 + 0x5b14]
add rax, rcx
jmp rax
mov edx, 0x3b9aca00
lea rcx, [rsp + 0x60]
call fcn.180005b40
jmp 0x1800059a9
mov edx, 0x5f5e100
lea rcx, [rsp + 0x60]
call fcn.180005b40
jmp 0x1800059a9
mov edx, 0x989680
lea rcx, [rsp + 0x60]
call fcn.180005b40
jmp 0x1800059a9
mov edx, 0xf4240
lea rcx, [rsp + 0x60]
call fcn.180005b40
jmp 0x1800059a9
mov edx, 0x186a0
lea rcx, [rsp + 0x60]
call fcn.180005b40
jmp 0x1800059a9
mov edx, 0x2710
lea rcx, [rsp + 0x60]
call fcn.180005b40
jmp 0x1800059a9
mov edx, 0x3e8
lea rcx, [rsp + 0x60]
call fcn.180005b40
jmp 0x1800059a9
mov edx, 0x64
lea rcx, [rsp + 0x60]
call fcn.180005b40
jmp 0x1800059a9
mov edx, 0xa
lea rcx, [rsp + 0x60]
call fcn.180005b40
jmp 0x1800059a9
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], 0
jmp 0x1800059a9
mov byte [rsp + 0x35], 0
lea rdx, str.invalid_number_of_digits
lea rcx, [rsp + 0x35]
call fcn.180001e00
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, [0x180080980]
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.180005300
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
je 0x180005a53
mov eax, dword [rsp + 0x54]
jmp 0x180005b0b
mov rax, qword [rsp + 0xe0]
cmp dword [rax], 0
jg 0x180005888
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.180005300
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x180005b06
mov eax, dword [rsp + 0x58]
jmp 0x180005b0b
jmp 0x180005a64
add rsp, 0xc8
ret