Function at 0x10178490
Capabilities:
Parse credit card information

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
test ebp, ebp
je 0x101786c6
mov esi, dword [esp + 0x18]
push ebp
push 1
push esi
call fcn.1019bb90
mov edi, dword [esp + 0x20]
add esp, 0xc
mov eax, dword [edi + 0x50]
mov edx, dword [eax + 0x20]
test edx, edx
je 0x101784dc
nop
mov eax, dword [edi + 0x50]
mov ecx, dword [edx + 0x10]
mov eax, dword [eax + 0x10]
cmp ecx, eax
jb 0x101784dc
sub ecx, eax
sar ecx, 3
mov byte [ecx + esi], 0
mov edx, dword [edx]
test edx, edx
jne 0x101784c0
mov ecx, dword [esp + 0x1c]
mov ebx, dword [ecx]
add ecx, 4
movzx edi, bl
mov edx, ebx
mov dword [esp + 0x1c], ecx
shr edx, 0x18
movzx eax, word [edi*2 + 0x101e5270]
mov ecx, eax
and al, 0x78
cmp al, 0x18
jne 0x1017850f
and byte [edx + esi], 0xfe
movzx eax, word [edi*2 + 0x101e5270]
jmp 0x10178511
mov eax, ecx
shr eax, 7
and eax, 0xf
add eax, 0xfffffffd
cmp eax, 0xa
ja case.0x10178526.5
movzx eax, byte [eax + 0x1017886c]
jmp dword [eax*4 + 0x10178854]
mov eax, ebx
shr eax, 0x10
movzx eax, al
and byte [eax + esi], 0xfe
mov ecx, dword [esp + 0x1c]
movzx eax, word [edi*2 + 0x101e5270]
and eax, 7
sub eax, 1
je 0x1017872e
sub eax, 1
je 0x1017862e
sub eax, 1
jne 0x101784e0
shr ebx, 8
movzx eax, bl
and byte [eax + esi], 0xfe
jmp 0x101784e0
mov eax, ebx
shr eax, 0x10
movzx eax, al
cmp edx, eax
ja 0x10178589
nop word [eax + eax]
and byte [edx + esi], 0xfe
inc edx
cmp edx, eax
jbe 0x10178580
cmp edx, ebp
jae case.0x10178526.5
nop dword [eax]
mov cl, byte [edx + esi]
mov al, cl
add cl, cl
add al, cl
mov byte [edx + esi], al
inc edx
cmp edx, ebp
jb 0x10178590
jmp case.0x10178526.5
cmp edi, 0x4d
je case.0x10178526.13
cmp edi, 0x50
je case.0x10178526.13
cmp edi, 0x53
je case.0x10178526.13
cmp edi, 0x45
je 0x101785ca
cmp edi, 0x46
je 0x101785ca
cmp edi, 0x47
je 0x101785ca
cmp edi, 0x48
jne case.0x10178526.5
mov eax, ebx
shr eax, 8
cmp edi, 0x45
jne 0x10178757
mov edi, ebp
movzx ebx, al
jmp 0x10178768
mov eax, ebx
shr eax, 8
movzx ecx, al
mov dword [esp + 0x20], ecx
cmp edi, 0x49
jb 0x101785fc
cmp edi, 0x4d
jbe 0x10178819
cmp edi, 0x4e
jb 0x1017860a
cmp edi, 0x50
jbe 0x1017881e
cmp edi, 0x30
jne 0x1017882d
mov ecx, dword [esp + 0x1c]
mov eax, ebx
shr eax, 0x10
lea ecx, [ecx + eax*4]
add ecx, 0xfffe0000
mov dword [esp + 0x1c], ecx
jmp 0x1017853d
lea eax, [edi - 0x3d]
cmp eax, 5
ja 0x101786cd
cmp edi, 0x3d
je 0x1017865a
cmp edi, 0x3f
je 0x1017865a
mov eax, ebx
shr eax, 0x10
movzx eax, al
test eax, eax
je 0x1017865a
shr ebx, 8
movzx ecx, bl
add ecx, eax
jmp 0x1017865f
mov ecx, ebp
shr ebx, 8
cmp edi, 0x41
je 0x1017866d
cmp edi, 0x42
je 0x1017866d
xor edx, edx
jmp 0x10178672
mov edx, 3
movzx ebx, bl
mov eax, ebx
sub eax, edx
cmp eax, ecx
jae 0x10178689
nop dword [eax]
and byte [eax + esi], 0xfe
inc eax
cmp eax, ecx
jb 0x10178680
cmp eax, ebp
jae 0x101786a1
nop dword [eax]
mov dl, byte [eax + esi]
mov cl, dl
add dl, dl
add cl, dl
mov byte [eax + esi], cl
inc eax
cmp eax, ebp
jb 0x10178690
cmp edi, 0x40
je 0x101786af
cmp edi, 0x3f
jne 0x101784dc
xor edx, edx
test ebx, ebx
je 0x101786c6
mov cl, byte [edx + esi]
mov al, cl
add cl, cl
add al, cl
mov byte [edx + esi], al
inc edx
cmp edx, ebx
jb 0x101786b5
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
cmp edi, 0x43
je case.0x10178526.12
cmp edi, 0x2a
jne 0x10178706
mov eax, ebx
shr ebx, 0x10
shr eax, 8
movzx edx, al
cmp edx, ebx
ja 0x101784e0
nop
mov cl, byte [edx + esi]
mov al, cl
add cl, cl
add al, cl
mov byte [edx + esi], al
inc edx
cmp edx, ebx
jbe 0x101786f0
jmp 0x101784dc
cmp edi, 0x3c
jne 0x101784e0
shr ebx, 8
movzx eax, bl
dec eax
cmp eax, ebp
jae 0x101784e0
nop
and byte [eax + esi], 0xfe
inc eax
cmp eax, ebp
jb 0x10178720
jmp 0x101784e0
cmp edi, 0xc
je 0x101784e0
cmp edi, 0xd
je 0x101784e0
shr ebx, 8
movzx edx, bl
mov cl, byte [edx + esi]
mov al, cl
add cl, cl
add al, cl
mov byte [edx + esi], al
jmp 0x101784dc
shr ebx, 0x10
movzx eax, al
mov dword [esp + 0x20], eax
lea edi, [ebx - 1]
mov ebx, eax
add edi, eax
xor edx, edx
test ebx, ebx
je 0x10178781
nop
mov cl, byte [edx + esi]
mov al, cl
add cl, cl
add al, cl
mov byte [edx + esi], al
inc edx
cmp edx, ebx
jb 0x10178770
mov eax, edi
sub eax, edx
cmp edx, edi
jae 0x101787f9
cmp eax, 0x40
jb 0x101787f0
movaps xmm2, xmmword [0x101e57d0]
and eax, 0x3f
mov ecx, edi
sub ecx, eax
lea eax, [esi + 0x20]
add eax, edx
movups xmm0, xmmword [eax - 0x20]
lea eax, [eax + 0x40]
add edx, 0x40
movaps xmm1, xmm2
mov ebx, edx
pand xmm1, xmm0
movups xmmword [eax - 0x60], xmm1
movaps xmm1, xmm2
movups xmm0, xmmword [eax - 0x50]
pand xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movaps xmm1, xmm2
movups xmm0, xmmword [eax - 0x40]
pand xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movaps xmm1, xmm2
movups xmm0, xmmword [eax - 0x30]
pand xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
cmp edx, ecx
jb 0x101787a1
cmp ebx, edi
jae 0x101787f9
nop dword [eax]
and byte [edx + esi], 0xfe
inc edx
cmp edx, edi
jb 0x101787f0
cmp edx, ebp
jae 0x101786c6
mov cl, byte [edx + esi]
mov al, cl
add cl, cl
add al, cl
mov byte [edx + esi], al
inc edx
cmp edx, ebp
jb 0x10178801
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
add ecx, 3
jmp 0x10178829
mov eax, dword [esp + 0x1c]
movzx eax, byte [eax - 5]
dec eax
add ecx, eax
mov dword [esp + 0x20], ecx
mov edx, ecx
cmp ecx, ebp
jae 0x1017884a
mov cl, byte [edx + esi]
mov al, cl
add cl, cl
add al, cl
mov byte [edx + esi], al
inc edx
cmp edx, ebp
jb 0x10178833
mov ecx, dword [esp + 0x20]
cmp ecx, ebp
cmovb ebp, ecx
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret