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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004fdcd
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x1006c8c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x44], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x14], eax
movq xmm0, qword [eax]
mov ecx, dword [eax + 8]
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x18], ecx
mov esi, dword [ebp - 0x20]
xorps xmm1, xmm1
mov eax, esi
mov dword [ebp - 4], 0
sub eax, ecx
movsd qword [ebp - 0x40], xmm1
mov dword [ebp - 0x58], eax
cmp byte [esi], 0x2d
jne 0x1000aa63
inc esi
mov ah, 1
mov dword [ebp - 0x20], esi
jmp 0x1000aa65
xor ah, ah
mov edi, esi
mov byte [ebp - 0x23], ah
xorps xmm0, xmm0
mov byte [ebp - 0x21], 0
movlpd qword [ebp - 0x4c], xmm0
mov dword [ebp - 0x34], 0
mov al, byte [edi]
cmp al, 0x30
jne 0x1000aa93
inc edi
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x20], edi
jmp 0x1000ab4d
cmp al, 0x31
jl 0x1000b1f9
cmp al, 0x39
jg 0x1000b1f9
inc edi
movsx edx, al
sub edx, 0x30
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x38], edx
mov al, byte [edi]
test ah, ah
je 0x1000ab0b
cmp al, 0x30
jl 0x1000ab4d
mov ecx, edi
mov esi, edi
cmp al, 0x39
ja 0x1000ab4d
cmp edx, 0xccccccc
jb 0x1000aada
jne 0x1000ab00
mov ecx, esi
cmp al, 0x38
ja 0x1000ab00
mov al, byte [ecx]
lea edi, [ecx + 1]
inc dword [ebp - 0x34]
lea ecx, [edx - 6]
movsx eax, al
lea ecx, [edx + ecx*4]
mov dword [ebp - 0x20], edi
mov esi, edi
lea edx, [eax + ecx*2]
mov al, byte [edi]
mov dword [ebp - 0x38], edx
mov ecx, edi
cmp al, 0x30
jge 0x1000aac2
jmp 0x1000ab4d
mov ecx, edx
xor eax, eax
mov dl, 1
mov byte [ebp - 0x21], dl
jmp 0x1000ab56
cmp al, 0x30
jl 0x1000ab4d
mov al, byte [edi]
mov ecx, edi
mov esi, edi
cmp al, 0x39
jg 0x1000ab4d
cmp edx, 0x19999999
jb 0x1000ab29
jne 0x1000ab00
mov ecx, esi
cmp al, 0x35
jg 0x1000ab00
mov al, byte [ecx]
lea edi, [ecx + 1]
inc dword [ebp - 0x34]
lea ecx, [edx - 6]
movsx eax, al
lea ecx, [edx + ecx*4]
mov dword [ebp - 0x20], edi
mov esi, edi
lea edx, [eax + ecx*2]
mov al, byte [edi]
mov dword [ebp - 0x38], edx
mov ecx, edi
cmp al, 0x30
jge 0x1000ab15
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x48]
mov dl, byte [ebp - 0x21]
xor dh, dh
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x22], dh
test dl, dl
je 0x1000acae
mov dl, byte [edi]
cmp byte [ebp - 0x23], dh
je 0x1000ac1c
cmp dl, 0x30
jl 0x1000acab
mov esi, edi
mov dword [ebp - 0x30], esi
cmp dl, 0x39
ja 0x1000aca8
cmp eax, 0xccccccc
jb 0x1000abb3
ja 0x1000ab9c
cmp ecx, 0xcccccccc
jb 0x1000abb3
cmp ecx, 0xcccccccc
jne 0x1000ac03
cmp eax, 0xccccccc
jne 0x1000ac03
mov esi, dword [ebp - 0x30]
cmp dl, 0x38
ja 0x1000ac03
mov al, byte [esi]
lea edi, [esi + 1]
movsx esi, al
xor edx, edx
mov eax, ecx
mov dword [ebp - 0x20], edi
mov ecx, dword [ebp - 0x28]
sub esi, 0x30
shld ecx, eax, 2
mov dword [ebp - 0x30], edi
shl eax, 2
add dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
adc dword [ebp - 0x28], ecx
mov ecx, dword [ebp - 0x28]
shld ecx, eax, 1
add eax, eax
add esi, eax
adc edx, ecx
inc dword [ebp - 0x34]
mov eax, edx
mov ecx, esi
mov dl, byte [edi]
mov esi, edi
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], eax
cmp dl, 0x30
jge 0x1000ab82
jmp 0x1000aca8
mov edx, eax
call fcn.1004ed60
movaps xmm1, xmm0
mov dh, 1
movsd qword [ebp - 0x40], xmm1
mov byte [ebp - 0x22], dh
jmp 0x1000acab
cmp dl, 0x30
jl 0x1000acab
mov esi, edi
mov dword [ebp - 0x30], esi
nop word [eax + eax]
cmp dl, 0x39
ja 0x1000aca8
cmp eax, 0x19999999
jb 0x1000ac5d
ja 0x1000ac46
cmp ecx, 0x99999999
jb 0x1000ac5d
cmp ecx, 0x99999999
jne 0x1000ac03
cmp eax, 0x19999999
jne 0x1000ac03
mov esi, dword [ebp - 0x30]
cmp dl, 0x35
ja 0x1000ac03
mov al, byte [esi]
lea edi, [esi + 1]
movsx esi, al
xor edx, edx
mov eax, ecx
mov dword [ebp - 0x20], edi
mov ecx, dword [ebp - 0x28]
sub esi, 0x30
shld ecx, eax, 2
mov dword [ebp - 0x30], edi
shl eax, 2
add dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
adc dword [ebp - 0x28], ecx
mov ecx, dword [ebp - 0x28]
shld ecx, eax, 1
add eax, eax
add esi, eax
adc edx, ecx
inc dword [ebp - 0x34]
mov eax, edx
mov ecx, esi
mov dl, byte [edi]
mov esi, edi
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], eax
cmp dl, 0x30
jge 0x1000ac30
mov dh, byte [ebp - 0x22]
mov dl, byte [ebp - 0x21]
movsd xmm2, qword [0x100583e8]
test dh, dh
je 0x1000acf1
mov al, byte [edi]
cmp al, 0x30
jl 0x1000acf1
mov ecx, edi
cmp al, 0x39
ja 0x1000acec
mov al, byte [ecx]
lea edi, [ecx + 1]
movsx eax, al
mov ecx, edi
sub eax, 0x30
mulsd xmm1, xmm2
mov dword [ebp - 0x20], edi
movd xmm0, eax
mov al, byte [edi]
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
cmp al, 0x30
jge 0x1000acc2
movsd qword [ebp - 0x40], xmm1
cmp byte [edi], 0x2e
mov dword [ebp - 0x30], 0
jne 0x1000adb3
lea esi, [edi + 1]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x30
jl 0x1000add8
cmp al, 0x39
jg 0x1000add8
test dh, dh
jne 0x1000ad49
test dl, dl
je 0x1000ad29
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
jmp 0x1000ad2e
mov ecx, dword [ebp - 0x38]
xor edx, edx
call fcn.1004ed60
movsd xmm2, qword [0x100583e8]
movaps xmm1, xmm0
movsd qword [ebp - 0x40], xmm0
mov byte [ebp - 0x22], 1
jmp 0x1000ad51
movsd qword [ebp - 0x40], xmm1
mov byte [ebp - 0x22], dh
mov al, byte [esi]
mov ecx, esi
mov edx, dword [ebp - 0x34]
xorps xmm3, xmm3
mov dword [ebp - 0x48], esi
nop
mov edi, ecx
cmp al, 0x39
jg 0x1000adb0
cmp edx, 0x11
jge 0x1000ad9a
mov al, byte [esi]
inc esi
dec dword [ebp - 0x30]
mov ecx, esi
movsx eax, al
sub eax, 0x30
mulsd xmm1, xmm2
mov dword [ebp - 0x20], ecx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
comisd xmm1, xmm3
movsd qword [ebp - 0x40], xmm1
jbe 0x1000ada3
inc edx
jmp 0x1000ada3
mov esi, dword [ebp - 0x48]
inc esi
mov ecx, esi
mov dword [ebp - 0x20], ecx
mov al, byte [ecx]
mov edi, esi
mov dword [ebp - 0x48], esi
mov ecx, esi
cmp al, 0x30
jge 0x1000ad60
mov dh, byte [ebp - 0x22]
cmp byte [edi], 0x65
je 0x1000adc1
cmp byte [edi], 0x45
jne 0x1000afc6
inc edi
mov dword [ebp - 0x20], edi
mov esi, edi
test dh, dh
jne 0x1000ae32
cmp byte [ebp - 0x21], dh
je 0x1000ae1c
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
jmp 0x1000ae21
mov edi, dword [ebp - 0x44]
add edi, 0x18
cmp dword [edi], 0
je 0x1000ae0d
push 0x628
push str.C:UserslfrazDesktopHermionecorediscord_rpcSourceFiles_rapidjson_reader.h
push str._HasParseError__
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov esi, dword [ebp - 0x20]
sub esi, eax
mov eax, 0xe
jmp 0x1000b227
mov eax, dword [ebp - 0x50]
sub esi, eax
mov eax, 0xe
jmp 0x1000b227
mov ecx, dword [ebp - 0x38]
xor edx, edx
call fcn.1004ed60
movaps xmm1, xmm0
mov byte [ebp - 0x22], 1
movsd qword [ebp - 0x40], xmm1
mov cl, byte [esi]
xor dl, dl
cmp cl, 0x2b
je 0x1000ae42
cmp cl, 0x2d
jne 0x1000ae4c
mov dl, 1
lea edi, [esi + 1]
mov dword [ebp - 0x20], edi
mov esi, edi
mov cl, byte [edi]
mov al, cl
sub al, 0x30
cmp al, 9
ja 0x1000af7a
mov eax, dword [ebp - 0x30]
inc esi
movsx edi, cl
sub edi, 0x30
mov dword [ebp - 0x20], esi
test dl, dl
je 0x1000af09
test eax, eax
jle 0x1000ae94
push 0x668
push str.C:UserslfrazDesktopHermionecorediscord_rpcSourceFiles_rapidjson_reader.h
push str.expFrac___0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov esi, dword [ebp - 0x20]
add esp, 0xc
movsd xmm1, qword [ebp - 0x40]
mov eax, dword [ebp - 0x30]
lea ecx, [eax + 0x7ffffff7]
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp byte [esi], 0x30
mov dword [ebp - 0x50], eax
jl 0x1000af02
mov ecx, esi
cmp byte [esi], 0x39
jg 0x1000af02
mov al, byte [ecx]
lea esi, [ecx + 1]
lea ecx, [edi - 6]
movsx eax, al
lea ecx, [edi + ecx*4]
mov dword [ebp - 0x20], esi
lea edi, [eax + ecx*2]
mov ecx, esi
mov dword [ebp - 0x48], edi
cmp edi, dword [ebp - 0x50]
jle 0x1000aefd
mov al, byte [esi]
cmp al, 0x30
jl 0x1000aefd
mov edx, esi
mov edi, esi
mov ecx, edx
cmp al, 0x39
ja 0x1000aefa
lea esi, [edi + 1]
mov dword [ebp - 0x20], esi
mov edx, esi
mov al, byte [esi]
mov ecx, esi
mov edi, esi
cmp al, 0x30
jge 0x1000aee2
mov edi, dword [ebp - 0x48]
cmp byte [esi], 0x30
jge 0x1000aeb5
neg edi
jmp 0x1000afc8
mov edx, 0x134
sub edx, eax
cmp byte [esi], 0x30
jl 0x1000afcb
mov al, byte [esi]
nop dword [eax + eax]
cmp al, 0x39
jg 0x1000afc8
lea edi, [edi + edi*4]
movsx eax, al
lea edi, [edi - 0x18]
inc esi
mov dword [ebp - 0x20], esi
lea edi, [eax + edi*2]
cmp edi, edx
jg 0x1000af47
mov al, byte [esi]
cmp al, 0x30
jge 0x1000af20
jmp 0x1000afc8
mov edi, dword [ebp - 0x44]
add edi, 0x18
cmp dword [edi], 0
je 0x1000af6a
push 0x678
push str.C:UserslfrazDesktopHermionecorediscord_rpcSourceFiles_rapidjson_reader.h
push str._HasParseError__
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
mov esi, dword [ebp - 0x58]
lea ecx, [edi + 4]
mov eax, 0xd
jmp 0x1000b230
mov esi, dword [ebp - 0x44]
cmp dword [esi + 0x18], 0
je 0x1000afb2
push 0x67d
push str.C:UserslfrazDesktopHermionecorediscord_rpcSourceFiles_rapidjson_reader.h
push str._HasParseError__
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov edi, dword [ebp - 0x20]
add esp, 0xc
mov eax, dword [ebp - 0x18]
sub edi, eax
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x1c], edi
jmp 0x1000b234
mov eax, dword [ebp - 0x50]
sub edi, eax
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x1c], edi
jmp 0x1000b234
xor edi, edi
mov eax, dword [ebp - 0x30]
cmp byte [ebp - 0x22], 0
je 0x1000b083
lea ecx, [edi + eax]
cmp ecx, 0xfffffecc
jge 0x1000afe8
divsd xmm1, qword [0x100583f0]
lea eax, [ecx + 0x134]
cmovge eax, ecx
push eax
sub esp, 8
movsd qword [esp], xmm1
call fcn.1000c180
fstp qword [ebp - 0x40]
movsd xmm0, qword [ebp - 0x40]
add esp, 0xc
comisd xmm0, xmmword [0x100583f8]
jbe 0x1000b047
mov esi, dword [ebp - 0x44]
cmp dword [esi + 0x18], 0
je 0x1000b035
push 0x6ac
push str.C:UserslfrazDesktopHermionecorediscord_rpcSourceFiles_rapidjson_reader.h
push str._HasParseError__
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
mov eax, dword [ebp - 0x58]
mov dword [esi + 0x18], 0xd
mov dword [esi + 0x1c], eax
jmp 0x1000b234
cmp byte [ebp - 0x23], 0
je 0x1000b054
xorps xmm0, xmmword [0x10058400]
mov ecx, dword [ebp - 0x54]
push 1
add ecx, 0x18
movsd qword [ebp - 0x40], xmm0
call fcn.1000bd80
xorps xmm0, xmm0
mov ecx, 0x216
movups xmmword [eax], xmm0
mov word [eax + 0xe], cx
movsd xmm0, qword [ebp - 0x40]
movsd qword [eax], xmm0
jmp 0x1000b234
mov ecx, dword [ebp - 0x54]
add ecx, 0x18
cmp byte [ebp - 0x21], 0
push 1
je 0x1000b199
cmp byte [ebp - 0x23], 0
je 0x1000b12c
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x28]
neg esi
adc edi, 0
neg edi
call fcn.1000bd80
mov ecx, eax
xorps xmm0, xmm0
mov eax, 0x96
movups xmmword [ecx], xmm0
mov dword [ecx], esi
mov dword [ecx + 4], edi
mov word [ecx + 0xe], ax
test edi, edi
jl 0x1000b107
jg 0x1000b0d1
test esi, esi
jb 0x1000b107
mov eax, 0x196
mov word [ecx + 0xe], ax
mov edx, eax
xor eax, eax
or eax, edi
jne 0x1000b0ed
mov eax, 0x1d6
mov word [ecx + 0xe], ax
mov edx, eax
and esi, 0x80000000
or esi, edi
jne 0x1000b234
or edx, 0x20
mov word [ecx + 0xe], dx
jmp 0x1000b234
cmp edi, 0xffffffff
jl 0x1000b234
jg 0x1000b11e
cmp esi, 0x80000000
jb 0x1000b234
mov eax, 0xb6
mov word [ecx + 0xe], ax
jmp 0x1000b234
call fcn.1000bd80
mov edx, dword [ebp - 0x28]
mov esi, eax
mov ecx, dword [ebp - 0x2c]
xorps xmm0, xmm0
mov eax, 0x116
mov edi, eax
movups xmmword [esi], xmm0
mov dword [esi], ecx
mov dword [esi + 4], edx
mov word [esi + 0xe], ax
test edx, edx
jl 0x1000b164
jg 0x1000b159
test ecx, ecx
jb 0x1000b164
mov eax, 0x196
mov word [esi + 0xe], ax
mov edi, eax
movzx eax, di
mov dword [ebp - 0x54], eax
xor eax, eax
or eax, edx
jne 0x1000b17c
or edi, 0x40
mov word [esi + 0xe], di
movzx eax, di
jmp 0x1000b17f
mov eax, dword [ebp - 0x54]
and ecx, 0x80000000
or ecx, edx
jne 0x1000b234
or eax, 0x20
mov word [esi + 0xe], ax
jmp 0x1000b234
cmp byte [ebp - 0x23], 0
je 0x1000b1ce
mov edi, dword [ebp - 0x38]
neg edi
call fcn.1000bd80
mov esi, eax
xorps xmm0, xmm0
mov eax, edi
test edi, edi
cdq
mov ecx, 0xb6
movups xmmword [esi], xmm0
mov dword [esi], eax
mov eax, 0x1f6
cmovns ecx, eax
mov dword [esi + 4], edx
mov word [esi + 0xe], cx
jmp 0x1000b234
call fcn.1000bd80
mov ecx, dword [ebp - 0x38]
xorps xmm0, xmm0
movups xmmword [eax], xmm0
mov dword [eax], ecx
shr ecx, 0x1a
not ecx
mov dword [eax + 4], 0
and ecx, 0x20
or ecx, 0x1d6
mov word [eax + 0xe], cx
jmp 0x1000b234
cmp dword [edx + 0x18], 0
lea edi, [edx + 0x18]
je 0x1000b220
push 0x5fd
push str.C:UserslfrazDesktopHermionecorediscord_rpcSourceFiles_rapidjson_reader.h
push str._HasParseError__
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov ecx, dword [ebp - 0x18]
add esp, 0xc
mov esi, dword [ebp - 0x20]
sub esi, ecx
mov eax, 3
mov edx, 4
mov ecx, edi
add ecx, edx
mov dword [edi], eax
mov dword [ecx], esi
mov ecx, dword [ebp - 0x14]
movq xmm0, qword [ebp - 0x20]
movq qword [ecx], xmm0
mov eax, dword [ebp - 0x18]
mov dword [ecx + 8], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004ea63
mov esp, ebp
pop ebp
ret 8