Function at 0x10005c90
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 0x100f0f3d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x50
mov eax, dword [ebx + 8]
mov edx, ecx
push esi
push edi
mov dword [ebp - 0x30], edx
movq xmm0, qword [eax]
mov ecx, dword [eax + 8]
movq qword [ebp - 0x60], xmm0
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], eax
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov eax, dword [ebp - 0x60]
xorps xmm1, xmm1
mov esi, eax
movsd qword [ebp - 0x50], xmm0
sub esi, ecx
mov dword [ebp - 0x3c], esi
cmp byte [eax], 0x2d
jne 0x10005d09
inc eax
mov byte [ebp - 0x13], 1
mov dword [ebp - 0x60], eax
jmp 0x10005d0d
mov byte [ebp - 0x13], 0
mov cl, byte [eax]
xor esi, esi
movlpd qword [ebp - 0x48], xmm0
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x2c], esi
cmp cl, 0x30
jne 0x10005d30
lea edi, [eax + 1]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x60], edi
jmp 0x10005df5
cmp cl, 0x31
jl 0x10006447
cmp cl, 0x39
jg 0x10006447
lea edi, [eax + 1]
movsx ecx, cl
mov al, byte [edi]
sub ecx, 0x30
cmp byte [ebp - 0x13], 0
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x24], ecx
je 0x10005db2
cmp al, 0x30
jl 0x10005df5
mov edx, edi
cmp al, 0x39
ja 0x10005df5
nop dword [eax + eax]
cmp ecx, 0xccccccc
jb 0x10005d80
jne 0x10005da7
mov edx, edi
cmp al, 0x38
ja 0x10005da7
movsx eax, byte [edx]
lea ecx, [ecx + ecx*4]
lea edi, [edx + 1]
inc esi
lea ecx, [ecx - 0x18]
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x2c], esi
lea ecx, [eax + ecx*2]
mov al, byte [edi]
mov dword [ebp - 0x24], ecx
cmp al, 0x30
jl 0x10005df5
mov edx, edi
cmp al, 0x39
jle 0x10005d70
jmp 0x10005df5
mov dl, 1
mov eax, ecx
xor ecx, ecx
mov byte [ebp - 0x11], dl
jmp 0x10005dfe
cmp al, 0x30
jl 0x10005df5
mov edx, edi
cmp al, 0x39
jg 0x10005df5
nop dword [eax]
cmp ecx, 0x19999999
jb 0x10005dd0
jne 0x10005da7
mov edx, edi
cmp al, 0x35
jg 0x10005da7
movsx eax, byte [edx]
lea ecx, [ecx + ecx*4]
lea edi, [edx + 1]
inc esi
lea ecx, [ecx - 0x18]
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x2c], esi
lea ecx, [eax + ecx*2]
mov al, byte [edi]
mov dword [ebp - 0x24], ecx
cmp al, 0x30
jl 0x10005df5
mov edx, edi
cmp al, 0x39
jle 0x10005dc0
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
mov dl, byte [ebp - 0x11]
xor dh, dh
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 0x12], dh
test dl, dl
je 0x10005f34
mov dl, byte [edi]
cmp byte [ebp - 0x13], dh
je 0x10005eb7
cmp dl, 0x30
jl 0x10005f31
mov esi, edi
cmp dl, 0x39
jg 0x10005f31
cmp ecx, 0xccccccc
jb 0x10005e57
ja 0x10005e41
cmp eax, 0xcccccccc
jb 0x10005e57
cmp eax, 0xcccccccc
jne 0x10005ea4
cmp ecx, 0xccccccc
jne 0x10005ea4
mov esi, edi
cmp dl, 0x38
ja 0x10005ea4
shld ecx, eax, 2
lea edi, [esi + 1]
xor edx, edx
movsx esi, byte [esi]
shl eax, 2
sub esi, 0x30
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
adc dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x1c]
shld ecx, eax, 1
mov dword [ebp - 0x60], edi
add eax, eax
add eax, esi
mov dword [ebp - 0x18], eax
adc edx, ecx
inc dword [ebp - 0x2c]
mov ecx, edx
mov dl, byte [edi]
mov dword [ebp - 0x1c], ecx
cmp dl, 0x30
jl 0x10005f2e
mov esi, edi
cmp dl, 0x39
jle 0x10005e30
jmp 0x10005f2e
mov edx, ecx
mov ecx, eax
call fcn.100ef840
mov dh, 1
movaps xmm1, xmm0
mov byte [ebp - 0x12], dh
jmp 0x10005f31
cmp dl, 0x30
jl 0x10005f31
mov esi, edi
cmp dl, 0x39
jg 0x10005f31
cmp ecx, 0x19999999
jb 0x10005eea
ja 0x10005ed4
cmp eax, 0x99999999
jb 0x10005eea
cmp eax, 0x99999999
jne 0x10005ea4
cmp ecx, 0x19999999
jne 0x10005ea4
mov esi, edi
cmp dl, 0x35
ja 0x10005ea4
shld ecx, eax, 2
lea edi, [esi + 1]
xor edx, edx
movsx esi, byte [esi]
shl eax, 2
sub esi, 0x30
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
adc dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x1c]
shld ecx, eax, 1
mov dword [ebp - 0x60], edi
add eax, eax
add eax, esi
mov dword [ebp - 0x18], eax
adc edx, ecx
inc dword [ebp - 0x2c]
mov ecx, edx
mov dl, byte [edi]
mov dword [ebp - 0x1c], ecx
cmp dl, 0x30
jl 0x10005f2e
mov esi, edi
cmp dl, 0x39
jle 0x10005ec3
mov dh, byte [ebp - 0x12]
mov dl, byte [ebp - 0x11]
movsd xmm2, qword [0x1016a900]
test dh, dh
je 0x10005f70
mov al, byte [edi]
cmp al, 0x30
jl 0x10005f70
mov ecx, edi
cmp al, 0x39
ja 0x10005f6d
movsx eax, byte [ecx]
lea edi, [ecx + 1]
sub eax, 0x30
mulsd xmm1, xmm2
mov ecx, edi
movd xmm0, eax
mov al, byte [edi]
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
cmp al, 0x30
jge 0x10005f48
mov dword [ebp - 0x60], edi
mov cl, byte [edi]
mov dword [ebp - 0x28], 0
cmp cl, 0x2e
jne 0x10005f89
inc edi
mov eax, edi
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x38], eax
jmp 0x10005f8e
mov eax, edi
mov dword [ebp - 0x38], edi
cmp cl, 0x2e
jne 0x10006059
mov cl, byte [eax]
cmp cl, 0x30
jl 0x10006042
cmp cl, 0x39
jg 0x10006042
mov cl, byte [ebp - 0x12]
mov esi, dword [ebp - 0x24]
test cl, cl
jne 0x10005fdd
test dl, dl
je 0x10005fc1
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
jmp 0x10005fc5
mov ecx, esi
xor edx, edx
call fcn.100ef840
movsd xmm2, qword [0x1016a900]
movaps xmm1, xmm0
mov byte [ebp - 0x12], 1
mov eax, edi
jmp 0x10005fe0
mov byte [ebp - 0x12], cl
mov dl, byte [edi]
xorps xmm3, xmm3
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
cmp dl, 0x39
jg 0x1000605f
cmp edi, 0x11
jge 0x10006028
dec dword [ebp - 0x28]
lea ecx, [eax + 1]
movsx eax, byte [eax]
mov edx, ecx
sub eax, 0x30
mulsd xmm1, xmm2
mov dword [ebp - 0x60], edx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
comisd xmm1, xmm3
jbe 0x10006031
inc edi
jmp 0x10006031
mov ecx, dword [ebp - 0x34]
inc ecx
mov edx, ecx
mov dword [ebp - 0x60], edx
mov dl, byte [edx]
mov eax, ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], eax
cmp dl, 0x30
jge 0x10005ff1
jmp 0x1000605f
mov ecx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x20]
sub eax, esi
mov dword [ecx + 0x18], 0xe
mov dword [ecx + 0x1c], eax
jmp 0x10006456
mov esi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x38]
xor edi, edi
cmp byte [ecx], 0x65
je 0x1000606f
cmp byte [ecx], 0x45
jne 0x10006141
cmp byte [ebp - 0x12], 0
lea edi, [ecx + 1]
mov dword [ebp - 0x60], edi
jne 0x10006099
cmp byte [ebp - 0x11], 0
je 0x10006089
mov esi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
jmp 0x1000608b
xor edx, edx
mov ecx, esi
call fcn.100ef840
movaps xmm1, xmm0
mov byte [ebp - 0x12], 1
mov cl, byte [edi]
xor dl, dl
cmp cl, 0x2b
je 0x100060a9
cmp cl, 0x2d
jne 0x100060b0
mov dl, 1
mov cl, byte [edi + 1]
inc edi
mov dword [ebp - 0x60], edi
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x100061bc
lea esi, [edi + 1]
movsx edi, cl
mov cl, byte [esi]
sub edi, 0x30
mov dword [ebp - 0x60], esi
mov byte [ebp - 0x14], cl
test dl, dl
je 0x10006183
mov ecx, dword [ebp - 0x28]
mov eax, 0x66666667
add ecx, 0x7ffffff7
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp byte [ebp - 0x14], 0x30
mov dword [ebp - 0x44], eax
jl 0x1000613f
mov al, byte [esi]
nop dword [eax]
cmp al, 0x39
jg 0x1000613f
movsx eax, byte [esi]
lea ecx, [edi + edi*4]
lea edi, [ecx - 0x18]
lea edx, [esi + 1]
mov dword [ebp - 0x60], edx
mov esi, edx
lea edi, [eax + edi*2]
cmp edi, dword [ebp - 0x44]
jle 0x10006139
mov al, byte [edx]
cmp al, 0x30
jl 0x10006139
mov ecx, edx
cmp al, 0x39
ja 0x10006136
lea esi, [ecx + 1]
mov edx, esi
mov ecx, esi
mov al, byte [edx]
cmp al, 0x30
jge 0x10006125
mov dword [ebp - 0x60], edx
mov al, byte [edx]
cmp al, 0x30
jge 0x10006100
neg edi
mov edx, dword [ebp - 0x28]
cmp byte [ebp - 0x12], 0
je 0x10006274
lea eax, [edi + edx]
cmp eax, 0xfffffecc
jge 0x100061d3
divsd xmm1, qword [0x1016aee8]
add eax, 0x134
cmp eax, 0xfffffecc
jl 0x100061fb
shl eax, 3
mov ecx, 0x101055b0
sub ecx, eax
movaps xmm0, xmm1
divsd xmm0, qword [ecx]
jmp 0x100061f6
mov edx, dword [ebp - 0x28]
mov eax, 0x134
sub eax, edx
mov dword [ebp - 0x44], eax
cmp cl, 0x30
jl 0x10006144
mov al, byte [esi]
cmp al, 0x39
jg 0x10006141
movsx eax, byte [esi]
lea ecx, [edi + edi*4]
lea edi, [ecx - 0x18]
lea edx, [esi + 1]
mov dword [ebp - 0x60], edx
lea edi, [eax + edi*2]
cmp edi, dword [ebp - 0x44]
jg 0x1000620a
mov al, byte [edx]
mov esi, edx
cmp al, 0x30
jge 0x10006197
jmp 0x10006141
mov ecx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x20]
sub edi, esi
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x1c], edi
jmp 0x10006456
lea ecx, [eax*8]
movaps xmm0, xmm1
test eax, eax
js 0x100061eb
mulsd xmm0, qword [ecx + 0x101055b0]
jmp 0x100061f6
mov eax, 0x101055b0
sub eax, ecx
divsd xmm0, qword [eax]
movsd qword [ebp - 0x50], xmm0
movsd xmm0, qword [ebp - 0x50]
comisd xmm0, xmmword [0x1016aef0]
jbe 0x10006222
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x3c]
mov dword [ecx + 0x18], 0xd
mov dword [ecx + 0x1c], eax
mov esi, dword [ebp - 0x20]
jmp 0x10006456
cmp byte [ebp - 0x13], 0
je 0x1000622f
xorps xmm0, xmmword [0x1016b4b0]
mov esi, dword [ebx + 0xc]
movsd qword [ebp - 0x50], xmm0
mov eax, dword [esi + 0x28]
sub eax, dword [esi + 0x24]
cmp eax, 0x10
jge 0x1000624b
push ecx
lea ecx, [esi + 0x18]
call fcn.10006660
mov ecx, dword [esi + 0x24]
xorps xmm0, xmm0
movsd xmm3, qword [ebp - 0x50]
lea eax, [ecx + 0x10]
mov dword [esi + 0x24], eax
mov eax, 0x216
mov esi, dword [ebp - 0x20]
movups xmmword [ecx], xmm0
mov word [ecx + 0xe], ax
movsd qword [ecx], xmm3
jmp 0x10006456
cmp byte [ebp - 0x11], 0
mov eax, dword [ebx + 0xc]
lea edi, [eax + 0x18]
mov dword [ebp - 0x44], edi
je 0x100063bc
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
cmp byte [ebp - 0x13], 0
je 0x1000633d
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
neg esi
adc edi, 0
neg edi
cmp ecx, 0x10
jge 0x100062b2
push ecx
lea ecx, [eax + 0x18]
call fcn.10006660
mov ecx, dword [ebp - 0x44]
xorps xmm0, xmm0
mov edx, dword [ecx + 0xc]
lea eax, [edx + 0x10]
mov dword [ecx + 0xc], eax
mov eax, 0x96
movups xmmword [edx], xmm0
mov dword [edx], esi
mov dword [edx + 4], edi
mov word [edx + 0xe], ax
test edi, edi
jl 0x10006315
jg 0x100062dc
test esi, esi
jb 0x10006315
mov eax, 0x196
mov word [edx + 0xe], ax
mov ecx, eax
xor eax, eax
or eax, edi
jne 0x100062f8
mov eax, 0x1d6
mov word [edx + 0xe], ax
mov ecx, eax
and esi, 0x80000000
or esi, edi
jne 0x1000621a
mov esi, dword [ebp - 0x20]
or ecx, 0x20
mov word [edx + 0xe], cx
jmp 0x10006456
cmp edi, 0xffffffff
jl 0x1000621a
jg 0x1000632c
cmp esi, 0x80000000
jb 0x1000621a
mov esi, dword [ebp - 0x20]
mov eax, 0xb6
mov word [edx + 0xe], ax
jmp 0x10006456
cmp ecx, 0x10
jge 0x1000634a
push ecx
mov ecx, edi
call fcn.10006660
mov esi, dword [edi + 0xc]
xorps xmm0, xmm0
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
lea eax, [esi + 0x10]
mov dword [edi + 0xc], eax
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 0x10006384
jg 0x10006379
test ecx, ecx
jb 0x10006384
mov eax, 0x196
mov word [esi + 0xe], ax
mov edi, eax
movzx eax, di
mov dword [ebp - 0x44], eax
xor eax, eax
or eax, edx
jne 0x1000639c
or edi, 0x40
mov word [esi + 0xe], di
movzx eax, di
jmp 0x1000639f
mov eax, dword [ebp - 0x44]
and ecx, 0x80000000
or ecx, edx
jne 0x1000621a
or eax, 0x20
mov word [esi + 0xe], ax
mov esi, dword [ebp - 0x20]
jmp 0x10006456
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
cmp byte [ebp - 0x13], 0
je 0x10006409
mov esi, dword [ebp - 0x24]
neg esi
cmp eax, 0x10
jge 0x100063da
push ecx
mov ecx, edi
call fcn.10006660
mov ecx, dword [edi + 0xc]
xorps xmm0, xmm0
test esi, esi
lea eax, [ecx + 0x10]
mov dword [edi + 0xc], eax
mov eax, esi
mov esi, dword [ebp - 0x20]
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 0x10006456
cmp eax, 0x10
jge 0x10006416
push ecx
mov ecx, edi
call fcn.10006660
mov ecx, dword [edi + 0xc]
xorps xmm0, xmm0
mov esi, dword [ebp - 0x20]
lea eax, [ecx + 0x10]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x24]
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 0x10006456
mov esi, dword [ebp - 0x20]
sub eax, esi
mov dword [edx + 0x18], 3
mov dword [edx + 0x1c], eax
mov eax, dword [ebx + 8]
movq xmm0, qword [ebp - 0x60]
mov ecx, dword [ebp - 0xc]
pop edi
movq qword [eax], xmm0
mov dword [eax + 8], esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8