Function at 0x100242d0
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 0x10031b2d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
push esi
push edi
mov eax, dword [0x10044080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x28], edx
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x44], eax
mov ecx, dword [eax + 4]
mov edi, dword [eax]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x48], ecx
mov eax, edi
mov dword [ebp - 4], 0
sub eax, ecx
xorps xmm1, xmm1
mov cl, byte [edi]
mov dword [ebp - 0x54], eax
cmp cl, 0x2d
jne 0x10024349
mov cl, byte [edi + 1]
inc edi
mov byte [ebp - 0x13], 1
jmp 0x1002434d
mov byte [ebp - 0x13], 0
xor esi, esi
mov byte [ebp - 0x12], 0
mov dword [ebp - 0x24], esi
xorps xmm0, xmm0
movlpd qword [ebp - 0x30], xmm0
mov eax, edi
cmp cl, 0x30
jne 0x10024373
lea edi, [eax + 1]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x4c], edi
jmp 0x1002443e
cmp cl, 0x31
jl 0x10024ab6
cmp cl, 0x39
jg 0x10024ab6
lea edi, [eax + 1]
movsx ecx, cl
mov al, byte [edi]
sub ecx, 0x30
cmp byte [ebp - 0x13], 0
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x3c], ecx
je 0x100243fa
cmp al, 0x30
jl 0x1002443e
mov edx, edi
mov dword [ebp - 0x18], edi
nop dword [eax]
cmp al, 0x39
ja 0x1002443e
cmp ecx, 0xccccccc
jb 0x100243c9
jne 0x100243ef
mov edx, dword [ebp - 0x18]
cmp al, 0x38
ja 0x100243ef
movsx eax, byte [edx]
lea ecx, [ecx + ecx*4]
lea edi, [edx + 1]
inc esi
lea ecx, [ecx - 0x18]
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x24], esi
mov edx, edi
lea ecx, [eax + ecx*2]
mov dword [ebp - 0x18], edi
mov al, byte [edi]
mov dword [ebp - 0x3c], ecx
cmp al, 0x30
jge 0x100243b0
jmp 0x1002443e
mov dl, 1
mov esi, ecx
xor ecx, ecx
mov byte [ebp - 0x12], dl
jmp 0x10024447
cmp al, 0x30
jl 0x1002443e
mov al, byte [edi]
mov edx, edi
mov dword [ebp - 0x18], edi
cmp al, 0x39
jg 0x1002443e
cmp ecx, 0x19999999
jb 0x1002441a
jne 0x100243ef
mov edx, dword [ebp - 0x18]
cmp al, 0x35
jg 0x100243ef
movsx eax, byte [edx]
lea ecx, [ecx + ecx*4]
lea edi, [edx + 1]
inc esi
lea ecx, [ecx - 0x18]
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x24], esi
mov edx, edi
lea ecx, [eax + ecx*2]
mov dword [ebp - 0x18], edi
mov al, byte [edi]
mov dword [ebp - 0x3c], ecx
cmp al, 0x30
jge 0x10024405
mov esi, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov dl, byte [ebp - 0x12]
xor ah, ah
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 0x11], ah
test dl, dl
je 0x1002457b
mov al, byte [edi]
cmp byte [ebp - 0x13], ah
je 0x100244fd
cmp al, 0x30
jl 0x1002457b
mov edx, edi
mov dword [ebp - 0x18], edx
cmp al, 0x39
ja 0x10024575
cmp ecx, 0xccccccc
jb 0x100244a3
ja 0x1002448c
cmp esi, 0xcccccccc
jb 0x100244a3
cmp esi, 0xcccccccc
jne 0x100244ea
cmp ecx, 0xccccccc
jne 0x100244ea
mov edx, dword [ebp - 0x18]
cmp al, 0x38
ja 0x100244ea
mov eax, dword [ebp - 0x20]
lea edi, [edx + 1]
movsx esi, byte [edx]
xor edx, edx
shld ecx, eax, 2
sub esi, 0x30
mov dword [ebp - 0x4c], edi
shl eax, 2
add dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
adc dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x1c]
shld ecx, eax, 1
mov dword [ebp - 0x18], edi
add eax, eax
add esi, eax
mov al, byte [edi]
mov dword [ebp - 0x20], esi
adc ecx, edx
inc dword [ebp - 0x24]
mov dword [ebp - 0x1c], ecx
mov edx, edi
cmp al, 0x30
jge 0x10024472
jmp 0x10024575
mov edx, ecx
mov ecx, esi
call fcn.1002eef0
mov ah, 1
movaps xmm1, xmm0
mov byte [ebp - 0x11], ah
jmp 0x10024578
cmp al, 0x30
jl 0x1002457b
mov edx, edi
mov dword [ebp - 0x18], edx
cmp al, 0x39
ja 0x10024575
cmp ecx, 0x19999999
jb 0x10024533
ja 0x1002451c
cmp esi, 0x99999999
jb 0x10024533
cmp esi, 0x99999999
jne 0x100244ea
cmp ecx, 0x19999999
jne 0x100244ea
mov edx, dword [ebp - 0x18]
cmp al, 0x35
ja 0x100244ea
mov eax, dword [ebp - 0x20]
lea edi, [edx + 1]
movsx esi, byte [edx]
xor edx, edx
shld ecx, eax, 2
sub esi, 0x30
mov dword [ebp - 0x4c], edi
shl eax, 2
add dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
adc dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x1c]
shld ecx, eax, 1
mov dword [ebp - 0x18], edi
add eax, eax
add esi, eax
mov al, byte [edi]
mov dword [ebp - 0x20], esi
adc ecx, edx
inc dword [ebp - 0x24]
mov dword [ebp - 0x1c], ecx
mov edx, edi
cmp al, 0x30
jge 0x10024506
mov ah, byte [ebp - 0x11]
mov dl, byte [ebp - 0x12]
movsd xmm2, qword [0x1003e4c8]
test ah, ah
je 0x100245b8
mov al, byte [edi]
cmp al, 0x30
jl 0x100245b8
mov ecx, edi
nop
cmp al, 0x39
ja 0x100245b8
movsx eax, byte [ecx]
lea edi, [ecx + 1]
sub eax, 0x30
mulsd xmm1, xmm2
mov dword [ebp - 0x4c], edi
mov ecx, edi
movd xmm0, eax
mov al, byte [edi]
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
cmp al, 0x30
jge 0x10024590
mov cl, byte [edi]
mov dword [ebp - 0x40], 0
cmp cl, 0x2e
jne 0x100245d1
inc edi
mov eax, edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x18], eax
jmp 0x100245d6
mov eax, edi
mov dword [ebp - 0x18], edi
cmp cl, 0x2e
jne 0x100246a5
mov cl, byte [eax]
cmp cl, 0x30
jl 0x10024695
cmp cl, 0x39
jg 0x10024695
mov cl, byte [ebp - 0x11]
test cl, cl
jne 0x1002462d
test dl, dl
je 0x10024605
mov edx, dword [ebp - 0x1c]
mov ecx, esi
jmp 0x1002460a
mov ecx, dword [ebp - 0x3c]
xor edx, edx
call fcn.1002eef0
mov eax, dword [ebp - 0x18]
movaps xmm1, xmm0
movsd xmm2, qword [0x1003e4c8]
mov ecx, eax
mov dl, byte [edi]
xorps xmm3, xmm3
mov byte [ebp - 0x11], 1
mov dword [ebp - 0x18], eax
jmp 0x10024643
mov dl, byte [edi]
xorps xmm3, xmm3
mov byte [ebp - 0x11], cl
mov ecx, eax
mov dword [ebp - 0x18], eax
jmp 0x10024643
mov eax, dword [ebp - 0x2c]
cmp dl, 0x39
jg 0x100246a8
mov edx, dword [ebp - 0x24]
cmp edx, 0x11
jge 0x1002467b
movsx eax, byte [ecx]
lea edi, [ecx + 1]
dec dword [ebp - 0x40]
sub eax, 0x30
mulsd xmm1, xmm2
mov dword [ebp - 0x4c], edi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
comisd xmm1, xmm3
jbe 0x10024682
inc edx
mov dword [ebp - 0x24], edx
jmp 0x10024682
mov edi, dword [ebp - 0x18]
inc edi
mov dword [ebp - 0x4c], edi
mov dl, byte [edi]
mov eax, edi
mov ecx, eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], ecx
cmp dl, 0x30
jge 0x10024640
jmp 0x100246a8
mov ecx, dword [ebp - 0x28]
mov edx, 0xe
add ecx, 0x18
jmp 0x10024abe
mov eax, dword [ebp - 0x18]
xor ecx, ecx
cmp byte [eax], 0x65
jne 0x100246b9
lea edi, [eax + 1]
mov eax, edi
mov dword [ebp - 0x18], eax
jmp 0x100246ca
cmp byte [eax], 0x45
jne 0x100247ad
lea edi, [eax + 1]
mov eax, edi
mov dword [ebp - 0x18], edi
cmp byte [ebp - 0x11], cl
jne 0x100246ec
cmp byte [ebp - 0x12], cl
je 0x100246db
mov edx, dword [ebp - 0x1c]
mov ecx, esi
jmp 0x100246e0
mov ecx, dword [ebp - 0x3c]
xor edx, edx
call fcn.1002eef0
movaps xmm1, xmm0
mov byte [ebp - 0x11], 1
mov ecx, dword [ebp - 0x18]
xor ah, ah
mov dl, byte [ecx]
cmp dl, 0x2b
je 0x100246ff
cmp dl, 0x2d
jne 0x10024707
mov ah, 1
mov dl, byte [ecx + 1]
lea edi, [ecx + 1]
mov ecx, edi
mov al, dl
sub al, 0x30
cmp al, 9
ja 0x1002482f
lea edi, [ecx + 1]
movsx ecx, dl
mov dl, byte [edi]
sub ecx, 0x30
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x35], dl
test ah, ah
je 0x100247e3
mov ecx, dword [ebp - 0x40]
mov eax, 0x66666667
lea ecx, [ecx + 0x7ffffff7]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp byte [ebp - 0x35], 0x30
mov dword [ebp - 0x2c], eax
jl 0x100247a8
mov al, byte [edi]
mov edx, edi
cmp al, 0x39
jg 0x100247a5
mov eax, dword [ebp - 0x18]
lea edi, [edx + 1]
mov dword [ebp - 0x4c], edi
lea ecx, [eax + eax*4]
movsx eax, byte [edx]
mov edx, edi
lea eax, [eax + ecx*2]
add eax, 0xffffffd0
mov dword [ebp - 0x18], eax
cmp eax, dword [ebp - 0x2c]
jle 0x1002479f
mov al, byte [edi]
cmp al, 0x30
jl 0x1002479f
mov ecx, edi
mov dword [ebp - 0x24], edi
mov esi, edi
mov edx, ecx
cmp al, 0x39
ja 0x1002479f
mov al, byte [esi + 1]
lea edi, [esi + 1]
mov dword [ebp - 0x4c], edi
mov ecx, edi
mov edx, edi
mov esi, edi
cmp al, 0x30
jge 0x10024786
mov al, byte [edi]
cmp al, 0x30
jge 0x10024756
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
neg ecx
cmp byte [ebp - 0x11], 0
je 0x100248e8
mov eax, dword [ebp - 0x40]
add eax, ecx
cmp eax, 0xfffffecc
jge 0x10024857
divsd xmm1, qword [0x1003e4d8]
add eax, 0x134
cmp eax, 0xfffffecc
jge 0x10024844
xorps xmm0, xmm0
jmp 0x1002487a
mov eax, 0x134
sub eax, dword [ebp - 0x40]
mov dword [ebp - 0x2c], eax
cmp dl, 0x30
jl 0x100247ad
mov al, byte [edi]
mov edx, edi
cmp al, 0x39
jg 0x100247ad
movsx eax, byte [edx]
lea ecx, [ecx + ecx*4]
lea ecx, [ecx - 0x18]
lea edi, [edx + 1]
mov dword [ebp - 0x4c], edi
lea ecx, [eax + ecx*2]
cmp ecx, dword [ebp - 0x2c]
jg 0x1002481c
mov al, byte [edi]
mov edx, edi
cmp al, 0x30
jge 0x100247f7
jmp 0x100247ad
mov ecx, dword [ebp - 0x28]
mov edx, 0xd
add ecx, 0x18
lea eax, [ecx + 4]
jmp 0x10024ad2
mov edx, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x50]
mov dword [edx + 0x18], 0xf
mov dword [edx + 0x1c], ecx
jmp 0x10024ad9
shl eax, 3
mov ecx, 0x1003c810
sub ecx, eax
movaps xmm0, xmm1
divsd xmm0, qword [ecx]
jmp 0x1002487a
lea ecx, [eax*8]
movaps xmm0, xmm1
test eax, eax
js 0x1002486f
mulsd xmm0, qword [ecx + 0x1003c810]
jmp 0x1002487a
mov eax, 0x1003c810
sub eax, ecx
divsd xmm0, qword [eax]
comisd xmm0, xmmword [0x1003e4e0]
jbe 0x10024899
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x54]
mov dword [edx + 0x18], 0xd
mov dword [edx + 0x1c], ecx
jmp 0x10024ad9
cmp byte [ebp - 0x13], 0
je 0x100248a6
xorps xmm0, xmmword [0x1003e500]
mov esi, dword [ebp - 0x34]
movsd qword [ebp - 0x30], xmm0
mov eax, dword [esi + 0x28]
sub eax, dword [esi + 0x24]
cmp eax, 0x10
jge 0x100248c2
push ecx
lea ecx, [esi + 0x18]
call fcn.100251f0
mov ecx, dword [esi + 0x24]
xorps xmm0, xmm0
movsd xmm3, qword [ebp - 0x30]
lea eax, [ecx + 0x10]
mov dword [esi + 0x24], eax
mov eax, 0x216
movups xmmword [ecx], xmm0
mov word [ecx + 0xe], ax
movsd qword [ecx], xmm3
jmp 0x10024ad9
mov edx, dword [ebp - 0x34]
add edx, 0x18
cmp byte [ebp - 0x12], 0
mov dword [ebp - 0x28], edx
mov eax, dword [edx + 0x10]
je 0x10024a2e
cmp byte [ebp - 0x13], 0
je 0x100249a4
mov ecx, dword [ebp - 0x1c]
neg esi
adc ecx, 0
sub eax, dword [edx + 0xc]
neg ecx
mov dword [ebp - 0x1c], ecx
cmp eax, 0x10
jge 0x1002492b
push ecx
mov ecx, edx
call fcn.100251f0
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [edx + 0xc]
xorps xmm0, xmm0
mov dword [ebp - 0x2c], eax
add eax, 0x10
mov dword [edx + 0xc], eax
mov eax, 0x96
mov edx, dword [ebp - 0x2c]
movups xmmword [edx], xmm0
mov dword [edx], esi
mov dword [edx + 4], ecx
mov word [edx + 0xe], ax
test ecx, ecx
jl 0x1002497f
jg 0x10024958
test esi, esi
jb 0x1002497f
mov eax, 0x196
mov word [edx + 0xe], ax
xor eax, eax
or eax, ecx
jne 0x10024975
mov eax, 0x1d6
mov word [edx + 0xe], ax
jmp 0x10024a14
mov eax, 0x196
jmp 0x10024a14
cmp ecx, 0xffffffff
jl 0x10024ad9
jg 0x10024996
cmp esi, 0x80000000
jb 0x10024ad9
mov eax, 0xb6
mov word [edx + 0xe], ax
jmp 0x10024ad9
sub eax, dword [edx + 0xc]
cmp eax, 0x10
jge 0x100249b7
push ecx
mov ecx, edx
call fcn.100251f0
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0xc]
xorps xmm0, xmm0
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
add eax, 0x10
mov dword [edx + 0xc], eax
mov eax, 0x116
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
movups xmmword [edx], xmm0
mov dword [edx], esi
mov dword [edx + 4], ecx
mov word [edx + 0xe], ax
test ecx, ecx
jl 0x100249f6
jg 0x100249ea
test esi, esi
jb 0x100249f6
mov eax, 0x196
mov word [edx + 0xe], ax
mov dword [ebp - 0x34], eax
movzx eax, ax
mov dword [ebp - 0x2c], eax
xor eax, eax
or eax, ecx
jne 0x10024a11
mov eax, dword [ebp - 0x34]
or eax, 0x40
mov word [edx + 0xe], ax
movzx eax, ax
jmp 0x10024a14
mov eax, dword [ebp - 0x2c]
and esi, 0x80000000
or esi, ecx
jne 0x10024ad9
or eax, 0x20
mov word [edx + 0xe], ax
jmp 0x10024ad9
sub eax, dword [edx + 0xc]
cmp byte [ebp - 0x13], 0
je 0x10024a78
mov esi, dword [ebp - 0x3c]
neg esi
cmp eax, 0x10
jge 0x10024a4c
push ecx
mov ecx, edx
call fcn.100251f0
mov edx, dword [ebp - 0x28]
mov ecx, dword [edx + 0xc]
xorps xmm0, xmm0
test esi, esi
lea eax, [ecx + 0x10]
mov dword [edx + 0xc], eax
mov eax, esi
cdq
movups xmmword [ecx], xmm0
mov dword [ecx], eax
mov eax, 0xb6
mov dword [ecx + 4], edx
mov edx, 0x1f6
cmovns eax, edx
mov word [ecx + 0xe], ax
jmp 0x10024ad9
cmp eax, 0x10
jge 0x10024a88
push ecx
mov ecx, edx
call fcn.100251f0
mov edx, dword [ebp - 0x28]
mov ecx, dword [edx + 0xc]
xorps xmm0, xmm0
lea eax, [ecx + 0x10]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0x3c]
movups xmmword [ecx], xmm0
mov dword [ecx], eax
shr eax, 0x1a
not eax
mov dword [ecx + 4], 0
and eax, 0x20
or eax, 0x1d6
mov word [ecx + 0xe], ax
jmp 0x10024ad9
lea ecx, [edx + 0x18]
mov edx, 3
sub eax, dword [ebp - 0x50]
mov esi, ecx
mov dword [ebp - 0x34], 4
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x34]
add eax, esi
mov dword [ecx], edx
mov ecx, dword [ebp - 0x54]
mov dword [eax], ecx
mov eax, dword [ebx + 8]
mov ecx, dword [ebp - 0x50]
mov dword [eax], edi
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8