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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff48
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xb8], ebx
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0x10], ebx
mov esi, eax
lea edi, [ebp - 0x50]
push ecx
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop ecx
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov eax, dword [ebp - 8]
call fcn.004051ac
xor eax, eax
push ebp
push 0x48dd5a
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 0xa], 0xffff
mov eax, dword [ebp - 8]
call fcn.00404fbc
cmp eax, 4
jne case.0x48d376.43
mov al, byte [ebp - 1]
sub al, 1
jb 0x48d2f3
je 0x48d311
jmp 0x48d32d
lea edx, [ebp - 0xb0]
mov eax, dword [ebp - 8]
call fcn.00408f78
mov edx, dword [ebp - 0xb0]
lea eax, [ebp - 8]
call fcn.00404d94
jmp 0x48d32d
lea edx, [ebp - 0xb4]
mov eax, dword [ebp - 8]
call fcn.00408fc8
mov edx, dword [ebp - 0xb4]
lea eax, [ebp - 8]
call fcn.00404d94
mov dword [ebp - 0x14], 5
lea eax, [ebp - 0x64]
lea edx, [ebp - 0x78]
lea ecx, [ebp - 0x8c]
xor ebx, ebx
mov dword [eax], ebx
xor ebx, ebx
mov dword [edx], ebx
xor ebx, ebx
mov dword [ecx], ebx
add ecx, 4
add edx, 4
add eax, 4
dec dword [ebp - 0x14]
jne 0x48d340
mov byte [ebp - 0x29], 0
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
add eax, 0xffffffd5
cmp eax, 0x47
ja case.0x48d376.43
mov al, byte [eax + 0x48d37d]
jmp dword [eax*4 + 0x48d3c5]
mov dword [ebp - 0x64], 1
mov dword [ebp - 0x60], 9
jmp 0x48d577
mov dword [ebp - 0x64], 2
mov dword [ebp - 0x60], 8
jmp 0x48d577
mov dword [ebp - 0x64], 3
mov dword [ebp - 0x60], 7
jmp 0x48d577
mov dword [ebp - 0x64], 4
mov dword [ebp - 0x60], 6
jmp 0x48d577
mov dword [ebp - 0x64], 5
jmp 0x48d577
mov dword [ebp - 0x64], 0xa
mov dword [ebp - 0x60], 0xb
jmp 0x48d577
mov dword [ebp - 0x14], 1
lea eax, [ebp - 0x64]
mov edx, dword [ebp - 0x14]
add edx, 0xb
mov dword [eax], edx
inc dword [ebp - 0x14]
add eax, 4
cmp dword [ebp - 0x14], 6
jne 0x48d47a
mov byte [ebp - 0x29], 1
jmp 0x48d577
mov dword [ebp - 0x64], 0x11
mov dword [ebp - 0x60], 0x19
jmp 0x48d577
mov dword [ebp - 0x64], 0x12
mov dword [ebp - 0x60], 0x18
jmp 0x48d577
mov dword [ebp - 0x64], 0x13
mov dword [ebp - 0x60], 0x17
jmp 0x48d577
mov dword [ebp - 0x64], 0x14
mov dword [ebp - 0x60], 0x16
jmp 0x48d577
mov dword [ebp - 0x64], 0x15
jmp 0x48d577
mov dword [ebp - 0x64], 0x1a
mov dword [ebp - 0x60], 0x1b
jmp 0x48d577
mov dword [ebp - 0x14], 1
lea eax, [ebp - 0x64]
mov edx, dword [ebp - 0x14]
add edx, 0x1b
mov dword [eax], edx
inc dword [ebp - 0x14]
add eax, 4
cmp dword [ebp - 0x14], 6
jne 0x48d509
mov byte [ebp - 0x29], 1
jmp 0x48d577
mov byte [ebp - 0x29], 1
mov al, byte [ebp - 1]
sub al, 1
jb 0x48d532
je 0x48d559
jmp 0x48d577
mov dword [ebp - 0x14], 1
lea eax, [ebp - 0x64]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x14]
add eax, 0xb
mov edx, dword [ebp - 0x30]
mov dword [edx], eax
inc dword [ebp - 0x14]
add dword [ebp - 0x30], 4
cmp dword [ebp - 0x14], 6
jne 0x48d53f
jmp 0x48d577
mov dword [ebp - 0x14], 1
lea esi, [ebp - 0x64]
mov eax, dword [ebp - 0x14]
add eax, 0x1b
mov dword [esi], eax
inc dword [ebp - 0x14]
add esi, 4
cmp dword [ebp - 0x14], 6
jne 0x48d563
mov dword [ebp - 0x14], 5
lea ebx, [ebp - 0x64]
lea esi, [ebp - 0x78]
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebx]
test eax, eax
je 0x48d652
cmp byte [ebp + eax - 0x51], 0xff
je 0x48d63f
mov eax, dword [ebx]
xor ecx, ecx
mov cl, byte [ebp + eax - 0x51]
mov eax, ecx
mov edi, 0xa
xor edx, edx
div edi
mov dword [ebp - 0x18], eax
mov eax, ecx
mov ecx, 0xa
xor edx, edx
div ecx
mov dword [ebp - 0x1c], edx
mov edi, 5
lea ecx, [ebp - 0x64]
mov eax, dword [ecx]
test eax, eax
je 0x48d63f
cmp byte [ebp + eax - 0x51], 0xff
je 0x48d639
mov eax, dword [ecx]
movzx eax, byte [ebp + eax - 0x51]
push ecx
mov ecx, 0xa
xor edx, edx
div ecx
pop ecx
cmp eax, dword [ebp - 0x18]
jne 0x48d639
inc dword [esi]
mov al, byte [ebp - 1]
sub al, 1
jb 0x48d5ff
je 0x48d61d
jmp 0x48d639
mov eax, dword [ecx]
movzx eax, byte [ebp + eax - 0x51]
push ecx
mov ecx, 0xa
xor edx, edx
div ecx
pop ecx
cmp edx, dword [ebp - 0x1c]
jl 0x48d639
mov eax, dword [ebp - 0x30]
inc dword [eax]
jmp 0x48d639
mov eax, dword [ecx]
movzx eax, byte [ebp + eax - 0x51]
push ecx
mov ecx, 0xa
xor edx, edx
div ecx
pop ecx
cmp edx, dword [ebp - 0x1c]
jg 0x48d639
mov eax, dword [ebp - 0x30]
inc dword [eax]
add ecx, 4
dec edi
jne 0x48d5ce
add dword [ebp - 0x30], 4
add esi, 4
add ebx, 4
dec dword [ebp - 0x14]
jne 0x48d58d
xor edi, edi
mov eax, dword [ebp - 8]
mov al, byte [eax + 1]
sub al, 0x2b
je 0x48d796
sub al, 2
je 0x48d796
add al, 0xfc
sub al, 9
jae case.0x48d376.43
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 1]
sub eax, 0x30
mov dword [ebp - 0x18], eax
mov al, byte [ebp - 1]
sub al, 1
jb 0x48d68c
je 0x48d699
jmp 0x48d69c
mov eax, 9
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
jmp 0x48d69c
dec dword [ebp - 0x18]
mov dword [ebp - 0x14], 1
lea eax, [ebp - 0x64]
mov dword [ebp - 0x30], eax
lea esi, [ebp - 0x78]
lea ebx, [ebp - 0x8c]
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
test ecx, ecx
je case.0x48d376.43
xor eax, eax
mov al, byte [ebp + ecx - 0x51]
push ecx
mov ecx, 0xa
xor edx, edx
div ecx
pop ecx
cmp eax, dword [ebp - 0x18]
jne 0x48d76c
cmp byte [ebp - 0x29], 0
je 0x48d6ff
cmp dword [esi], 1
je 0x48d6f8
cmp dword [esi], 3
jne 0x48d6ee
cmp dword [ebx], 2
je 0x48d6f8
cmp dword [esi], 5
jne 0x48d76c
cmp dword [ebx], 3
jne 0x48d76c
mov eax, dword [ebp - 0x30]
mov edi, dword [eax]
jmp 0x48d76c
mov eax, dword [esi]
dec eax
je 0x48d709
dec eax
je 0x48d70d
jmp 0x48d76c
mov edi, ecx
jmp 0x48d76c
push esi
push edi
lea esi, [ebp - 0x50]
lea edi, [ebp - 0xac]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.00404d94
mov eax, dword [ebx]
dec eax
je 0x48d736
dec eax
je 0x48d744
jmp 0x48d750
lea eax, [ebp - 0x10]
call fcn.00405214
mov byte [eax + 1], 0x2b
jmp 0x48d750
lea eax, [ebp - 0x10]
call fcn.00405214
mov byte [eax + 1], 0x2d
mov ecx, dword [ebp - 0x10]
mov dl, byte [ebp - 1]
lea eax, [ebp - 0xac]
call fcn.0048d284
cmp ax, 0xffff
je 0x48d76c
mov eax, dword [ebp - 0x30]
mov edi, dword [eax]
test edi, edi
jne 0x48d787
inc dword [ebp - 0x14]
add ebx, 4
add esi, 4
add dword [ebp - 0x30], 4
cmp dword [ebp - 0x14], 6
jne 0x48d6b2
cmp dword [ebp - 0x14], 5
jg case.0x48d376.43
jmp 0x48daa9
cmp byte [ebp - 0x29], 0
je 0x48da45
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
cmp eax, 0x31
jge 0x48d7c2
sub eax, 0x2b
je 0x48d8d3
sub eax, 2
je 0x48d8d3
jmp 0x48daa9
add eax, 0xffffffcf
sub eax, 9
jb 0x48d980
sub eax, 0x16
je 0x48d7dc
sub eax, 0x20
jne 0x48daa9
mov dword [ebp - 0x14], 5
lea ebx, [ebp - 0x78]
lea esi, [ebp - 0x8c]
lea eax, [ebp - 0x64]
mov dword [ebp - 0x30], eax
mov eax, dword [ebx]
sub eax, 2
je 0x48d80b
dec eax
je 0x48d83d
dec eax
je 0x48d865
dec eax
je 0x48d88d
jmp 0x48d8b3
mov eax, dword [ebp - 8]
mov al, byte [eax + 1]
sub al, 0x2b
je 0x48d81e
sub al, 2
je 0x48d831
jmp 0x48d8b3
cmp dword [esi], 1
jne 0x48d8b3
mov eax, dword [ebp - 0x30]
mov edi, dword [eax]
jmp 0x48d8b3
cmp dword [esi], 2
jne 0x48d8b3
mov eax, dword [ebp - 0x30]
mov edi, dword [eax]
jmp 0x48d8b3
mov eax, dword [ebp - 8]
mov al, byte [eax + 1]
sub al, 0x2b
je 0x48d84d
sub al, 2
je 0x48d859
jmp 0x48d8b3
cmp dword [esi], 1
jne 0x48d8b3
mov eax, dword [ebp - 0x30]
mov edi, dword [eax]
jmp 0x48d8b3
cmp dword [esi], 3
jne 0x48d8b3
mov eax, dword [ebp - 0x30]
mov edi, dword [eax]
jmp 0x48d8b3
mov eax, dword [ebp - 8]
mov al, byte [eax + 1]
sub al, 0x2b
je 0x48d875
sub al, 2
je 0x48d881
jmp 0x48d8b3
cmp dword [esi], 2
jne 0x48d8b3
mov eax, dword [ebp - 0x30]
mov edi, dword [eax]
jmp 0x48d8b3
cmp dword [esi], 3
jne 0x48d8b3
mov eax, dword [ebp - 0x30]
mov edi, dword [eax]
jmp 0x48d8b3
mov eax, dword [ebp - 8]
mov al, byte [eax + 1]
sub al, 0x2b
je 0x48d89d
sub al, 2
je 0x48d8a9
jmp 0x48d8b3
cmp dword [esi], 2
jne 0x48d8b3
mov eax, dword [ebp - 0x30]
mov edi, dword [eax]
jmp 0x48d8b3
cmp dword [esi], 4
jne 0x48d8b3
mov eax, dword [ebp - 0x30]
mov edi, dword [eax]
test edi, edi
jne 0x48daa9
add dword [ebp - 0x30], 4
add esi, 4
add ebx, 4
dec dword [ebp - 0x14]
jne 0x48d7f2
jmp 0x48daa9
mov eax, dword [ebp - 8]
cmp byte [eax], 0x2b
jne 0x48d8e8
mov eax, dword [ebp - 8]
cmp byte [eax + 1], 0x2d
je case.0x48d376.43
mov eax, dword [ebp - 8]
cmp byte [eax], 0x2d
jne 0x48d8fd
mov eax, dword [ebp - 8]
cmp byte [eax + 1], 0x2b
je case.0x48d376.43
mov dword [ebp - 0x14], 5
lea eax, [ebp - 0x78]
mov dword [ebp - 0x30], eax
lea esi, [ebp - 0x8c]
lea ebx, [ebp - 0x64]
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
sub eax, 4
je 0x48d922
dec eax
je 0x48d944
jmp 0x48d964
mov eax, dword [ebp - 8]
mov al, byte [eax + 1]
sub al, 0x2b
je 0x48d932
sub al, 2
je 0x48d93b
jmp 0x48d964
cmp dword [esi], 1
jne 0x48d964
mov edi, dword [ebx]
jmp 0x48d964
cmp dword [esi], 4
jne 0x48d964
mov edi, dword [ebx]
jmp 0x48d964
mov eax, dword [ebp - 8]
mov al, byte [eax + 1]
sub al, 0x2b
je 0x48d954
sub al, 2
je 0x48d95d
jmp 0x48d964
cmp dword [esi], 1
jne 0x48d964
mov edi, dword [ebx]
jmp 0x48d964
cmp dword [esi], 5
jne 0x48d964
mov edi, dword [ebx]
test edi, edi
jne 0x48daa9
add ebx, 4
add esi, 4
add dword [ebp - 0x30], 4
dec dword [ebp - 0x14]
jne 0x48d913
jmp 0x48daa9
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
sub eax, 0x30
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 5
lea ebx, [ebp - 0x78]
lea esi, [ebp - 0x64]
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x30], eax
cmp dword [ebx], 2
jl 0x48da30
mov eax, dword [esi]
movzx eax, byte [ebp + eax - 0x51]
mov ecx, 0xa
xor edx, edx
div ecx
cmp eax, dword [ebp - 0x18]
jne 0x48da30
mov eax, dword [ebx]
sub eax, 2
je 0x48d9cc
dec eax
je 0x48d9f4
jmp 0x48da2c
mov eax, dword [ebp - 8]
mov al, byte [eax + 1]
sub al, 0x2b
je 0x48d9dc
sub al, 2
je 0x48d9e8
jmp 0x48da2c
mov eax, dword [ebp - 0x30]
cmp dword [eax], 1
jne 0x48da2c
mov edi, dword [esi]
jmp 0x48da2c
mov eax, dword [ebp - 0x30]
cmp dword [eax], 2
jne 0x48da2c
mov edi, dword [esi]
jmp 0x48da2c
mov eax, dword [ebp - 8]
mov al, byte [eax + 1]
sub al, 0x2b
je 0x48da0a
sub al, 2
je 0x48da16
add al, 0xfc
sub al, 9
jb 0x48da22
jmp 0x48da2c
mov eax, dword [ebp - 0x30]
cmp dword [eax], 1
jne 0x48da2c
mov edi, dword [esi]
jmp 0x48da2c
mov eax, dword [ebp - 0x30]
cmp dword [eax], 3
jne 0x48da2c
mov edi, dword [esi]
jmp 0x48da2c
mov eax, dword [ebp - 0x30]
cmp dword [eax], 2
jne 0x48da2c
mov edi, dword [esi]
test edi, edi
jne 0x48daa9
add dword [ebp - 0x30], 4
add esi, 4
add ebx, 4
dec dword [ebp - 0x14]
jne 0x48d9a2
jmp 0x48daa9
mov eax, dword [ebp - 8]
mov al, byte [eax + 1]
sub al, 0x2b
je 0x48da55
sub al, 2
je 0x48da80
jmp 0x48daa9
mov dword [ebp - 0x14], 2
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x30], eax
lea esi, [ebp - 0x64]
mov eax, dword [ebp - 0x30]
cmp dword [eax], 1
jne 0x48da72
mov edi, dword [esi]
add esi, 4
add dword [ebp - 0x30], 4
dec dword [ebp - 0x14]
jne 0x48da68
jmp 0x48daa9
mov dword [ebp - 0x14], 2
lea esi, [ebp - 0x8c]
lea eax, [ebp - 0x64]
mov dword [ebp - 0x30], eax
cmp dword [esi], 2
jne 0x48da9d
mov eax, dword [ebp - 0x30]
mov edi, dword [eax]
add dword [ebp - 0x30], 4
add esi, 4
dec dword [ebp - 0x14]
jne 0x48da93
cmp edi, 1
jl case.0x48d376.43
cmp edi, 0x20
jg case.0x48d376.43
mov cl, byte [ebp + edi - 0x51]
cmp cl, 0xff
je case.0x48d376.43
mov esi, ecx
and esi, 0xff
mov eax, esi
mov ecx, 0xa
xor edx, edx
div ecx
mov ebx, eax
mov dword [ebp - 0x20], ebx
mov eax, esi
mov ecx, 0xa
xor edx, edx
div ecx
mov esi, edx
mov edi, esi
mov eax, dword [ebp - 8]
xor ecx, ecx
mov cl, byte [eax + 3]
sub ecx, 0x30
cmp ecx, 1
jl case.0x48d376.43
cmp ecx, 9
jg case.0x48d376.43
mov eax, dword [ebp - 8]
mov al, byte [eax + 2]
sub al, 0x2b
je 0x48db48
sub al, 2
je 0x48db48
dec al
jne case.0x48d376.43
mov al, byte [ebp - 1]
sub al, 1
jb 0x48db30
je 0x48db3f
jmp case.0x48db85.43
mov eax, 9
sub eax, ecx
mov dword [ebp - 0x20], eax
jmp case.0x48db85.43
dec ecx
mov dword [ebp - 0x20], ecx
jmp case.0x48db85.43
xor eax, eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
mov al, byte [eax + 2]
sub al, 0x2b
je 0x48db5d
sub al, 2
je 0x48db66
jmp 0x48db6d
mov dword [ebp - 0x28], 1
jmp 0x48db6d
mov dword [ebp - 0x28], 0xffffffff
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
add eax, 0xffffffd5
cmp eax, 0x47
ja case.0x48db85.43
mov al, byte [eax + 0x48db8c]
jmp dword [eax*4 + 0x48dbd4]
mov al, byte [ebp - 1]
sub al, 1
jb 0x48dbf6
je 0x48dc02
jmp case.0x48db85.43
mov eax, dword [ebp - 0x28]
imul ecx
add edi, eax
jmp case.0x48db85.43
mov eax, dword [ebp - 0x28]
imul ecx
sub edi, eax
jmp case.0x48db85.43
mov al, byte [ebp - 1]
sub al, 1
jb 0x48dc1c
je 0x48dc66
jmp case.0x48db85.43
mov eax, 9
sub eax, ecx
sub eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
cdq
xor eax, edx
sub eax, edx
dec eax
je 0x48dc3c
dec eax
je 0x48dc52
jmp case.0x48d376.43
mov eax, 9
sub eax, ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x28]
add eax, eax
add edi, eax
jmp case.0x48db85.43
mov eax, 9
sub eax, ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x28]
add edi, eax
jmp case.0x48db85.43
mov eax, ecx
dec eax
sub eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
cdq
xor eax, edx
sub eax, edx
dec eax
je 0x48dc82
dec eax
je 0x48dc8f
jmp case.0x48d376.43
dec ecx
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x28]
add eax, eax
sub edi, eax
jmp case.0x48db85.43
dec ecx
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x28]
sub edi, eax
jmp case.0x48db85.43
mov al, byte [ebp - 1]
sub al, 1
jb 0x48dca5
je 0x48dcb8
jmp case.0x48db85.43
mov eax, 9
sub eax, ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x28]
add eax, eax
add edi, eax
jmp case.0x48db85.43
dec ecx
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x28]
add eax, eax
sub edi, eax
jmp case.0x48db85.43
mov al, byte [ebp - 1]
sub al, 1
jb 0x48dcd0
je 0x48dce1
jmp case.0x48db85.43
mov eax, 9
sub eax, ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x28]
add edi, eax
jmp case.0x48db85.43
dec ecx
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x28]
sub edi, eax
mov eax, ebx
add eax, eax
lea eax, [eax + eax*4]
add esi, eax
mov ebx, esi
mov esi, dword [ebp - 0x20]
add esi, esi
lea esi, [esi + esi*4]
add esi, edi
push 0
push 1
lea eax, [ebp - 0xb8]
push eax
mov ecx, esi
mov edx, ebx
lea eax, [ebp - 0x50]
call fcn.0048bae4
cmp dword [ebp - 0xb8], 0
je case.0x48d376.43
mov word [ebp - 0xa], bx
shl word [ebp - 0xa], 8
add word [ebp - 0xa], si
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48dd61
lea eax, [ebp - 0xb8]
mov edx, 3
call fcn.00404d20
lea eax, [ebp - 0x10]
call fcn.00404cfc
lea eax, [ebp - 8]
call fcn.00404cfc
ret