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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x7c0650]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2c], eax
movzx eax, word [ecx]
test ax, ax
push ebx
mov ebx, dword [ebp + 0x10]
je 0x417498
push esi
push edi
jmp 0x416f8e
mov ecx, dword [ebp - 0x34]
inc ecx
inc ecx
cmp ax, 0x25
mov dword [ebp - 0x34], ecx
je 0x416f9f
push eax
jmp 0x41733d
and dword [ebp - 0x24], 0
and dword [ebp - 0x28], 0
mov esi, dword [ebp - 0x34]
mov edi, dword [ebp - 0x2c]
mov byte [ebp - 0x1a], 0
mov byte [ebp - 0x19], 0
mov dword [ebp - 0x38], 0x20
movzx edx, word [esi]
movzx eax, dx
inc esi
inc esi
mov ecx, eax
sub ecx, 0
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x34], esi
je 0x417496
sub ecx, 0x2d
je 0x41707b
dec ecx
je 0x417072
sub ecx, 0x21
je 0x416fbc
sub ecx, 0xc
je 0x417057
lea ecx, [eax - 0x30]
cmp ecx, 0xa
jae 0x416ffc
lea ecx, [eax - 0x30]
jmp 0x417011
movzx ecx, word [0x7c261c]
sub eax, ecx
cmp eax, 0xa
jae 0x41700e
mov ecx, eax
jmp 0x417011
or ecx, 0xffffffff
cmp ecx, 9
ja 0x417084
test ecx, ecx
jne 0x417031
mov eax, dword [edi + 4]
test eax, eax
jne 0x41702a
mov dword [ebp - 0x38], 0x30
jmp 0x417031
movzx eax, word [eax + 0x24]
mov dword [ebp - 0x38], eax
cmp byte [ebp - 0x19], 0
je 0x417047
mov eax, dword [ebp - 0x28]
imul eax, eax, 0xa
add eax, ecx
mov dword [ebp - 0x28], eax
jmp 0x416fbc
mov eax, dword [ebp - 0x24]
imul eax, eax, 0xa
add eax, ecx
mov dword [ebp - 0x24], eax
jmp 0x416fbc
push 0x5d
push esi
call fcn.0064d557
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x416fbc
inc esi
inc esi
jmp 0x416fbc
mov byte [ebp - 0x19], 1
jmp 0x416fbc
mov byte [ebp - 0x1a], 1
jmp 0x416fbc
movzx eax, dx
xor esi, esi
xor cl, cl
cmp eax, 0x5a
mov dword [ebp - 0x30], esi
jg 0x4171f6
je 0x417487
cmp eax, 0x49
jg 0x417170
je 0x41715e
cmp eax, 0x42
jg 0x417119
je 0x417105
test eax, eax
je 0x417496
cmp eax, 0x2f
je 0x4170fb
cmp eax, 0x3a
je 0x4170eb
cmp eax, 0x41
jne 0x41733a
mov eax, dword [ebx + 0x18]
cmp eax, 7
jge 0x417487
mov edx, edi
mov eax, dword [edx + eax*4 + 0x88]
mov dword [ebp - 0x30], eax
jmp 0x417363
mov eax, edi
mov eax, dword [eax + 0xb8]
mov dword [ebp - 0x30], eax
jmp 0x417371
mov eax, edi
mov eax, dword [eax + 0xbc]
jmp 0x4170e3
mov eax, dword [ebx + 0x10]
cmp eax, 0xc
jge 0x417487
mov edx, edi
mov eax, dword [edx + eax*4 + 0x3c]
jmp 0x4170e3
sub eax, 0x43
je 0x417149
dec eax
je 0x417132
sub eax, 4
jne 0x41733a
mov esi, dword [ebx + 8]
jmp 0x417371
push edi
push ebx
push str._m___d___y
push dword [ebp - 0x20]
call fcn.00416f58
add esp, 0x10
jmp 0x417487
mov eax, dword [ebx + 0x14]
add eax, 0x76c
push 0x64
cdq
pop esi
idiv esi
mov esi, eax
jmp 0x417363
mov eax, dword [ebx + 8]
dec eax
push 0xc
cdq
pop ecx
idiv ecx
mov esi, edx
inc esi
jmp 0x417371
cmp eax, 0x55
jg 0x4171b9
je 0x4171ac
sub eax, 0x4d
je 0x4171a4
sub eax, 5
je 0x41719b
dec eax
je 0x417194
dec eax
jne 0x41733a
push edi
push ebx
push str._H_:_M_:_S
jmp 0x417139
mov esi, dword [ebx]
jmp 0x417371
push edi
push ebx
push str._H_:_M
jmp 0x417139
mov esi, dword [ebx + 4]
jmp 0x417371
mov eax, dword [ebx + 0x1c]
sub eax, dword [ebx + 0x18]
add eax, 7
push 7
jmp 0x417153
sub eax, 0x57
je 0x4171e5
dec eax
je 0x4171d6
dec eax
jne 0x41733a
mov esi, dword [ebx + 0x14]
add esi, 0x76c
jmp 0x417363
mov eax, edi
push eax
push ebx
push dword [eax + 0xa4]
jmp 0x417139
mov eax, dword [ebx + 0x18]
dec eax
cdq
push 7
pop esi
idiv esi
mov eax, dword [ebx + 0x1c]
sub eax, edx
jmp 0x4171b2
cmp eax, 0x6d
jg 0x4172d4
je 0x4172c8
cmp eax, 0x64
jg 0x417273
je 0x4172c0
sub eax, 0x5f
je 0x417265
dec eax
dec eax
je 0x41724e
dec eax
je 0x4172a2
dec eax
jne 0x41733a
push edi
push ebx
push 0x718d10
push dword [ebp - 0x20]
call fcn.00416f58
push edi
push ebx
push dword [edi + 0xc0]
push dword [ebp - 0x20]
call fcn.00416f58
add esp, 0x20
jmp 0x417487
mov eax, dword [ebx + 0x18]
cmp eax, 7
jge 0x417487
mov edx, edi
mov eax, dword [edx + eax*4 + 0x6c]
jmp 0x4170e3
mov cl, 1
mov dword [ebp - 0x30], 0x718d0c
jmp 0x417363
sub eax, 0x65
je 0x4172b9
push 3
pop edx
sub eax, edx
je 0x4172a2
dec eax
dec eax
jne 0x41733a
cmp dword [ebp - 0x24], eax
jne 0x417299
cmp byte [ebp - 0x1a], al
jne 0x417299
cmp byte [ebp - 0x19], al
jne 0x417299
mov dword [ebp - 0x28], edx
mov esi, dword [ebx + 0x1c]
inc esi
jmp 0x417363
mov eax, dword [ebx + 0x10]
cmp eax, 0xc
jge 0x417487
mov edx, edi
mov eax, dword [edx + eax*4 + 0xc]
jmp 0x4170e3
mov dword [ebp - 0x24], 2
mov esi, dword [ebx + 0xc]
jmp 0x417363
mov esi, dword [ebx + 0x10]
mov dword [ebp - 0x24], 2
jmp 0x41729c
cmp eax, 0x75
jg 0x41732f
je 0x417320
sub eax, 0x6e
je 0x41731c
dec eax
dec eax
je 0x417307
dec eax
dec eax
je 0x4172fb
dec eax
dec eax
jne 0x41733a
push 9
mov ecx, dword [ebp - 0x20]
call fcn.00416f25
jmp 0x417382
push edi
push ebx
push str._I_:_M_:_S__p
jmp 0x417139
xor eax, eax
cmp dword [ebx + 8], 0xc
setge al
mov eax, dword [edi + eax*4 + 0xb0]
jmp 0x4170f3
push 0xa
jmp 0x4172ee
mov eax, dword [ebx + 0x18]
dec eax
push 7
cdq
pop esi
idiv esi
mov esi, edx
inc esi
jmp 0x41735f
sub eax, 0x77
je 0x41735c
dec eax
je 0x41734f
dec eax
je 0x41734a
push dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x20]
call fcn.00416f25
jmp 0x417487
mov esi, dword [ebx + 0x14]
jmp 0x417363
push edi
push ebx
push dword [edi + 0xa8]
jmp 0x417139
mov esi, dword [ebx + 0x18]
mov byte [ebp - 0x19], 1
cmp dword [ebx + 0x18], 0xffffffff
je 0x417487
test cl, cl
je 0x41737b
cmp dword [ebx + 8], 0xffffffff
je 0x417487
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x4173ec
cmp dword [ebp - 0x24], 0
jne 0x41739b
cmp byte [ebp - 0x1a], 0
jne 0x41739b
cmp byte [ebp - 0x19], 0
jne 0x41739b
mov dword [ebp - 0x28], 2
and word [ebp - 6], 0
mov eax, edi
movzx edi, word [eax + 0xc4]
lea ecx, [ebp - 6]
mov eax, esi
xor edx, edx
push 0xa
pop esi
div esi
dec ecx
dec ecx
add edx, edi
cmp dword [ebp - 0x28], 0
mov word [ecx], dx
mov esi, eax
jbe 0x4173c7
dec dword [ebp - 0x28]
test esi, esi
je 0x4173d2
lea eax, [ebp - 0x18]
cmp ecx, eax
jne 0x4173ac
mov eax, ecx
mov dword [ebp - 0x30], ecx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4173da
sub eax, edx
sar eax, 1
mov esi, eax
jmp 0x417411
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4173ef
sub eax, edx
sar eax, 1
cmp dword [ebp - 0x28], 0
mov esi, eax
jbe 0x41740d
cmp esi, dword [ebp - 0x28]
jbe 0x41740d
mov esi, dword [ebp - 0x28]
and dword [ebp - 0x28], 0
cmp byte [ebp - 0x1a], 0
jne 0x41742f
cmp esi, dword [ebp - 0x24]
jae 0x41742f
sub dword [ebp - 0x24], esi
push dword [ebp - 0x38]
mov ecx, dword [ebp - 0x20]
call fcn.00416f25
dec dword [ebp - 0x24]
jne 0x41741f
cmp dword [ebp - 0x28], 0
jbe 0x41744d
mov eax, dword [ebp - 0x2c]
movzx eax, word [eax + 0xc4]
mov ecx, dword [ebp - 0x20]
push eax
call fcn.00416f25
dec dword [ebp - 0x28]
jne 0x417435
test esi, esi
jbe 0x41746a
mov edi, dword [ebp - 0x30]
movzx eax, word [edi]
test ax, ax
je 0x41746a
mov ecx, dword [ebp - 0x20]
push eax
call fcn.00416f25
inc edi
inc edi
dec esi
jne 0x417454
cmp byte [ebp - 0x1a], 0
je 0x417487
cmp esi, dword [ebp - 0x24]
jae 0x417487
sub dword [ebp - 0x24], esi
mov ecx, dword [ebp - 0x20]
push 0x20
call fcn.00416f25
dec dword [ebp - 0x24]
jne 0x417478
mov eax, dword [ebp - 0x34]
movzx eax, word [eax]
test ax, ax
jne 0x416f8b
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00644f58
leave
ret