Function at 0x180016a80
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
mov qword [rax + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xd8
mov rsi, rcx
movaps xmmword [rax - 0x58], xmm6
xor ecx, ecx
movaps xmmword [rax - 0x68], xmm7
xor eax, eax
mov qword [rbp - 0x79], rcx
xor r15d, r15d
mov qword [rsp + 0x38], rax
test byte [rsi + 0x1d], 2
mov r10, r8
mov r13, rdx
je 0x180016ae0
mov rax, qword [r10]
add r10, 8
mov qword [rsp + 0x38], rax
mov qword [rbp + 0x77], r10
mov byte [rsp + 0x20], 1
jmp 0x180016ae4
mov byte [rsp + 0x20], al
movsx eax, byte [rdx]
test eax, eax
je 0x180017c5f
movsd xmm7, qword [0x180143a18]
cmp eax, 0x25
je 0x180016b2e
mov r15, r13
inc r13
mov al, byte [r13]
test al, al
je 0x180016b0e
cmp al, 0x25
jne 0x180016aff
mov r8d, r13d
mov rdx, r15
sub r8d, r15d
mov rcx, rsi
call fcn.180017e28
cmp byte [r13], 0
je 0x180017c5f
mov r10, qword [rbp + 0x77]
inc r13
mov qword [rbp + 0x6f], r13
movsx ecx, byte [r13]
test ecx, ecx
je 0x180017c4a
and dword [rsp + 0x28], 0
xor sil, sil
xor dil, dil
mov byte [rsp + 0x22], sil
xor r14b, r14b
mov byte [rsp + 0x24], dil
xor bl, bl
mov byte [rsp + 0x21], sil
mov byte [rbp + 0x7f], sil
or r12d, 0xffffffff
mov byte [rsp + 0x25], 0
cmp ecx, 0x2c
jg 0x180016c65
je 0x180016c5d
mov edx, ecx
sub edx, 0x20
je 0x180016c53
sub edx, 1
je 0x180016c46
sub edx, 2
je 0x180016c39
sub edx, 7
je 0x180016bb2
cmp edx, 1
jne 0x180016dd1
mov byte [rsp + 0x21], reloc.ODBC32.dll_SQLGetData
jmp 0x180016d96
cmp byte [rsp + 0x20], 0
je 0x180016bf2
mov r8, qword [rsp + 0x38]
movsxd rdx, dword [r8 + 4]
cmp dword [r8], edx
jg 0x180016bd0
xor edx, edx
mov qword [rsp + 0x28], rdx
jmp 0x180016bec
mov rax, qword [r8 + 8]
mov rcx, qword [rax + rdx*8]
lea eax, [rdx + 1]
mov dword [r8 + 4], eax
call fcn.180030330
mov rdx, rax
mov qword [rsp + 0x28], rax
mov r10, qword [rbp + 0x77]
jmp 0x180016c02
mov edx, dword [r10]
add r10, 8
mov qword [rsp + 0x28], rdx
mov qword [rbp + 0x77], r10
test edx, edx
jns 0x180016c1d
xor eax, eax
mov byte [rbp + 0x7f], 1
mov ecx, edx
neg ecx
cmp edx, 0x80000001
cmovge eax, ecx
mov dword [rsp + 0x28], eax
movsx eax, byte [r13 + 1]
cmp eax, 0x2e
je 0x180016d96
cmp eax, 0x6c
jne 0x180016dc5
jmp 0x180016d96
mov dil, 1
mov byte [rsp + 0x24], dil
jmp 0x180016d96
mov sil, 1
mov byte [rsp + 0x22], sil
jmp 0x180016d96
mov byte [rsp + 0x21], Ordinal_36
jmp 0x180016d96
mov r14b, 0x2c
jmp 0x180016d96
cmp ecx, 0x2d
je 0x180016d92
cmp ecx, 0x2e
je 0x180016ce2
cmp ecx, 0x30
je 0x180016cd8
jle 0x180016dd1
cmp ecx, 0x39
jg 0x180016dab
inc r13
lea edx, [rcx - 0x30]
mov qword [rbp + 0x6f], r13
movsx ecx, byte [r13]
cmp ecx, 0x30
jl 0x180016cba
cmp ecx, 0x39
jg 0x180016cb6
lea edx, [rdx + rdx*4]
inc r13
lea edx, [rdx - 0x18]
lea edx, [rcx + rdx*2]
movsx ecx, byte [r13]
cmp ecx, 0x30
jge 0x180016c9b
mov qword [rbp + 0x6f], r13
btr edx, 0x1f
mov dword [rsp + 0x28], edx
cmp ecx, 0x2e
je 0x180016cd0
cmp ecx, 0x6c
jne 0x180016dd1
dec r13
jmp 0x180016d96
mov byte [rsp + 0x25], 1
jmp 0x180016d96
inc r13
mov qword [rbp + 0x6f], r13
movsx ecx, byte [r13]
cmp ecx, 0x2a
jne 0x180016d60
cmp byte [rsp + 0x20], 0
je 0x180016d2a
mov r8, qword [rsp + 0x38]
movsxd rdx, dword [r8 + 4]
cmp dword [r8], edx
jg 0x180016d0d
xor r12d, r12d
jmp 0x180016d24
mov rax, qword [r8 + 8]
mov rcx, qword [rax + rdx*8]
lea eax, [rdx + 1]
mov dword [r8 + 4], eax
call fcn.180030330
mov r12, rax
mov r10, qword [rbp + 0x77]
jmp 0x180016d35
mov r12d, dword [r10]
add r10, 8
mov qword [rbp + 0x77], r10
test r12d, r12d
jns 0x180016d4f
mov ecx, r12d
or eax, 0xffffffff
neg ecx
cmp r12d, 0x80000001
cmovge eax, ecx
mov r12d, eax
inc r13
mov qword [rbp + 0x6f], r13
movsx ecx, byte [r13]
jmp 0x180016cc7
xor edx, edx
cmp ecx, 0x30
jl 0x180016d86
cmp ecx, 0x39
jg 0x180016d82
lea edx, [rdx + rdx*4]
inc r13
lea edx, [rdx - 0x18]
lea edx, [rcx + rdx*2]
movsx ecx, byte [r13]
cmp ecx, 0x30
jge 0x180016d67
mov qword [rbp + 0x6f], r13
btr edx, 0x1f
mov r12d, edx
jmp 0x180016cc7
mov byte [rbp + 0x7f], 1
inc r13
mov qword [rbp + 0x6f], r13
movsx ecx, byte [r13]
test ecx, ecx
je 0x180016dd1
jmp 0x180016b6e
cmp ecx, 0x6c
jne 0x180016dd1
inc r13
mov bl, 1
mov qword [rbp + 0x6f], r13
movsx ecx, byte [r13]
cmp ecx, 0x6c
jne 0x180016dd1
mov bl, 2
inc r13
mov qword [rbp + 0x6f], r13
movsx ecx, byte [r13]
lea rax, [0x1800f1bc0]
xor r8d, r8d
mov r13b, 0x11
mov qword [rbp - 0x69], rax
mov r9, rax
mov byte [rsp + 0x23], r13b
mov rdx, rax
lea r11d, [r8 + 6]
movsx eax, byte [rdx]
cmp ecx, eax
je 0x180016e0c
inc r8
lea rax, [0x1800f1c4a]
add rdx, r11
cmp rdx, rax
jl 0x180016df1
jmp 0x180016e28
lea rax, [r8 + r8*2]
lea rcx, [0x1800f1bc0]
lea r9, [rcx + rax*2]
mov r13b, byte [r9 + 3]
mov byte [rsp + 0x23], r13b
mov qword [rbp - 0x69], r9
movzx ecx, r13b
cmp ecx, 0xa
jg 0x1800176e1
cmp ecx, 9
jge 0x180017718
test r13b, r13b
je 0x1800178a0
test ecx, ecx
jle 0x180017c5f
cmp ecx, 3
jle 0x1800171d6
cmp ecx, 4
je 0x1800171a6
jle 0x180017c5f
cmp ecx, r11d
jle 0x180017074
cmp ecx, 7
je 0x18001700e
cmp ecx, 8
jne 0x180017c5f
cmp byte [rsp + 0x20], 0
je 0x180016f07
mov r8, qword [rsp + 0x38]
movsxd rdx, dword [r8 + 4]
cmp dword [r8], edx
jg 0x180016e9b
xor ecx, ecx
jmp 0x180016eb4
mov rax, qword [r8 + 8]
mov rcx, qword [rax + rdx*8]
lea eax, [rdx + 1]
mov dl, 1
mov dword [r8 + 4], eax
call fcn.180030d44
mov rcx, rax
mov ebx, 1
mov edx, ebx
test rcx, rcx
je 0x180016efe
movsx eax, byte [rcx]
inc rcx
mov byte [rbp - 0x59], al
and eax, 0xc0
cmp al, 0xc0
jne 0x180016faf
mov r8b, byte [rcx]
mov al, r8b
and al, 0xc0
cmp al, 0x80
jne 0x180016faf
mov byte [rbp + rdx - 0x59], r8b
inc ebx
inc rdx
inc rcx
cmp rdx, 4
jl 0x180016ed6
jmp 0x180016faf
mov byte [rbp - 0x59], 0
jmp 0x180016faf
mov ecx, dword [r10]
add r10, 8
mov qword [rbp + 0x77], r10
cmp ecx, 0x80
jae 0x180016f27
mov byte [rbp - 0x59], cl
mov ebx, 1
jmp 0x180016faf
mov eax, ecx
cmp ecx, 0x800
jae 0x180016f4b
shr eax, 6
and cl, 0x3f
and al, 0x1f
mov ebx, 2
sub al, 0x40
add cl, 0x80
mov byte [rbp - 0x59], al
mov byte [rbp - 0x58], cl
jmp 0x180016faf
cmp ecx, 0x10000
jae 0x180016f79
shr eax, 0xc
mov ebx, 3
and al, 0xf
sub al, 0x20
mov byte [rbp - 0x59], al
mov eax, ecx
shr eax, 6
and cl, 0x3f
and al, 0x3f
add al, 0x80
add cl, 0x80
mov byte [rbp - 0x58], al
mov byte [rbp - 0x57], cl
jmp 0x180016faf
shr eax, 0x12
mov dl, 0x3f
and al, 7
mov r8b, 0x80
sub al, 0x10
mov ebx, 4
mov byte [rbp - 0x59], al
mov eax, ecx
shr eax, 0xc
and al, dl
add al, r8b
mov byte [rbp - 0x58], al
mov eax, ecx
shr eax, 6
and cl, dl
and al, dl
add al, r8b
add cl, r8b
mov byte [rbp - 0x57], al
mov byte [rbp - 0x56], cl
cmp r12d, 1
jle 0x180017005
mov rcx, qword [rsp + 0x28]
mov eax, 1
mov r15, qword [rbp + 0x67]
sub eax, r12d
add ecx, eax
mov qword [rsp + 0x28], rcx
cmp ecx, 1
jle 0x180016feb
cmp byte [rbp + 0x7f], 0
jne 0x180016feb
lea edx, [rcx - 1]
mov r8b, 0x20
mov rcx, r15
call fcn.180017d8c
and dword [rsp + 0x28], 0
lea edi, [r12 - 1]
mov r8d, ebx
lea rdx, [rbp - 0x59]
mov rcx, r15
call fcn.180017e28
sub rdi, 1
jne 0x180016ff0
lea r15, [rbp - 0x59]
jmp 0x18001786a
mov byte [rbp - 0x59], 0x25
mov ebx, 1
lea r15, [rbp - 0x59]
mov rdi, qword [rsp + 0x28]
mov r14b, byte [rbp + 0x7f]
mov rsi, qword [rbp + 0x67]
sub edi, ebx
mov qword [rsp + 0x28], rdi
test edi, edi
jle 0x180017c09
test r14b, r14b
jne 0x180017049
mov r8b, 0x20
mov edx, edi
mov rcx, rsi
call fcn.180017d8c
mov r8d, ebx
mov rdx, r15
mov rcx, rsi
call fcn.180017e28
test r14b, r14b
je 0x180017c17
mov edx, dword [rsp + 0x28]
mov r8b, 0x20
mov rcx, rsi
call fcn.180017d8c
jmp 0x180017c17
cmp byte [rsp + 0x20], 0
je 0x1800170b2
mov r8, qword [rsp + 0x38]
movsxd rdx, dword [r8 + 4]
cmp dword [r8], edx
jg 0x18001708e
xor r15d, r15d
jmp 0x1800170ad
mov rax, qword [r8 + 8]
mov rcx, qword [rax + rdx*8]
lea eax, [rdx + 1]
mov dl, 1
mov dword [r8 + 4], eax
call fcn.180030d44
mov r15, rax
mov r11d, 6
mov r13b, 5
jmp 0x1800170bd
mov r15, qword [r10]
add r10, 8
mov qword [rbp + 0x77], r10
test r15, r15
jne 0x1800170cb
lea r15, [0x18010794c]
jmp 0x18001712c
cmp r13b, r11b
jne 0x18001712c
mov rax, qword [rbp + 0x67]
cmp dword [rax + 0x18], 0
jne 0x180017125
cmp dword [rax + 0x14], 0
je 0x180017125
cmp dword [rsp + 0x28], 0
jne 0x180017125
test r12d, r12d
jns 0x180017125
cmp byte [rax + 0x1c], 0
jne 0x180017125
mov rcx, qword [rax]
mov rdx, r15
mov rsi, rax
mov qword [rax + 8], r15
call fcn.180016378
mov dword [rsi + 0x10], eax
or rax, 0xffffffffffffffff
inc rax
cmp byte [r15 + rax], 0
jne 0x18001710b
btr eax, 0x1f
or byte [rsi + 0x1d], 4
mov dword [rsi + 0x18], eax
jmp 0x1800171c6
mov rax, r15
mov qword [rbp - 0x79], rax
test r12d, r12d
js 0x18001718f
test sil, sil
je 0x180017165
mov rbx, r15
jmp 0x180017158
mov al, byte [rbx]
dec r12d
test al, al
je 0x18001715d
inc rbx
cmp al, 0xc0
jb 0x180017158
jmp 0x180017150
inc rbx
mov al, byte [rbx]
and al, 0xc0
cmp al, 0x80
je 0x18001714d
test r12d, r12d
jg 0x18001713b
sub ebx, r15d
jmp 0x18001785f
xor ebx, ebx
movsxd rcx, r12d
xor eax, eax
test r12d, r12d
jle 0x18001701b
cmp byte [rax + r15], 0
je 0x18001701b
inc ebx
inc rax
cmp rax, rcx
jl 0x180017175
jmp 0x18001785f
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [r15 + rbx], 0
jne 0x180017193
btr ebx, 0x1f
jmp 0x18001785f
cmp byte [rsp + 0x20], 0
mov rsi, qword [rbp + 0x67]
jne 0x1800171c1
mov rcx, qword [r10]
add r10, 8
mov eax, dword [rsi + 0x18]
mov qword [rbp + 0x77], r10
mov dword [rcx], eax
and dword [rsp + 0x28], 0
mov rdi, qword [rsp + 0x28]
xor ebx, ebx
mov r14b, byte [rbp + 0x7f]
jmp 0x180017028
cmp byte [rsp + 0x20], 0
je 0x180017209
mov r8, qword [rsp + 0x38]
movsxd rdx, dword [r8 + 4]
cmp dword [r8], edx
jg 0x1800171f0
xorps xmm6, xmm6
jmp 0x180017216
mov rax, qword [r8 + 8]
mov rcx, qword [rax + rdx*8]
lea eax, [rdx + 1]
mov dword [r8 + 4], eax
call fcn.180030388
movaps xmm6, xmm0
jmp 0x180017216
movsd xmm6, qword [r10]
add r10, 8
mov qword [rbp + 0x77], r10
test r12d, r12d
mov ecx, 6
cmovs r12d, ecx
comisd xmm6, xmmword [0x180143998]
mov qword [rsp + 0x30], r12
jae 0x180017242
xorps xmm6, xmmword [0x180143bc0]
mov r9b, 0x2d
mov byte [rsp + 0x21], r9b
jmp 0x180017247
mov r9b, byte [rsp + 0x21]
cmp r13b, 3
jne 0x18001725a
test r12d, r12d
jle 0x18001725a
dec r12d
mov qword [rsp + 0x30], r12
mov eax, 0x66666667
mov r8d, r12d
and r8d, 0xfff
imul r8d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, r8d
lea ecx, [rdx + rdx*4]
add ecx, ecx
sub eax, ecx
movsxd rcx, eax
lea rax, [0x180000000]
movsd xmm2, qword [rax + rcx*8 + 0xf2af0]
cmp r8d, 0xa
jl 0x1800172b4
mov eax, 0xcccccccd
mul r8d
shr edx, 3
mov eax, edx
mulsd xmm2, qword [0x1801439b0]
sub rax, 1
jne 0x1800172a6
cmp r13b, 1
jne 0x1800172fc
movsd qword [rbp - 0x71], xmm6
mov eax, 0x55555556
mov rcx, qword [rbp - 0x71]
shr rcx, 0x34
and ecx, 0x7ff
sub ecx, 0x3ff
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
add edx, r12d
cmp edx, 0xf
jge 0x1800172f8
movaps xmm0, xmm6
mulsd xmm0, qword [0x1801439a8]
addsd xmm2, xmm0
addsd xmm6, xmm2
xor esi, esi
movsd qword [rbp - 0x71], xmm6
mov rax, qword [rbp - 0x71]
movabs rcx, 0xfffffffffffff
test rcx, rax
movabs rdx, 0x7ff0000000000000
setne cl
and rax, rdx
cmp rax, rdx
sete al
test al, cl
je 0x18001733d
lea r15, [0x180107948]
lea ebx, [rsi + 3]
jmp 0x18001701b
comisd xmm6, xmmword [0x180143998]
jbe 0x180017411
comisd xmm6, xmmword [0x180143ab8]
mov r12d, 0x15e
movsd xmm1, qword [0x180143a08]
jb 0x180017384
cmp esi, r12d
jg 0x180017384
mulsd xmm1, qword [0x180143ab8]
add esi, 0x64
movaps xmm0, xmm1
mulsd xmm0, qword [0x180143ab8]
comisd xmm6, xmm0
jae 0x180017363
movaps xmm0, xmm1
jmp 0x180017394
cmp esi, r12d
jg 0x1800173a2
movaps xmm1, xmm0
add esi, 0xa
mulsd xmm0, qword [0x180143a88]
comisd xmm6, xmm0
jae 0x180017389
movaps xmm0, xmm1
jmp 0x1800173b1
cmp esi, r12d
jg 0x1800173bb
movaps xmm1, xmm0
inc esi
mulsd xmm0, xmm7
comisd xmm6, xmm0
jae 0x1800173a7
divsd xmm6, xmm1
jmp 0x1800173cc
mulsd xmm6, qword [0x180143a70]
sub esi, 8
comisd xmm6, xmmword [0x1801439b8]
jb 0x1800173c1
jmp 0x1800173de
mulsd xmm6, xmm7
dec esi
comisd xmm6, xmmword [0x180143a08]
jb 0x1800173d8
cmp esi, r12d
jle 0x180017411
xor eax, eax
mov byte [rbp - 0x59], r9b
test r9b, r9b
setne al
mov dword [rbp + rax - 0x59], 0x666e49
xor eax, eax
test r9b, r9b
setne al
lea ebx, [rax + 3]
jmp 0x180017017
lea rdi, [rbp - 0x59]
cmp r13b, 1
je 0x18001742f
addsd xmm6, xmm2
comisd xmm6, xmm7
jb 0x18001742f
mulsd xmm6, qword [0x1801439f0]
inc esi
mov rax, qword [rsp + 0x30]
cmp r13b, 3
jne 0x1800174ef
cmp byte [rsp + 0x24], 0
sete r12b
cmp esi, 0xfffffffc
jl 0x1800174e8
cmp esi, eax
jg 0x1800174e8
sub eax, esi
mov byte [rsp + 0x23], 1
mov qword [rsp + 0x30], rax
mov ebx, esi
movsxd r13, dword [rsp + 0x28]
movsxd rdx, eax
xor eax, eax
test ebx, ebx
cmovg eax, ebx
add rdx, 0xf
cdqe
add rax, r13
add rdx, rax
cmp rdx, 0x46
jle 0x1800174a3
mov r15, qword [rbp + 0x67]
mov rcx, r15
call fcn.180016a10
mov qword [rbp - 0x79], rax
mov rdi, rax
test rax, rax
je 0x180017c5f
movzx r8d, byte [rsp + 0x22]
mov rax, qword [rsp + 0x30]
mov r9b, byte [rsp + 0x21]
test eax, eax
mov qword [rbp - 0x71], rdi
setg r15b
lea edx, [r8 + r8*4]
or r15b, r8b
lea r14d, [rdx*2 + 0x10]
or r15b, byte [rsp + 0x24]
test r9b, r9b
je 0x1800174dc
mov byte [rdi], r9b
inc rdi
test ebx, ebx
jns 0x180017508
mov byte [rdi], 0x30
inc rdi
jmp 0x180017539
mov byte [rsp + 0x23], 2
jmp 0x180017501
mov r9b, byte [rsp + 0x22]
mov r12b, r9b
cmp r13b, 2
jne 0x180017464
xor ebx, ebx
jmp 0x180017466
test r14d, r14d
jg 0x180017511
mov al, 0x30
jmp 0x18001752a
cvttsd2si eax, xmm6
dec r14d
movd xmm0, eax
add al, 0x30
cvtdq2pd xmm0, xmm0
subsd xmm6, xmm0
mulsd xmm6, xmm7
mov byte [rdi], al
inc rdi
sub ebx, 1
jns 0x180017508
mov rax, qword [rsp + 0x30]
test r15b, r15b
je 0x180017544
mov byte [rdi], 0x2e
inc rdi
add ebx, 1
jns 0x1800175a1
neg ebx
mov dl, 0x30
mov r8d, ebx
mov rcx, rdi
call fcn.1800c1d50
mov rax, qword [rsp + 0x30]
add rdi, rbx
mov r9b, byte [rsp + 0x21]
sub eax, ebx
mov r8b, byte [rsp + 0x22]
jmp 0x1800175a1
dec eax
mov qword [rsp + 0x30], rax
test r14d, r14d
jg 0x18001757e
mov al, 0x30
jmp 0x180017597
cvttsd2si eax, xmm6
dec r14d
movd xmm0, eax
add al, 0x30
cvtdq2pd xmm0, xmm0
subsd xmm6, xmm0
mulsd xmm6, xmm7
mov byte [rdi], al
inc rdi
mov rax, qword [rsp + 0x30]
test eax, eax
jg 0x18001756e
test r12b, r12b
je 0x1800175df
test r15b, r15b
je 0x1800175df
lea rax, [rdi - 1]
jmp 0x1800175be
mov rdi, rax
mov byte [rax], 0
dec rax
cmp byte [rax], 0x30
je 0x1800175b5
lea rax, [rdi - 1]
cmp byte [rax], 0x2e
jne 0x1800175df
test r8b, r8b
je 0x1800175d9
mov byte [rdi], 0x30
inc rdi
jmp 0x1800175df
mov rdi, rax
mov byte [rax], 0
cmp byte [rsp + 0x23], 2
jne 0x180017664
mov r11, qword [rbp - 0x69]
lea rcx, str.0123456789ABCDEF0123456789abcdef
movzx eax, byte [r11 + 4]
mov al, byte [rax + rcx]
mov byte [rdi], al
test esi, esi
jns 0x18001760b
mov byte [rdi + 1], 0x2d
add rdi, 2
neg esi
jmp 0x180017613
mov byte [rdi + 1], reloc.ODBC32.dll_SQLGetData
add rdi, 2
cmp esi, 0x64
jl 0x180017636
mov eax, 0x51eb851f
imul esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + 0x30]
mov byte [rdi], al
inc rdi
imul eax, edx, 0xffffff9c
add esi, eax
mov eax, 0x66666667
imul esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + 0x30]
mov byte [rdi], al
mov al, dl
shl dl, 2
add al, dl
add al, al
sub sil, al
add sil, 0x30
mov byte [rdi + 1], sil
add rdi, 2
mov r15, qword [rbp - 0x71]
mov r14b, byte [rbp + 0x7f]
mov byte [rdi], 0
sub edi, r15d
cmp byte [rsp + 0x25], 0
mov ebx, edi
mov rdi, qword [rsp + 0x28]
je 0x180017024
test r14b, r14b
jne 0x180017024
cmp ebx, edi
jge 0x180017024
mov edx, edi
sub edx, ebx
movsxd rax, edx
cmp r13, rax
jl 0x1800176c0
lea rcx, [r15 + r13]
mov r8, rax
neg r8
sub r13, rax
inc r13
mov al, byte [r8 + rcx]
mov byte [rcx], al
dec rcx
sub r13, 1
jne 0x1800176b1
test edx, edx
je 0x1800176da
xor eax, eax
mov r8d, edx
test r9b, r9b
mov dl, 0x30
setne al
lea rcx, [rax + r15]
call fcn.1800c1d50
mov ebx, edi
jmp 0x180017024
sub ecx, 0xb
je 0x180017bd9
sub ecx, 1
je 0x180017b4c
sub ecx, 1
je 0x18001789e
sub ecx, 1
je 0x180017718
sub ecx, 1
je 0x1800178a0
sub ecx, 1
jne 0x180017c5f
jmp 0x1800178a3
mov eax, Ordinal_36
cmp r13b, 0xe
lea r14d, [rax + 5]
cmove r14d, eax
cmp byte [rsp + 0x20], 0
je 0x18001775d
mov r8, qword [rsp + 0x38]
movsxd rdx, dword [r8 + 4]
cmp dword [r8], edx
jg 0x180017742
xor ebx, ebx
jmp 0x180017768
mov rax, qword [r8 + 8]
mov rcx, qword [rax + rdx*8]
lea eax, [rdx + 1]
mov dl, 1
mov dword [r8 + 4], eax
call fcn.180030d44
mov rbx, rax
jmp 0x180017768
mov rbx, qword [r10]
add r10, 8
mov qword [rbp + 0x77], r10
xor edx, edx
test rbx, rbx
sete dl
test edx, edx
je 0x18001778a
cmp r13b, 0xa
lea rax, str.NULL
lea rbx, [0x180107958]
cmove rbx, rax
xor r8d, r8d
xor esi, esi
xor ecx, ecx
test r12d, r12d
je 0x1800177d1
mov r9b, byte [rsp + 0x22]
mov al, byte [rcx + rbx]
test al, al
je 0x1800177d1
cmp al, r14b
jne 0x1800177aa
inc r8d
test r9b, r9b
je 0x1800177c6
and al, 0xc0
cmp al, 0xc0
jne 0x1800177c6
jmp 0x1800177bc
inc esi
inc rcx
mov al, byte [rbx + rcx + 1]
and al, 0xc0
cmp al, 0x80
je 0x1800177b7
inc esi
inc rcx
sub r12d, 1
jne 0x18001779b
test edx, edx
jne 0x1800177e0
cmp r13b, 0xa
jne 0x1800177e0
lea edi, [rdx + 1]
jmp 0x1800177e2
xor edi, edi
lea eax, [rsi + 3]
add eax, r8d
cmp eax, 0x46
jle 0x18001780b
mov rcx, qword [rbp + 0x67]
movsxd rdx, eax
call fcn.180016a10
mov qword [rbp - 0x79], rax
mov r15, rax
test rax, rax
je 0x180017c5f
jmp 0x18001780f
lea r15, [rbp - 0x59]
xor ecx, ecx
xor eax, eax
test edi, edi
je 0x18001781f
lea ecx, [rax + 1]
mov byte [r15], r14b
mov eax, ecx
xor edx, edx
movsxd r9, esi
test esi, esi
jle 0x18001784b
mov r8b, byte [rdx + rbx]
inc ecx
mov byte [rax + r15], r8b
inc rax
cmp r8b, r14b
jne 0x180017843
inc ecx
mov byte [rax + r15], r8b
inc rax
inc rdx
cmp rdx, r9
jl 0x180017828
test edi, edi
je 0x180017858
inc ecx
mov byte [rax + r15], r14b
inc rax
mov byte [rax + r15], 0
mov ebx, ecx
cmp byte [rsp + 0x22], 0
je 0x18001701b
mov rdi, qword [rsp + 0x28]
test edi, edi
jle 0x180017020
lea eax, [rbx - 1]
movsxd rcx, eax
test eax, eax
js 0x180017020
mov al, byte [rcx + r15]
dec rcx
and al, 0xc0
cmp al, 0x80
jne 0x180017894
inc edi
test rcx, rcx
jns 0x180017885
jmp 0x180017020
mov bl, 2
xor r14b, r14b
test byte [r9 + 2], 1
je 0x18001791e
cmp byte [rsp + 0x20], 0
je 0x1800178e3
mov r8, qword [rsp + 0x38]
movsxd rdx, dword [r8 + 4]
cmp dword [r8], edx
jg 0x1800178ca
xor ebx, ebx
mov cl, byte [rsp + 0x21]
jmp 0x180017971
mov rax, qword [r8 + 8]
mov rcx, qword [rax + rdx*8]
lea eax, [rdx + 1]
mov dword [r8 + 4], eax
call fcn.180030330
mov rbx, rax
jmp 0x1800178fe
add r10, 8
mov qword [rbp + 0x77], r10
test bl, bl
je 0x1800178fa
cmp bl, 2
jne 0x1800178fa
mov rbx, qword [r10 - 8]
jmp 0x1800178fe
movsxd rbx, dword [r10 - 8]
test rbx, rbx
jns 0x1800178c1
movabs rax, 0x8000000000000000
cmp rbx, rax
jne 0x180017917
mov rbx, rax
jmp 0x18001791a
neg rbx
mov cl, 0x2d
jmp 0x18001796d
cmp byte [rsp + 0x20], 0
je 0x180017950
mov r8, qword [rsp + 0x38]
movsxd rdx, dword [r8 + 4]
cmp dword [r8], edx
jg 0x180017937
xor ebx, ebx
jmp 0x18001796b
mov rax, qword [r8 + 8]
mov rcx, qword [rax + rdx*8]
lea eax, [rdx + 1]
mov dword [r8 + 4], eax
call fcn.180030330
mov rbx, rax
jmp 0x18001796b
add r10, 8
mov qword [rbp + 0x77], r10
test bl, bl
je 0x180017967
cmp bl, 2
jne 0x180017967
mov rbx, qword [r10 - 8]
jmp 0x18001796b
mov ebx, dword [r10 - 8]
xor cl, cl
mov byte [rsp + 0x21], cl
mov rax, rbx
neg rax
sbb sil, sil
and sil, dil
cmp byte [rsp + 0x25], 0
je 0x180017998
xor eax, eax
test cl, cl
mov ecx, dword [rsp + 0x28]
setne al
sub ecx, eax
cmp r12d, ecx
cmovl r12d, ecx
cmp r12d, 0x25
jge 0x1800179a9
mov edi, Ordinal_73
lea r10, [rbp - 0x59]
jmp 0x1800179e5
movsxd rdi, r12d
add rdi, 0xa
test r14b, r14b
je 0x1800179c9
mov eax, 0x55555556
imul r12d
mov eax, edx
shr eax, 0x1f
add eax, edx
cdqe
add rdi, rax
mov rcx, qword [rbp + 0x67]
mov rdx, rdi
call fcn.180016a10
mov qword [rbp - 0x79], rax
mov r10, rax
test rax, rax
je 0x180017c5f
lea eax, [rdi - 1]
movsxd r15, eax
add r15, r10
cmp r13b, 0xf
jne 0x180017a5c
movabs r9, 0xcccccccccccccccd
mov r8d, ebx
mov rax, r9
mul rbx
mov rcx, rdx
shr rcx, 3
lea eax, [rcx + rcx*4]
add eax, eax
sub r8d, eax
cmp r8d, 4
jge 0x180017a36
mov rax, r9
mul rcx
shr rdx, 3
lea rax, [rdx + rdx*4]
add rax, rax
sub rcx, rax
cmp rcx, 1
jne 0x180017a39
xor r8d, r8d
movsxd rcx, r8d
lea rdx, [0x180000000]
mov al, byte [rdx + rcx*2 + 0xee6c9]
mov cl, byte [rdx + rcx*2 + 0xee6c8]
mov byte [r15 - 1], al
sub r15, 2
mov byte [r15], cl
mov r11, qword [rbp - 0x69]
lea rax, str.0123456789ABCDEF0123456789abcdef
movzx ecx, byte [r11 + 4]
movzx r8d, byte [r11 + 1]
add rcx, rax
xor edx, edx
mov rax, rbx
div r8
dec r15
mov rbx, rax
mov al, byte [rdx + rcx]
mov byte [r15], al
test rbx, rbx
jne 0x180017a74
mov eax, r10d
lea ecx, [rdi - 1]
sub eax, r15d
add ecx, eax
cmp r12d, ecx
jle 0x180017ab3
sub r12d, ecx
mov eax, r12d
add ecx, r12d
dec r15
mov byte [r15], 0x30
sub rax, 1
jne 0x180017aa6
test r14b, r14b
je 0x180017b05
dec ecx
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
movsxd r8, edx
sub r15, r8
lea eax, [rdx + rdx*2]
sub ecx, eax
xor edx, edx
lea r9d, [rcx + 1]
jmp 0x180017b00
lea rax, [rdx + r8]
mov cl, byte [rax + r15]
mov byte [rdx + r15], cl
sub r9d, 1
jne 0x180017afd
inc rdx
mov r9d, 3
dec r8
mov byte [rdx + r15], r14b
inc rdx
test r8, r8
jg 0x180017adb
mov al, byte [rsp + 0x21]
test al, al
je 0x180017b13
dec r15
mov byte [r15], al
test sil, sil
je 0x180017b3e
mov al, byte [r11 + 5]
test al, al
je 0x180017b3e
movzx eax, al
lea rcx, [0x1800eb808]
add rax, rcx
jmp 0x180017b38
dec r15
inc rax
mov byte [r15], cl
mov cl, byte [rax]
test cl, cl
jne 0x180017b2f
sub r10d, r15d
lea ebx, [rdi - 1]
add ebx, r10d
jmp 0x18001701b
mov rsi, qword [rbp + 0x67]
test byte [rsi + 0x1d], 1
je 0x180017c5f
mov rbx, qword [r10]
add r10, 0x10
mov qword [rbp + 0x77], r10
movsxd rax, dword [r10 - 8]
imul rdi, rax, 0x70
mov rdx, qword [rdi + rbx + 0x10]
test rdx, rdx
je 0x180017ba9
or rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], 0
jne 0x180017b7b
and eax, 0x3fffffff
mov rcx, rsi
mov r8d, eax
call fcn.180017e28
mov r8d, 1
lea rdx, [0x180107960]
mov rcx, rsi
call fcn.180017e28
mov rdx, qword [rdi + rbx + 0x18]
test rdx, rdx
jne 0x180017bb7
xor eax, eax
jmp 0x180017bc9
or rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], 0
jne 0x180017bbb
and eax, 0x3fffffff
mov r8d, eax
mov rcx, rsi
call fcn.180017e28
jmp 0x1800171c1
mov rsi, qword [rbp + 0x67]
test byte [rsi + 0x1d], 1
je 0x180017c5f
mov rdx, qword [r10]
add r10, 8
mov qword [rbp + 0x77], r10
test rdx, rdx
je 0x1800171c1
mov r8d, dword [rdx + 8]
test r8d, r8d
je 0x1800171c1
mov rdx, qword [rdx]
jmp 0x180017bcc
mov r8d, ebx
mov rdx, r15
mov rcx, rsi
call fcn.180017e28
mov rcx, qword [rbp - 0x79]
test rcx, rcx
je 0x180017c31
mov rdx, rcx
mov rcx, qword [rsi]
call fcn.180016414
xor eax, eax
mov qword [rbp - 0x79], rax
mov r13, qword [rbp + 0x6f]
inc r13
movsx eax, byte [r13]
test eax, eax
je 0x180017c5f
mov r10, qword [rbp + 0x77]
jmp 0x180016af7
mov r8d, 1
lea rdx, [0x180107944]
mov rcx, rsi
call fcn.180017e28
lea r11, [rsp + 0xd8]
movaps xmm6, xmmword [r11 - 0x18]
movaps xmm7, xmmword [r11 - 0x28]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret