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

Disassembly:
mov eax, 0x624e64
call fcn.0060ebd0
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov ecx, esi
call fcn.0042fb63
cmp ebx, dword [ebp + 0xc]
jne 0x42f293
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
lea eax, [ebp - 0x38]
push eax
call fcn.0043ad8a
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x38]
mov dword [ebp + 8], esi
call fcn.0042fc05
cmp ebx, dword [ebp + 0xc]
jae 0x42f631
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x2c]
test eax, 0xfffffffc
je 0x42f631
lea eax, [ebp - 0x38]
call fcn.0042fbb6
mov edi, dword [eax]
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x2c]
and eax, 0xfffffffc
cmp eax, 0xfa0
jg 0x42f506
mov al, byte [ebx]
inc ebx
mov byte [ebp + 0xb], al
cmp ebx, dword [ebp + 0xc]
jb 0x42f2fa
cmp al, 0x65
jne 0x42f542
mov ecx, dword [edi]
dec ecx
je 0x42f32d
dec ecx
jne 0x42f3da
cmp al, 0x65
je 0x42f331
mov esi, edi
call fcn.0042f982
mov dword [ebp - 0x10], eax
test eax, eax
je 0x42f552
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x38]
call fcn.0042fc05
jmp 0x42f3da
cmp al, 0x65
jne 0x42f34e
mov dword [edi + 0x14], ebx
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x2c]
test eax, 0xfffffffc
je 0x42f4f5
sub dword [ebp - 0x28], 4
jmp 0x42f4f5
mov cl, al
sub cl, 0x30
cmp cl, 9
ja 0x42f563
movsx eax, al
sub eax, 0x30
cdq
push 0x3a
push dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
lea esi, [ebp - 0x18]
mov eax, ebx
mov dword [ebp - 0x14], edx
call fcn.0042f21f
mov ebx, eax
xor esi, esi
pop ecx
pop ecx
cmp ebx, esi
je 0x42f61d
mov eax, dword [ebp - 0x18]
lea eax, [eax + ebx + 3]
cmp eax, dword [ebp + 0xc]
ja 0x42f61d
cmp byte [ebx], 0x3a
jne 0x42f61d
inc ebx
cmp ebx, dword [ebp + 0xc]
je 0x42f573
push ebx
mov esi, edi
call fcn.0042f69a
mov dword [ebp + 8], eax
test eax, eax
je 0x42f5b2
add ebx, dword [ebp - 0x18]
cmp ebx, dword [ebp + 0xc]
jae 0x42f5d5
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x38]
call fcn.0042fc05
mov al, byte [ebx]
mov byte [ebp + 0xb], al
inc ebx
lea eax, [ebp - 0x38]
call fcn.0042fbb6
mov edi, dword [eax]
mov al, byte [ebp + 0xb]
cmp al, 0x64
je 0x42f4e1
cmp al, 0x69
je 0x42f4a1
cmp al, 0x6c
je 0x42f499
mov cl, al
sub cl, 0x30
cmp cl, 9
ja 0x42f5ea
movsx eax, al
sub eax, 0x30
cdq
push 0x3a
push dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
lea esi, [ebp - 0x20]
mov eax, ebx
mov dword [ebp - 0x1c], edx
call fcn.0042f21f
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
je 0x42f5fb
mov esi, dword [ebp - 0x20]
lea eax, [esi + ecx + 1]
cmp eax, dword [ebp + 0xc]
ja 0x42f5fb
cmp byte [ecx], 0x3a
jne 0x42f5fb
inc ecx
cmp esi, 0xa
mov dword [edi], 3
mov dword [edi + 4], ecx
mov dword [edi + 8], esi
mov eax, esi
mov dword [ebp + 8], 1
jl 0x42f476
push 0xa
cdq
pop ebx
idiv ebx
inc dword [ebp + 8]
cmp eax, ebx
jge 0x42f469
mov eax, ecx
sub eax, dword [ebp + 8]
add ecx, esi
dec eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x2c]
test eax, 0xfffffffc
je 0x42f495
sub dword [ebp - 0x28], 4
mov ebx, ecx
jmp 0x42f4f5
mov dword [edi], 2
jmp 0x42f4e7
mov ecx, ebx
cmp ebx, dword [ebp + 0xc]
jae 0x42f4b3
cmp byte [ecx], 0x65
je 0x42f4b3
inc ecx
cmp ecx, dword [ebp + 0xc]
jb 0x42f4a8
mov eax, ecx
sub eax, ebx
mov dword [edi + 8], eax
lea edx, [ebx - 1]
lea eax, [eax + ebx + 1]
mov dword [edi], 4
mov dword [edi + 4], ebx
mov dword [edi + 0x10], edx
mov dword [edi + 0x14], eax
cmp ecx, dword [ebp + 0xc]
je 0x42f60c
lea ebx, [ecx + 1]
jmp 0x42f334
mov dword [edi], 1
and dword [edi + 8], 0
and dword [edi + 0xc], 0
lea eax, [ebx - 1]
mov dword [edi + 0x10], eax
cmp ebx, dword [ebp + 0xc]
jae 0x42f631
mov esi, dword [ebp + 0x10]
jmp 0x42f2b8
mov ecx, esi
call fcn.0042fb63
mov dword [ebp - 4], 1
xor esi, esi
cmp dword [ebp - 0x2c], esi
je 0x42f524
push dword [ebp - 0x2c]
call fcn.005a6104
pop ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x38]
push eax
call fcn.0049d1cb
or eax, 0xffffffff
jmp 0x42f284
mov ecx, esi
call fcn.0042fb63
mov dword [ebp - 4], 3
jmp 0x42f514
mov ecx, dword [ebp + 0x10]
call fcn.0042fb63
mov dword [ebp - 4], 9
jmp 0x42f5c1
mov ecx, esi
call fcn.0042fb63
mov dword [ebp - 4], 4
jmp 0x42f514
mov ecx, dword [ebp + 0x10]
call fcn.0042fb63
mov dword [ebp - 4], 6
cmp dword [ebp - 0x2c], esi
je 0x42f590
push dword [ebp - 0x2c]
call fcn.005a6104
pop ecx
or esi, 0xffffffff
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x38]
push eax
call fcn.0049d1cb
mov eax, esi
jmp 0x42f284
mov ecx, dword [ebp + 0x10]
call fcn.0042fb63
mov dword [ebp - 4], 7
cmp dword [ebp - 0x2c], 0
je 0x42f5d0
push dword [ebp - 0x2c]
call fcn.005a6104
pop ecx
push 0xfffffffffffffffe
pop esi
jmp 0x42f593
mov ecx, dword [ebp + 0x10]
call fcn.0042fb63
mov dword [ebp - 4], 8
cmp dword [ebp - 0x2c], 0
jmp 0x42f585
mov ecx, dword [ebp + 0x10]
call fcn.0042fb63
mov dword [ebp - 4], 0xb
jmp 0x42f5e4
mov ecx, dword [ebp + 0x10]
call fcn.0042fb63
mov dword [ebp - 4], 0xc
jmp 0x42f5e4
mov ecx, dword [ebp + 0x10]
call fcn.0042fb63
mov dword [ebp - 4], 0xa
jmp 0x42f5e4
mov ecx, dword [ebp + 0x10]
call fcn.0042fb63
mov dword [ebp - 4], 5
jmp 0x42f516
mov dword [ebp - 4], 0xd
xor esi, esi
cmp dword [ebp - 0x2c], esi
je 0x42f593
push dword [ebp - 0x2c]
call fcn.005a6104
pop ecx
jmp 0x42f593