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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a3bad
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x60
mov eax, dword [0x100b9040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x58], edx
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x6c], eax
movq xmm0, qword [eax]
mov ecx, dword [eax + 8]
movq qword [ebp - 0x24], xmm0
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov eax, dword [ebp - 0x24]
xorps xmm2, xmm2
mov esi, eax
movsd qword [ebp - 0x60], xmm0
sub esi, ecx
mov dword [ebp - 0x68], esi
cmp byte [eax], 0x2d
jne 0x1009608f
inc eax
mov byte [ebp - 0x27], 1
mov dword [ebp - 0x24], eax
jmp 0x10096093
mov byte [ebp - 0x27], 0
mov cl, byte [eax]
xor esi, esi
movlpd qword [ebp - 0x50], xmm0
mov byte [ebp - 0x25], 0
mov dword [ebp - 0x40], esi
cmp cl, 0x30
jne 0x100960b6
lea edi, [eax + 1]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x24], edi
jmp 0x10096175
cmp cl, 0x31
jl 0x100967ea
cmp cl, 0x39
jg 0x100967ea
lea edi, [eax + 1]
movsx ecx, cl
mov al, byte [edi]
sub ecx, 0x30
cmp byte [ebp - 0x27], 0
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x44], ecx
je 0x10096133
cmp al, 0x30
jl 0x10096175
mov edx, edi
cmp al, 0x39
ja 0x10096175
cmp ecx, 0xccccccc
jb 0x10096101
jne 0x10096128
mov edx, edi
cmp al, 0x38
ja 0x10096128
movsx eax, byte [edx]
lea ecx, [ecx + ecx*4]
lea edi, [edx + 1]
inc esi
lea ecx, [ecx - 0x18]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x40], esi
lea ecx, [eax + ecx*2]
mov al, byte [edi]
mov dword [ebp - 0x44], ecx
cmp al, 0x30
jl 0x10096175
mov edx, edi
cmp al, 0x39
jle 0x100960f1
jmp 0x10096175
mov dl, 1
mov eax, ecx
xor ecx, ecx
mov byte [ebp - 0x25], dl
jmp 0x1009617e
cmp al, 0x30
jl 0x10096175
mov edx, edi
cmp al, 0x39
jg 0x10096175
nop dword [eax]
cmp ecx, 0x19999999
jb 0x10096150
jne 0x10096128
mov edx, edi
cmp al, 0x35
jg 0x10096128
movsx eax, byte [edx]
lea ecx, [ecx + ecx*4]
lea edi, [edx + 1]
inc esi
lea ecx, [ecx - 0x18]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x40], esi
lea ecx, [eax + ecx*2]
mov al, byte [edi]
mov dword [ebp - 0x44], ecx
cmp al, 0x30
jl 0x10096175
mov edx, edi
cmp al, 0x39
jle 0x10096140
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
mov dl, byte [ebp - 0x25]
xor dh, dh
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ecx
mov byte [ebp - 0x26], dh
test dl, dl
je 0x100962b7
mov dl, byte [edi]
cmp byte [ebp - 0x27], dh
je 0x1009623a
cmp dl, 0x30
jl 0x100962b4
mov esi, edi
cmp dl, 0x39
jg 0x100962b4
cmp ecx, 0xccccccc
jb 0x100961d7
ja 0x100961c1
cmp eax, 0xcccccccc
jb 0x100961d7
cmp eax, 0xcccccccc
jne 0x10096224
cmp ecx, 0xccccccc
jne 0x10096224
mov esi, edi
cmp dl, 0x38
ja 0x10096224
shld ecx, eax, 2
lea edi, [esi + 1]
xor edx, edx
movsx esi, byte [esi]
shl eax, 2
sub esi, 0x30
add dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
adc dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x2c]
shld ecx, eax, 1
mov dword [ebp - 0x24], edi
add eax, eax
add eax, esi
mov dword [ebp - 0x30], eax
adc edx, ecx
inc dword [ebp - 0x40]
mov ecx, edx
mov dl, byte [edi]
mov dword [ebp - 0x2c], ecx
cmp dl, 0x30
jl 0x100962b1
mov esi, edi
cmp dl, 0x39
jle 0x100961b0
jmp 0x100962b1
mov edx, ecx
mov ecx, eax
call fcn.1009ebb0
mov dh, 1
movaps xmm2, xmm0
mov byte [ebp - 0x26], dh
jmp 0x100962b4
cmp dl, 0x30
jl 0x100962b4
mov esi, edi
cmp dl, 0x39
jg 0x100962b4
cmp ecx, 0x19999999
jb 0x1009626d
ja 0x10096257
cmp eax, 0x99999999
jb 0x1009626d
cmp eax, 0x99999999
jne 0x10096224
cmp ecx, 0x19999999
jne 0x10096224
mov esi, edi
cmp dl, 0x35
ja 0x10096224
shld ecx, eax, 2
lea edi, [esi + 1]
xor edx, edx
movsx esi, byte [esi]
shl eax, 2
sub esi, 0x30
add dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
adc dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x2c]
shld ecx, eax, 1
mov dword [ebp - 0x24], edi
add eax, eax
add eax, esi
mov dword [ebp - 0x30], eax
adc edx, ecx
inc dword [ebp - 0x40]
mov ecx, edx
mov dl, byte [edi]
mov dword [ebp - 0x2c], ecx
cmp dl, 0x30
jl 0x100962b1
mov esi, edi
cmp dl, 0x39
jle 0x10096246
mov dh, byte [ebp - 0x26]
mov dl, byte [ebp - 0x25]
movsd xmm1, qword [0x100b1af0]
test dh, dh
je 0x100962f8
mov al, byte [edi]
cmp al, 0x30
jl 0x100962f8
mov ecx, edi
nop dword [eax + eax]
cmp al, 0x39
ja 0x100962f5
movsx eax, byte [ecx]
lea edi, [ecx + 1]
sub eax, 0x30
mulsd xmm2, xmm1
mov ecx, edi
movd xmm0, eax
mov al, byte [edi]
cvtdq2pd xmm0, xmm0
addsd xmm2, xmm0
cmp al, 0x30
jge 0x100962d0
mov dword [ebp - 0x24], edi
mov al, byte [edi]
mov dword [ebp - 0x38], 0
cmp al, 0x2e
jne 0x10096309
inc edi
mov dword [ebp - 0x24], edi
mov esi, edi
cmp al, 0x2e
jne 0x100963b5
mov al, byte [esi]
cmp al, 0x30
jl 0x100963da
cmp al, 0x39
jg 0x100963da
test dh, dh
jne 0x10096350
test dl, dl
je 0x10096335
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
jmp 0x1009633a
mov ecx, dword [ebp - 0x44]
xor edx, edx
call fcn.1009ebb0
movsd xmm1, qword [0x100b1af0]
movaps xmm2, xmm0
mov byte [ebp - 0x26], 1
jmp 0x10096353
mov byte [ebp - 0x26], dh
mov cl, byte [edi]
mov eax, esi
mov edx, dword [ebp - 0x40]
xorps xmm3, xmm3
mov dword [ebp - 0x64], esi
mov edi, esi
mov dword [ebp - 0x4c], esi
mov esi, edi
cmp cl, 0x39
jg 0x100963b2
cmp edx, 0x11
jge 0x1009639b
dec dword [ebp - 0x38]
lea esi, [eax + 1]
movsx eax, byte [eax]
mov ecx, esi
sub eax, 0x30
mulsd xmm2, xmm1
mov dword [ebp - 0x24], ecx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
addsd xmm2, xmm0
comisd xmm2, xmm3
jbe 0x100963a4
inc edx
jmp 0x100963a4
mov esi, dword [ebp - 0x64]
inc esi
mov ecx, esi
mov dword [ebp - 0x24], ecx
mov cl, byte [ecx]
mov eax, esi
mov dword [ebp - 0x64], eax
mov edi, eax
cmp cl, 0x30
jge 0x10096365
mov dh, byte [ebp - 0x26]
xor edi, edi
cmp byte [esi], 0x65
je 0x100963c5
cmp byte [esi], 0x45
jne 0x100964a1
inc esi
mov dword [ebp - 0x24], esi
test dh, dh
jne 0x10096402
cmp byte [ebp - 0x25], dh
je 0x100963f1
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
jmp 0x100963f6
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x34]
sub esi, ecx
mov dword [eax + 0x18], 0xe
mov dword [eax + 0x1c], esi
jmp 0x100967f9
mov ecx, dword [ebp - 0x44]
xor edx, edx
call fcn.1009ebb0
movaps xmm2, xmm0
mov byte [ebp - 0x26], 1
mov cl, byte [esi]
xor dl, dl
cmp cl, 0x2b
je 0x10096412
cmp cl, 0x2d
jne 0x10096419
mov dl, 1
mov cl, byte [esi + 1]
inc esi
mov dword [ebp - 0x24], esi
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x1009651c
inc esi
movsx edi, cl
sub edi, 0x30
mov dword [ebp - 0x24], esi
mov cl, byte [esi]
mov byte [ebp - 0x39], cl
test dl, dl
je 0x100964e3
mov ecx, dword [ebp - 0x38]
mov eax, 0x66666667
add ecx, 0x7ffffff7
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp byte [ebp - 0x39], 0x30
mov dword [ebp - 0x4c], eax
jl 0x1009649f
mov al, byte [esi]
cmp al, 0x39
jg 0x1009649f
movsx eax, byte [esi]
lea ecx, [edi + edi*4]
lea edi, [ecx - 0x18]
lea edx, [esi + 1]
mov dword [ebp - 0x24], edx
mov esi, edx
lea edi, [eax + edi*2]
cmp edi, dword [ebp - 0x4c]
jle 0x10096499
mov al, byte [edx]
cmp al, 0x30
jl 0x10096499
mov ecx, edx
cmp al, 0x39
ja 0x10096496
lea esi, [ecx + 1]
mov edx, esi
mov ecx, esi
mov al, byte [edx]
cmp al, 0x30
jge 0x10096485
mov dword [ebp - 0x24], edx
mov al, byte [edx]
cmp al, 0x30
jge 0x10096460
neg edi
mov edx, dword [ebp - 0x38]
cmp byte [ebp - 0x26], 0
je 0x100965df
lea eax, [edi + edx]
cmp eax, 0xfffffecc
jge 0x10096533
divsd xmm2, qword [0x100b1b30]
add eax, 0x134
cmp eax, 0xfffffecc
jl 0x1009655b
shl eax, 3
mov ecx, 0x100b0c48
sub ecx, eax
movaps xmm0, xmm2
divsd xmm0, qword [ecx]
jmp 0x10096556
mov edx, dword [ebp - 0x38]
mov eax, 0x134
sub eax, edx
mov dword [ebp - 0x4c], eax
cmp cl, 0x30
jl 0x100964a4
mov al, byte [esi]
cmp al, 0x39
jg 0x100964a1
movsx eax, byte [esi]
lea ecx, [edi + edi*4]
lea edi, [ecx - 0x18]
lea edx, [esi + 1]
mov dword [ebp - 0x24], edx
lea edi, [eax + edi*2]
cmp edi, dword [ebp - 0x4c]
jg 0x1009656a
mov al, byte [edx]
mov esi, edx
cmp al, 0x30
jge 0x100964f7
jmp 0x100964a1
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x34]
sub esi, ecx
mov dword [eax + 0x18], 0xf
mov dword [eax + 0x1c], esi
jmp 0x100967f9
lea ecx, [eax*8]
movaps xmm0, xmm2
test eax, eax
js 0x1009654b
mulsd xmm0, qword [ecx + 0x100b0c48]
jmp 0x10096556
mov eax, 0x100b0c48
sub eax, ecx
divsd xmm0, qword [eax]
movsd qword [ebp - 0x60], xmm0
movsd xmm0, qword [ebp - 0x60]
comisd xmm0, xmmword [0x100b1b38]
jbe 0x10096582
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x68]
mov dword [eax + 0x18], 0xd
mov dword [eax + 0x1c], ecx
mov ecx, dword [ebp - 0x34]
jmp 0x100967f9
cmp byte [ebp - 0x27], 0
je 0x1009658f
xorps xmm0, xmmword [0x100b1b80]
mov esi, dword [ebp - 0x54]
movsd qword [ebp - 0x60], xmm0
mov eax, dword [esi + 0x28]
sub eax, dword [esi + 0x24]
cmp eax, 0x10
jge 0x100965ab
push ecx
lea ecx, [esi + 0x18]
call fcn.100969f0
mov ecx, dword [esi + 0x24]
push ecx
push 0x10
lea eax, [ecx + 0x10]
mov dword [esi + 0x24], eax
call fcn.10013040
movsd xmm3, qword [ebp - 0x60]
xorps xmm0, xmm0
mov ecx, 0x216
add esp, 8
movups xmmword [eax], xmm0
mov word [eax + 0xe], cx
mov ecx, dword [ebp - 0x34]
movsd qword [eax], xmm3
jmp 0x100967f9
mov esi, dword [ebp - 0x54]
add esi, 0x18
cmp byte [ebp - 0x25], 0
mov dword [ebp - 0x54], esi
je 0x10096746
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
cmp byte [ebp - 0x27], 0
je 0x100966ba
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
neg esi
mov edi, dword [ebp - 0x54]
adc eax, 0
neg eax
mov dword [ebp - 0x2c], eax
cmp ecx, 0x10
jge 0x10096622
push ecx
mov ecx, edi
call fcn.100969f0
mov ecx, dword [edi + 0xc]
push ecx
push 0x10
lea eax, [ecx + 0x10]
mov dword [edi + 0xc], eax
call fcn.10013040
mov ecx, dword [ebp - 0x2c]
mov edx, eax
xorps xmm0, xmm0
add esp, 8
mov eax, 0x96
movups xmmword [edx], xmm0
mov dword [edx], esi
mov dword [edx + 4], ecx
mov word [edx + 0xe], ax
test ecx, ecx
jl 0x10096692
jg 0x10096659
test esi, esi
jb 0x10096692
mov eax, 0x196
mov word [edx + 0xe], ax
mov edi, eax
xor eax, eax
or eax, ecx
jne 0x10096675
mov eax, 0x1d6
mov word [edx + 0xe], ax
mov edi, eax
and esi, 0x80000000
or esi, ecx
jne 0x1009657a
mov ecx, dword [ebp - 0x34]
or edi, 0x20
mov word [edx + 0xe], di
jmp 0x100967f9
cmp ecx, 0xffffffff
jl 0x1009657a
jg 0x100966a9
cmp esi, 0x80000000
jb 0x1009657a
mov ecx, dword [ebp - 0x34]
mov eax, 0xb6
mov word [edx + 0xe], ax
jmp 0x100967f9
cmp ecx, 0x10
jge 0x100966c7
push ecx
mov ecx, esi
call fcn.100969f0
mov ecx, dword [esi + 0xc]
push ecx
push 0x10
lea eax, [ecx + 0x10]
mov dword [esi + 0xc], eax
call fcn.10013040
mov edx, dword [ebp - 0x2c]
mov edi, eax
mov ecx, dword [ebp - 0x30]
xorps xmm0, xmm0
mov eax, 0x116
add esp, 8
mov esi, eax
movups xmmword [edi], xmm0
mov dword [edi], ecx
mov dword [edi + 4], edx
mov word [edi + 0xe], ax
test edx, edx
jl 0x1009670e
jg 0x10096703
test ecx, ecx
jb 0x1009670e
mov eax, 0x196
mov word [edi + 0xe], ax
mov esi, eax
movzx eax, si
mov dword [ebp - 0x4c], eax
xor eax, eax
or eax, edx
jne 0x10096726
or esi, 0x40
mov word [edi + 0xe], si
movzx eax, si
jmp 0x10096729
mov eax, dword [ebp - 0x4c]
and ecx, 0x80000000
or ecx, edx
jne 0x1009657a
mov ecx, dword [ebp - 0x34]
or eax, 0x20
mov word [edi + 0xe], ax
jmp 0x100967f9
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
cmp byte [ebp - 0x27], 0
je 0x100967a0
mov edi, dword [ebp - 0x44]
neg edi
cmp eax, 0x10
jge 0x10096764
push ecx
mov ecx, esi
call fcn.100969f0
mov ecx, dword [esi + 0xc]
push ecx
push 0x10
lea eax, [ecx + 0x10]
mov dword [esi + 0xc], eax
call fcn.10013040
mov esi, eax
xorps xmm0, xmm0
mov eax, edi
add esp, 8
cdq
test edi, edi
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
mov ecx, dword [ebp - 0x34]
jmp 0x100967f9
cmp eax, 0x10
jge 0x100967ad
push ecx
mov ecx, esi
call fcn.100969f0
mov ecx, dword [esi + 0xc]
push ecx
push 0x10
lea eax, [ecx + 0x10]
mov dword [esi + 0xc], eax
call fcn.10013040
mov ecx, dword [ebp - 0x44]
xorps xmm0, xmm0
add esp, 8
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
mov ecx, dword [ebp - 0x34]
jmp 0x100967f9
mov ecx, dword [ebp - 0x34]
sub eax, ecx
mov dword [edx + 0x18], 3
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 0x6c]
movq xmm0, qword [ebp - 0x24]
movq qword [eax], xmm0
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1009dd14
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8