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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [edi + 0x14]
add eax, 0x14
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
call fcn.00407718
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov bl, byte [eax]
xor esi, esi
mov dword [ebp - 0x10], esi
mov byte [ebp - 0xc], bl
test bl, bl
je 0x407607
mov dword [ebp - 4], eax
mov dword [ebp - 8], esi
inc dword [ebp - 4]
movzx eax, bl
push eax
call dword [0x1e0e5234]
pop ecx
test eax, eax
jne 0x4075f7
mov al, bl
sub al, 0x30
cmp al, 9
jbe 0x456689
xor esi, esi
inc esi
movsx eax, bl
push eax
mov eax, dword [ebp - 0x18]
call fcn.0040751c
pop ecx
test eax, eax
je 0x4566fb
cmp bl, 0x70
je 0x4566d3
cmp bl, 0x73
je 0x4566d3
cmp bl, 0x78
je 0x4075c0
add dword [ebp - 8], esi
mov ebx, dword [eax + 4]
push dword [ebp - 0xc]
mov ecx, eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], ebx
imul ebx, esi
call fcn.004076fc
add eax, ebx
mov dword [ebp - 0x10], eax
mov eax, ebx
cdq
idiv dword [ebp - 0x1c]
pop ecx
cmp eax, esi
jne 0x4566e9
cmp dword [ebp - 0x10], 0
jl 0x4566e9
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov bl, byte [eax]
mov byte [ebp - 0xc], bl
test bl, bl
jne 0x407570
lea eax, [esi + 1]
cmp eax, 0xaaaaaaa
ja 0x4566db
mov eax, dword [ebp - 0x10]
mov dword [edi + 8], eax
lea eax, [esi + 1]
imul eax, eax, 0xc
mov dword [edi + 0xc], esi
cmp eax, 0x7fffffff
ja 0x45670b
test eax, eax
je 0x456703
push eax
call dword [0x1e0e51e4]
pop ecx
mov esi, eax
test esi, esi
je 0x4566db
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x10], esi
mov bl, byte [eax]
xor edi, edi
mov dword [ebp - 4], eax
test bl, bl
je 0x4076eb
mov byte [ebp - 0xc], bl
inc dword [ebp - 4]
movzx eax, bl
push eax
call dword [0x1e0e5234]
pop ecx
test eax, eax
jne 0x4076db
mov al, bl
sub al, 0x30
cmp al, 9
jbe 0x456712
mov dword [ebp - 8], 1
movsx eax, bl
push eax
mov eax, dword [ebp - 0x18]
call fcn.0040751c
push dword [ebp - 0xc]
mov ecx, eax
mov eax, edi
mov dword [ebp - 0x14], ecx
call fcn.004076fc
pop ecx
pop ecx
mov edi, eax
cmp bl, 0x73
je 0x456767
cmp bl, 0x70
je 0x456767
cmp bl, 0x78
je 0x45675f
dec dword [ebp - 8]
js 0x4076db
mov eax, dword [ebp - 0x14]
mov dword [esi + 4], edi
mov ecx, dword [eax + 4]
mov dword [esi + 8], ecx
mov dword [esi], eax
add esi, 0xc
add edi, dword [eax + 4]
jmp 0x4076c0
mov eax, dword [ebp - 4]
mov bl, byte [eax]
mov byte [ebp - 0xc], bl
test bl, bl
jne 0x407661
and dword [esi], 0
and dword [esi + 8], 0
mov dword [esi + 4], edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
movsx esi, bl
sub esi, 0x30
jmp 0x4566b3
inc dword [ebp - 4]
cmp bl, 0x39
jg 0x4566c3
mov eax, esi
imul eax, eax, 0xa
movsx ecx, bl
lea ecx, [eax + ecx - 0x30]
mov eax, ecx
push 0xa
cdq
pop ebx
idiv ebx
cmp eax, esi
jne 0x4566e2
mov esi, ecx
mov eax, dword [ebp - 4]
mov bl, byte [eax]
cmp bl, 0x30
mov byte [ebp - 0xc], bl
jge 0x456691
inc dword [ebp - 4]
test bl, bl
jne 0x407591
mov esi, dword [ebp - 8]
jmp 0x407607
inc dword [ebp - 8]
jmp 0x4075c0
call fcn.004cb843
jmp 0x4566fb
push 0x1e0e8050
jmp 0x4566ee
push 0x1e0e8068
push dword [0x1e1f8eac]
call fcn.0040917c
pop ecx
pop ecx
or eax, 0xffffffff
jmp 0x4076f7
xor eax, eax
inc eax
jmp 0x407637
xor esi, esi
jmp 0x407641
mov ecx, dword [ebp - 4]
movsx eax, bl
mov bl, byte [ecx]
sub eax, 0x30
cmp bl, 0x30
mov dword [ebp - 8], eax
mov byte [ebp - 0xc], bl
jge 0x45672d
jmp 0x45674f
mov eax, dword [ebp - 8]
inc dword [ebp - 4]
cmp bl, 0x39
jg 0x456752
imul eax, eax, 0xa
movsx ecx, bl
lea eax, [eax + ecx - 0x30]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov bl, byte [eax]
cmp bl, 0x30
mov byte [ebp - 0xc], bl
jge 0x45672a
inc dword [ebp - 4]
test bl, bl
je 0x4076eb
jmp 0x407686
add edi, dword [ebp - 8]
jmp 0x4076db
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
mov dword [esi + 4], edi
mov dword [esi + 8], eax
mov dword [esi], ecx
add esi, 0xc
add edi, eax
jmp 0x4076db