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

Disassembly:
mov eax, 0x6222ce
call fcn.0060aa10
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov ecx, esi
call fcn.0043d669
cmp ebx, dword [ebp + 0xc]
jne 0x43cd99
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.004159e7
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x38]
mov dword [ebp + 8], esi
call fcn.0043d70b
cmp ebx, dword [ebp + 0xc]
jae 0x43d137
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x2c]
test eax, 0xfffffffc
je 0x43d137
lea eax, [ebp - 0x38]
call fcn.0043d6bc
mov edi, dword [eax]
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x2c]
and eax, 0xfffffffc
cmp eax, 0xfa0
jg 0x43d00c
mov al, byte [ebx]
inc ebx
mov byte [ebp + 0xb], al
cmp ebx, dword [ebp + 0xc]
jb 0x43ce00
cmp al, 0x65
jne 0x43d048
mov ecx, dword [edi]
dec ecx
je 0x43ce33
dec ecx
jne 0x43cee0
cmp al, 0x65
je 0x43ce37
mov esi, edi
call fcn.0043d488
mov dword [ebp - 0x10], eax
test eax, eax
je 0x43d058
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x38]
call fcn.0043d70b
jmp 0x43cee0
cmp al, 0x65
jne 0x43ce54
mov dword [edi + 0x14], ebx
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x2c]
test eax, 0xfffffffc
je 0x43cffb
sub dword [ebp - 0x28], 4
jmp 0x43cffb
mov cl, al
sub cl, 0x30
cmp cl, 9
ja 0x43d069
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.0043cd25
mov ebx, eax
xor esi, esi
pop ecx
pop ecx
cmp ebx, esi
je 0x43d123
mov eax, dword [ebp - 0x18]
lea eax, [eax + ebx + 3]
cmp eax, dword [ebp + 0xc]
ja 0x43d123
cmp byte [ebx], 0x3a
jne 0x43d123
inc ebx
cmp ebx, dword [ebp + 0xc]
je 0x43d079
push ebx
mov esi, edi
call fcn.0043d1a0
mov dword [ebp + 8], eax
test eax, eax
je 0x43d0b8
add ebx, dword [ebp - 0x18]
cmp ebx, dword [ebp + 0xc]
jae 0x43d0db
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x38]
call fcn.0043d70b
mov al, byte [ebx]
mov byte [ebp + 0xb], al
inc ebx
lea eax, [ebp - 0x38]
call fcn.0043d6bc
mov edi, dword [eax]
mov al, byte [ebp + 0xb]
cmp al, 0x64
je 0x43cfe7
cmp al, 0x69
je 0x43cfa7
cmp al, 0x6c
je 0x43cf9f
mov cl, al
sub cl, 0x30
cmp cl, 9
ja 0x43d0f0
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.0043cd25
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
je 0x43d101
mov esi, dword [ebp - 0x20]
lea eax, [esi + ecx + 1]
cmp eax, dword [ebp + 0xc]
ja 0x43d101
cmp byte [ecx], 0x3a
jne 0x43d101
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 0x43cf7c
push 0xa
cdq
pop ebx
idiv ebx
inc dword [ebp + 8]
cmp eax, ebx
jge 0x43cf6f
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 0x43cf9b
sub dword [ebp - 0x28], 4
mov ebx, ecx
jmp 0x43cffb
mov dword [edi], 2
jmp 0x43cfed
mov ecx, ebx
cmp ebx, dword [ebp + 0xc]
jae 0x43cfb9
cmp byte [ecx], 0x65
je 0x43cfb9
inc ecx
cmp ecx, dword [ebp + 0xc]
jb 0x43cfae
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 0x43d112
lea ebx, [ecx + 1]
jmp 0x43ce3a
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 0x43d137
mov esi, dword [ebp + 0x10]
jmp 0x43cdbe
mov ecx, esi
call fcn.0043d669
mov dword [ebp - 4], 1
xor esi, esi
cmp dword [ebp - 0x2c], esi
je 0x43d02a
push dword [ebp - 0x2c]
call fcn.005b2946
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.0044ff39
or eax, 0xffffffff
jmp 0x43cd8a
mov ecx, esi
call fcn.0043d669
mov dword [ebp - 4], 3
jmp 0x43d01a
mov ecx, dword [ebp + 0x10]
call fcn.0043d669
mov dword [ebp - 4], 9
jmp 0x43d0c7
mov ecx, esi
call fcn.0043d669
mov dword [ebp - 4], 4
jmp 0x43d01a
mov ecx, dword [ebp + 0x10]
call fcn.0043d669
mov dword [ebp - 4], 6
cmp dword [ebp - 0x2c], esi
je 0x43d096
push dword [ebp - 0x2c]
call fcn.005b2946
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.0044ff39
mov eax, esi
jmp 0x43cd8a
mov ecx, dword [ebp + 0x10]
call fcn.0043d669
mov dword [ebp - 4], 7
cmp dword [ebp - 0x2c], 0
je 0x43d0d6
push dword [ebp - 0x2c]
call fcn.005b2946
pop ecx
push 0xfffffffffffffffe
pop esi
jmp 0x43d099
mov ecx, dword [ebp + 0x10]
call fcn.0043d669
mov dword [ebp - 4], 8
cmp dword [ebp - 0x2c], 0
jmp 0x43d08b
mov ecx, dword [ebp + 0x10]
call fcn.0043d669
mov dword [ebp - 4], 0xb
jmp 0x43d0ea
mov ecx, dword [ebp + 0x10]
call fcn.0043d669
mov dword [ebp - 4], 0xc
jmp 0x43d0ea
mov ecx, dword [ebp + 0x10]
call fcn.0043d669
mov dword [ebp - 4], 0xa
jmp 0x43d0ea
mov ecx, dword [ebp + 0x10]
call fcn.0043d669
mov dword [ebp - 4], 5
jmp 0x43d01c
mov dword [ebp - 4], 0xd
xor esi, esi
cmp dword [ebp - 0x2c], esi
je 0x43d099
push dword [ebp - 0x2c]
call fcn.005b2946
pop ecx
jmp 0x43d099