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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
push esi
push edi
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10005c3f
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x50], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
movzx eax, byte [eax]
test eax, eax
je 0x10005c07
mov dword [ebp - 0x44], 0x1920
cmp dword [ebp - 0x44], 0x1038
jge 0x10005be2
lea eax, [ebp - 0x5c]
push eax
push 0x10069980
call fcn.10049b6b
pop ecx
pop ecx
mov dword [ebp - 0x34], 1
jmp 0x10005581
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x5c]
jg 0x10005be2
and dword [ebp - 0x2c], 0
jmp 0x1000559a
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 9
jge 0x100055ba
imul eax, dword [ebp - 0x2c], 0xa
lea eax, [ebp + eax - 0x138]
push eax
push 0x10069f5c
call fcn.10049b6b
pop ecx
pop ecx
jmp 0x10005593
and dword [ebp - 0x18], 0
jmp 0x100055c7
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 9
jge 0x1000568d
mov byte [ebp - 0x26], 0
lea eax, [ebp - 0x26]
push eax
imul eax, dword [ebp - 0x18], 9
lea edx, [ebp + eax - 0x183]
imul eax, dword [ebp - 0x18], 9
lea ecx, [ebp + eax - 0x18c]
call fcn.1001ae5b
pop ecx
mov byte [ebp - 0x28], 0
lea eax, [ebp - 0x28]
push eax
imul eax, dword [ebp - 0x18], 9
lea edx, [ebp + eax - 0x22b]
imul eax, dword [ebp - 0x18], 9
lea ecx, [ebp + eax - 0x234]
call fcn.1001ae5b
pop ecx
mov byte [ebp - 0x25], 0
lea eax, [ebp - 0x25]
push eax
imul eax, dword [ebp - 0x18], 9
lea edx, [ebp + eax - 0x1d7]
imul eax, dword [ebp - 0x18], 9
lea ecx, [ebp + eax - 0x1e0]
call fcn.1001ae5b
pop ecx
and dword [ebp - 0x4c], 0
lea eax, [ebp - 0x4c]
push eax
lea edx, [ebp - 0x68]
lea ecx, [ebp - 0x8c]
call fcn.1001ae82
pop ecx
and dword [ebp - 0x64], 0
lea eax, [ebp - 0x64]
push eax
lea edx, [ebp - 0xb8]
lea ecx, [ebp - 0xdc]
call fcn.1001ae82
pop ecx
and dword [ebp - 0x60], 0
lea eax, [ebp - 0x60]
push eax
lea edx, [ebp - 0x90]
lea ecx, [ebp - 0xb4]
call fcn.1001ae82
pop ecx
jmp 0x100055c0
and dword [ebp - 0x14], 0
jmp 0x1000569a
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 9
jge 0x100057c7
and dword [ebp - 0x10], 0
jmp 0x100056b1
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 9
jge 0x100057c2
imul eax, dword [ebp - 0x14], 0xa
lea eax, [ebp + eax - 0x138]
mov ecx, dword [ebp - 0x10]
movsx eax, byte [eax + ecx]
cmp eax, 0x30
je 0x100057bd
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp + eax*4 - 0x8c]
inc eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp + ecx*4 - 0x8c], eax
imul eax, dword [ebp - 0x14], 9
lea eax, [ebp + eax - 0x18c]
imul ecx, dword [ebp - 0x14], 0xa
lea ecx, [ebp + ecx - 0x138]
mov edx, dword [ebp - 0x10]
movsx ecx, byte [ecx + edx]
mov byte [eax + ecx - 0x31], 1
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0xdc]
inc eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp + ecx*4 - 0xdc], eax
imul eax, dword [ebp - 0x10], 9
lea eax, [ebp + eax - 0x234]
imul ecx, dword [ebp - 0x14], 0xa
lea ecx, [ebp + ecx - 0x138]
mov edx, dword [ebp - 0x10]
movsx ecx, byte [ecx + edx]
mov byte [eax + ecx - 0x31], 1
mov eax, dword [ebp - 0x10]
cdq
push 3
pop ecx
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x14]
cdq
push 3
pop esi
idiv esi
imul eax, eax, 3
add eax, ecx
mov ecx, dword [ebp + eax*4 - 0xb4]
inc ecx
mov eax, dword [ebp - 0x10]
cdq
push 3
pop esi
idiv esi
mov esi, eax
mov eax, dword [ebp - 0x14]
cdq
push 3
pop edi
idiv edi
imul eax, eax, 3
add eax, esi
mov dword [ebp + eax*4 - 0xb4], ecx
mov eax, dword [ebp - 0x14]
cdq
push 3
pop ecx
idiv ecx
imul ecx, eax, 3
mov eax, dword [ebp - 0x10]
cdq
push 3
pop esi
idiv esi
add ecx, eax
imul eax, ecx, 9
lea eax, [ebp + eax - 0x1e0]
imul ecx, dword [ebp - 0x14], 0xa
lea ecx, [ebp + ecx - 0x138]
mov edx, dword [ebp - 0x10]
movsx ecx, byte [ecx + edx]
mov byte [eax + ecx - 0x31], 1
jmp 0x100056aa
jmp 0x10005693
mov byte [ebp - 9], 0
movzx eax, byte [ebp - 9]
test eax, eax
jne 0x10005b96
mov byte [ebp - 9], 1
and dword [ebp - 4], 0
jmp 0x100057e8
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 9
jge 0x10005b91
and dword [ebp - 8], 0
jmp 0x100057ff
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 9
jge 0x10005b8c
imul eax, dword [ebp - 4], 0xa
lea eax, [ebp + eax - 0x138]
mov ecx, dword [ebp - 8]
movsx eax, byte [eax + ecx]
cmp eax, 0x30
jne 0x10005b87
mov byte [ebp - 9], 0
mov eax, dword [ebp - 4]
cmp dword [ebp + eax*4 - 0x8c], 8
jne 0x1000593a
mov eax, dword [ebp - 4]
mov eax, dword [ebp + eax*4 - 0x8c]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ebp + ecx*4 - 0x8c], eax
mov eax, dword [ebp - 8]
mov eax, dword [ebp + eax*4 - 0xdc]
inc eax
mov ecx, dword [ebp - 8]
mov dword [ebp + ecx*4 - 0xdc], eax
mov eax, dword [ebp - 8]
cdq
push 3
pop ecx
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 4]
cdq
push 3
pop esi
idiv esi
imul eax, eax, 3
add eax, ecx
mov ecx, dword [ebp + eax*4 - 0xb4]
inc ecx
mov eax, dword [ebp - 8]
cdq
push 3
pop esi
idiv esi
mov esi, eax
mov eax, dword [ebp - 4]
cdq
push 3
pop edi
idiv edi
imul eax, eax, 3
add eax, esi
mov dword [ebp + eax*4 - 0xb4], ecx
and dword [ebp - 0x1c], 0
jmp 0x100058b1
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 9
jge 0x10005935
imul eax, dword [ebp - 4], 9
lea eax, [ebp + eax - 0x18c]
mov ecx, dword [ebp - 0x1c]
movzx eax, byte [eax + ecx]
test eax, eax
jne 0x10005930
imul eax, dword [ebp - 4], 9
lea eax, [ebp + eax - 0x18c]
mov ecx, dword [ebp - 0x1c]
mov byte [eax + ecx], 1
imul eax, dword [ebp - 8], 9
lea eax, [ebp + eax - 0x234]
mov ecx, dword [ebp - 0x1c]
mov byte [eax + ecx], 1
mov eax, dword [ebp - 4]
cdq
push 3
pop ecx
idiv ecx
imul ecx, eax, 3
mov eax, dword [ebp - 8]
cdq
push 3
pop esi
idiv esi
add ecx, eax
imul eax, ecx, 9
lea eax, [ebp + eax - 0x1e0]
mov ecx, dword [ebp - 0x1c]
mov byte [eax + ecx], 1
mov eax, dword [ebp - 0x1c]
add eax, 0x31
imul ecx, dword [ebp - 4], 0xa
lea ecx, [ebp + ecx - 0x138]
mov edx, dword [ebp - 8]
mov byte [ecx + edx], al
jmp 0x100058aa
jmp 0x10005b87
mov eax, dword [ebp - 8]
cmp dword [ebp + eax*4 - 0xdc], 8
jne 0x10005a4c
mov eax, dword [ebp - 4]
mov eax, dword [ebp + eax*4 - 0x8c]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ebp + ecx*4 - 0x8c], eax
mov eax, dword [ebp - 8]
mov eax, dword [ebp + eax*4 - 0xdc]
inc eax
mov ecx, dword [ebp - 8]
mov dword [ebp + ecx*4 - 0xdc], eax
mov eax, dword [ebp - 8]
cdq
push 3
pop ecx
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 4]
cdq
push 3
pop esi
idiv esi
imul eax, eax, 3
add eax, ecx
mov ecx, dword [ebp + eax*4 - 0xb4]
inc ecx
mov eax, dword [ebp - 8]
cdq
push 3
pop esi
idiv esi
mov esi, eax
mov eax, dword [ebp - 4]
cdq
push 3
pop edi
idiv edi
imul eax, eax, 3
add eax, esi
mov dword [ebp + eax*4 - 0xb4], ecx
and dword [ebp - 0x20], 0
jmp 0x100059c3
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 9
jge 0x10005a47
imul eax, dword [ebp - 8], 9
lea eax, [ebp + eax - 0x234]
mov ecx, dword [ebp - 0x20]
movzx eax, byte [eax + ecx]
test eax, eax
jne 0x10005a42
imul eax, dword [ebp - 4], 9
lea eax, [ebp + eax - 0x18c]
mov ecx, dword [ebp - 0x20]
mov byte [eax + ecx], 1
imul eax, dword [ebp - 8], 9
lea eax, [ebp + eax - 0x234]
mov ecx, dword [ebp - 0x20]
mov byte [eax + ecx], 1
mov eax, dword [ebp - 4]
cdq
push 3
pop ecx
idiv ecx
imul ecx, eax, 3
mov eax, dword [ebp - 8]
cdq
push 3
pop esi
idiv esi
add ecx, eax
imul eax, ecx, 9
lea eax, [ebp + eax - 0x1e0]
mov ecx, dword [ebp - 0x20]
mov byte [eax + ecx], 1
mov eax, dword [ebp - 0x20]
add eax, 0x31
imul ecx, dword [ebp - 4], 0xa
lea ecx, [ebp + ecx - 0x138]
mov edx, dword [ebp - 8]
mov byte [ecx + edx], al
jmp 0x100059bc
jmp 0x10005b87
mov eax, dword [ebp - 4]
cdq
push 3
pop ecx
idiv ecx
imul ecx, eax, 3
mov eax, dword [ebp - 8]
cdq
push 3
pop esi
idiv esi
add ecx, eax
cmp dword [ebp + ecx*4 - 0xb4], 8
jne 0x10005b87
mov eax, dword [ebp - 4]
mov eax, dword [ebp + eax*4 - 0x8c]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ebp + ecx*4 - 0x8c], eax
mov eax, dword [ebp - 8]
mov eax, dword [ebp + eax*4 - 0xdc]
inc eax
mov ecx, dword [ebp - 8]
mov dword [ebp + ecx*4 - 0xdc], eax
mov eax, dword [ebp - 8]
cdq
push 3
pop ecx
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 4]
cdq
push 3
pop esi
idiv esi
imul eax, eax, 3
add eax, ecx
mov ecx, dword [ebp + eax*4 - 0xb4]
inc ecx
mov eax, dword [ebp - 8]
cdq
push 3
pop esi
idiv esi
mov esi, eax
mov eax, dword [ebp - 4]
cdq
push 3
pop edi
idiv edi
imul eax, eax, 3
add eax, esi
mov dword [ebp + eax*4 - 0xb4], ecx
and dword [ebp - 0x24], 0
jmp 0x10005ae9
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 9
jge 0x10005b87
mov eax, dword [ebp - 4]
cdq
push 3
pop ecx
idiv ecx
imul ecx, eax, 3
mov eax, dword [ebp - 8]
cdq
push 3
pop esi
idiv esi
add ecx, eax
imul eax, ecx, 9
lea eax, [ebp + eax - 0x1e0]
mov ecx, dword [ebp - 0x24]
movzx eax, byte [eax + ecx]
test eax, eax
jne 0x10005b82
imul eax, dword [ebp - 4], 9
lea eax, [ebp + eax - 0x18c]
mov ecx, dword [ebp - 0x24]
mov byte [eax + ecx], 1
imul eax, dword [ebp - 8], 9
lea eax, [ebp + eax - 0x234]
mov ecx, dword [ebp - 0x24]
mov byte [eax + ecx], 1
mov eax, dword [ebp - 4]
cdq
push 3
pop ecx
idiv ecx
imul ecx, eax, 3
mov eax, dword [ebp - 8]
cdq
push 3
pop esi
idiv esi
add ecx, eax
imul eax, ecx, 9
lea eax, [ebp + eax - 0x1e0]
mov ecx, dword [ebp - 0x24]
mov byte [eax + ecx], 1
mov eax, dword [ebp - 0x24]
add eax, 0x31
imul ecx, dword [ebp - 4], 0xa
lea ecx, [ebp + ecx - 0x138]
mov edx, dword [ebp - 8]
mov byte [ecx + edx], al
jmp 0x10005ae2
jmp 0x100057f8
jmp 0x100057e1
jmp 0x100057cb
push dword [ebp - 0x34]
push str.Scenario__d:_n
call fcn.10049d9f
pop ecx
pop ecx
and dword [ebp - 0x30], 0
jmp 0x10005bb2
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 9
jge 0x10005bd2
imul eax, dword [ebp - 0x30], 0xa
lea eax, [ebp + eax - 0x138]
push eax
push 0x10069f70
call fcn.10049d9f
pop ecx
pop ecx
jmp 0x10005bab
push 0x10069f74
call fcn.10049d9f
pop ecx
jmp 0x1000557a
mov byte [ebp - 0x27], 0
lea eax, [ebp - 0x27]
push eax
push 1
push 1
push 0x2133
push 0x41b2
push 0x4c36
call fcn.10003cae
add esp, 0x18
jmp 0x10005c3d
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x38]
mov eax, dword [eax]
imul esi, dword [eax], 0xa
mov ecx, dword [ebp - 0x48]
call fcn.10016b05
movsx eax, byte [eax]
lea eax, [esi + eax - 0x30]
mov ecx, dword [ebp - 0x38]
mov ecx, dword [ecx]
mov dword [ecx], eax
jmp 0x10005c47
push 1
call fcn.10003f25
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret