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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100750b2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1a4
push esi
movzx eax, byte [ebp + 0x38]
test eax, eax
je 0x1004205a
mov eax, dword [ebp + 0x40]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x74], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x9c]
movzx eax, byte [eax]
test eax, eax
je 0x10042037
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0xb4], 0x13c3
cmp dword [ebp - 0xb4], 0x10b5
jge 0x10042014
call fcn.1005d0b5
push 0x20
pop ecx
imul ecx, ecx, 0
add eax, ecx
push eax
push 0x10007884
push 0x10007888
call fcn.1005d60f
add esp, 0xc
call fcn.1005d0b5
push 0x20
pop ecx
shl ecx, 0
add eax, ecx
push eax
push 0x10007890
push 0x10007894
call fcn.1005d60f
add esp, 0xc
push 4
pop eax
imul eax, eax, 0
mov dword [ebp + eax - 0x110], 1
push 0x10
pop eax
imul eax, eax, 0
lea eax, [ebp + eax - 0x1b0]
push 4
pop ecx
imul ecx, ecx, 0
and dword [eax + ecx], 0
push 4
pop eax
shl eax, 0
mov dword [ebp + eax - 0x110], 1
push 0x10
pop eax
shl eax, 0
lea eax, [ebp + eax - 0x1b0]
push 4
pop ecx
imul ecx, ecx, 0
mov dword [eax + ecx], 1
push 4
pop eax
shl eax, 1
mov dword [ebp + eax - 0x110], 4
push 0x10
pop eax
shl eax, 1
lea eax, [ebp + eax - 0x1b0]
push 4
pop ecx
shl ecx, 0
mov dword [eax + ecx], 2
push 0x10
pop eax
shl eax, 1
lea eax, [ebp + eax - 0x1b0]
push 4
pop ecx
shl ecx, 1
mov dword [eax + ecx], 4
push 0x10
pop eax
shl eax, 1
lea eax, [ebp + eax - 0x1b0]
push 4
pop ecx
imul ecx, ecx, 3
mov dword [eax + ecx], 8
push 0x10
pop eax
shl eax, 1
lea eax, [ebp + eax - 0x1b0]
push 4
pop ecx
imul ecx, ecx, 0
mov dword [eax + ecx], 6
push 4
pop eax
imul eax, eax, 3
mov dword [ebp + eax - 0x110], 4
push 0x10
pop eax
imul eax, eax, 3
lea eax, [ebp + eax - 0x1b0]
push 4
pop ecx
shl ecx, 0
mov dword [eax + ecx], 3
push 0x10
pop eax
imul eax, eax, 3
lea eax, [ebp + eax - 0x1b0]
push 4
pop ecx
shl ecx, 1
mov dword [eax + ecx], 9
push 0x10
pop eax
imul eax, eax, 3
lea eax, [ebp + eax - 0x1b0]
push 4
pop ecx
imul ecx, ecx, 3
mov dword [eax + ecx], 7
push 0x10
pop eax
imul eax, eax, 3
lea eax, [ebp + eax - 0x1b0]
push 4
pop ecx
imul ecx, ecx, 0
mov dword [eax + ecx], 1
push 4
pop eax
shl eax, 2
mov dword [ebp + eax - 0x110], 2
push 0x10
pop eax
shl eax, 2
lea eax, [ebp + eax - 0x1b0]
push 4
pop ecx
shl ecx, 0
mov dword [eax + ecx], 4
push 0x10
pop eax
shl eax, 2
lea eax, [ebp + eax - 0x1b0]
push 4
pop ecx
imul ecx, ecx, 0
mov dword [eax + ecx], 6
push 4
pop eax
imul eax, eax, 5
mov dword [ebp + eax - 0x110], 1
push 0x10
pop eax
imul eax, eax, 5
lea eax, [ebp + eax - 0x1b0]
push 4
pop ecx
imul ecx, ecx, 0
mov dword [eax + ecx], 5
push 4
pop eax
imul eax, eax, 6
mov dword [ebp + eax - 0x110], 1
push 0x10
pop eax
imul eax, eax, 6
lea eax, [ebp + eax - 0x1b0]
push 4
pop ecx
imul ecx, ecx, 0
mov dword [eax + ecx], 6
push 4
pop eax
imul eax, eax, 7
mov dword [ebp + eax - 0x110], 4
push 0x10
pop eax
imul eax, eax, 7
lea eax, [ebp + eax - 0x1b0]
push 4
pop ecx
shl ecx, 0
mov dword [eax + ecx], 7
push 0x10
pop eax
imul eax, eax, 7
lea eax, [ebp + eax - 0x1b0]
push 4
pop ecx
shl ecx, 1
mov dword [eax + ecx], 9
push 0x10
pop eax
imul eax, eax, 7
lea eax, [ebp + eax - 0x1b0]
push 4
pop ecx
imul ecx, ecx, 3
mov dword [eax + ecx], 3
push 0x10
pop eax
imul eax, eax, 7
lea eax, [ebp + eax - 0x1b0]
push 4
pop ecx
imul ecx, ecx, 0
mov dword [eax + ecx], 1
push 4
pop eax
shl eax, 3
mov dword [ebp + eax - 0x110], 4
push 0x10
pop eax
shl eax, 3
lea eax, [ebp + eax - 0x1b0]
push 4
pop ecx
shl ecx, 0
mov dword [eax + ecx], 8
push 0x10
pop eax
shl eax, 3
lea eax, [ebp + eax - 0x1b0]
push 4
pop ecx
shl ecx, 1
mov dword [eax + ecx], 4
push 0x10
pop eax
shl eax, 3
lea eax, [ebp + eax - 0x1b0]
push 4
pop ecx
imul ecx, ecx, 3
mov dword [eax + ecx], 2
push 0x10
pop eax
shl eax, 3
lea eax, [ebp + eax - 0x1b0]
push 4
pop ecx
imul ecx, ecx, 0
mov dword [eax + ecx], 6
push 4
pop eax
imul eax, eax, 9
mov dword [ebp + eax - 0x110], 2
push 0x10
pop eax
imul eax, eax, 9
lea eax, [ebp + eax - 0x1b0]
push 4
pop ecx
shl ecx, 0
mov dword [eax + ecx], 9
push 0x10
pop eax
imul eax, eax, 9
lea eax, [ebp + eax - 0x1b0]
push 4
pop ecx
imul ecx, ecx, 0
mov dword [eax + ecx], 1
lea ecx, [ebp - 0xe8]
call fcn.1002f486
and dword [ebp - 4], 0
lea ecx, [ebp - 0xd0]
call fcn.1002f486
mov byte [ebp - 4], 1
xor eax, eax
inc eax
je 0x10041ff6
lea edx, [ebp - 0xe8]
mov ecx, 0x10667850
call fcn.10034a84
lea edx, [ebp - 0xd0]
mov ecx, eax
call fcn.10034a84
mov edx, 0x10007880
lea ecx, [ebp - 0xe8]
call fcn.100468fc
movzx eax, al
test eax, eax
je 0x10041f00
mov edx, 0x10007880
lea ecx, [ebp - 0xd0]
call fcn.100468fc
movzx eax, al
test eax, eax
je 0x10041f00
jmp 0x10041ff6
mov edx, 0x10007880
lea ecx, [ebp - 0xd0]
call fcn.100468fc
movzx eax, al
test eax, eax
je 0x10041f34
push fcn.10034507
push 1
mov ecx, 0x10667798
call fcn.1002faa6
mov ecx, eax
call fcn.1002fa9a
jmp 0x10041ea7
push 0x10007880
push 0
lea ecx, [ebp - 0xd0]
call fcn.100350cc
lea ecx, [ebp - 0xd0]
call fcn.1002f591
dec eax
dec eax
push eax
lea ecx, [ebp - 0xd0]
call fcn.1002f57d
movsx eax, byte [eax]
sub eax, 0x30
imul esi, eax, 0xa
lea ecx, [ebp - 0xd0]
call fcn.1002f591
dec eax
push eax
lea ecx, [ebp - 0xd0]
call fcn.1002f57d
movsx eax, byte [eax]
lea eax, [esi + eax - 0x30]
mov dword [ebp - 0x2c], eax
push fcn.10034507
lea ecx, [ebp - 0xe8]
call fcn.1002f591
dec eax
push eax
lea ecx, [ebp - 0xe8]
call fcn.1002f57d
movsx eax, byte [eax]
sub eax, 0x30
shl eax, 4
lea esi, [ebp + eax - 0x1b0]
lea ecx, [ebp - 0xe8]
call fcn.1002f591
dec eax
push eax
lea ecx, [ebp - 0xe8]
call fcn.1002f57d
movsx ecx, byte [eax]
mov eax, dword [ebp - 0x2c]
cdq
idiv dword [ebp + ecx*4 - 0x1d0]
push dword [esi + edx*4]
mov ecx, 0x10667798
call fcn.1002faa6
mov ecx, eax
call fcn.1002fa9a
jmp 0x10041ea7
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xd0]
call fcn.1002f4e9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe8]
call fcn.1002f4e9
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xa4]
add eax, dword [ecx]
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
jmp 0x10042055
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
inc eax
inc eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
jmp 0x100421a0
mov eax, dword [ebp + 8]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x44]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x3c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x4c], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
movzx eax, byte [eax]
test eax, eax
je 0x10042124
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx]
add ecx, dword [eax + 0x20]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
lea eax, [ecx + eax*4]
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx]
mov edx, dword [ebp - 0x30]
mov edx, dword [edx]
mov dword [ecx + eax], edx
jmp 0x100421a0
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x88]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x90]
mov ecx, dword [ecx]
add ecx, dword [eax + 0x1c]
mov eax, dword [ebp - 0x98]
mov eax, dword [eax]
lea eax, [ecx + eax*4]
mov ecx, dword [ebp - 0xa0]
mov ecx, dword [ecx]
mov edx, dword [ebp - 0xa8]
mov eax, dword [ecx + eax]
mov dword [edx], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret