Function at 0x1016586f
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x101fbbb4]
push ebx
push esi
xor esi, esi
mov cl, byte [eax]
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
push edi
lea edi, [eax + 1]
mov dword [0x101fbbb4], edi
cmp cl, 0x41
jg 0x10165a18
je 0x10165e75
test cl, cl
je 0x101659fe
cmp cl, 0x2f
jle case.default.0x10165d6b
cmp cl, 0x31
jle 0x10165926
cmp cl, 0x39
jg case.default.0x10165d6b
movsx eax, byte [edi - 1]
lea eax, [eax*8 + 0x101a31c0]
push eax
lea ecx, [ebp - 8]
call fcn.101626c3
cmp dword [ebp - 8], 0
je 0x10165913
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], str.operator
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x1c], 8
call fcn.10162404
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x20]
push ecx
mov ecx, eax
call fcn.101627ef
mov eax, dword [ebp - 0x20]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov ecx, dword [ebp - 4]
mov dword [eax + 4], ecx
pop edi
pop esi
pop ebx
leave
ret
mov ebx, esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ebx
cmp byte [ebp + 0xc], bl
je 0x1016599f
lea eax, [ebp - 0x20]
push eax
call fcn.10166c42
push eax
lea eax, [ebp - 0x18]
push 0x3c
push eax
call fcn.10162780
add esp, 0x10
lea ecx, [ebp - 0x10]
push eax
call fcn.101628ab
lea ecx, [ebp - 0x10]
call fcn.1016565e
cmp al, 0x3e
jne 0x1016596a
push 0x20
lea ecx, [ebp - 0x10]
call fcn.101628ec
push 0x3e
lea ecx, [ebp - 0x10]
call fcn.101628ec
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1016597e
mov byte [eax], 1
mov edi, dword [0x101fbbb4]
cmp byte [edi], bl
jne 0x10165995
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
jmp 0x1016591e
mov ebx, dword [ebp - 0x10]
inc edi
mov dword [0x101fbbb4], edi
push esi
lea eax, [ebp - 0x20]
push esi
push eax
call fcn.10167a2a
add esp, 0xc
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
mov dword [0x101fbbb4], edi
test ecx, ecx
je 0x101659e5
cmp byte [edi - 1], 0x31
jne 0x101659e5
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x20]
push 0x7e
push eax
call fcn.10162780
add esp, 0xc
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ebx, ebx
je 0x10165913
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
call fcn.101628ab
jmp 0x10165913
lea eax, [edi - 1]
mov ecx, dword [ebp + 8]
push 1
mov dword [0x101fbbb4], eax
call fcn.101624ab
mov eax, dword [ebp + 8]
jmp 0x10165921
cmp cl, 0x42
je 0x10165e72
jle case.default.0x10165d6b
cmp cl, 0x5a
jle 0x10165e75
cmp cl, 0x5f
jne case.default.0x10165d6b
movsx eax, byte [edi]
inc edi
mov dword [0x101fbbb4], edi
cmp eax, 0x4f
jg 0x10165b45
cmp eax, 0x44
jge 0x10165e41
cmp eax, 0x39
jg 0x10165aca
je 0x10165a9d
test eax, eax
je 0x101659fe
cmp eax, 0x2f
jle case.default.0x10165d6b
cmp eax, 0x36
jle 0x10165a8d
cmp eax, 0x38
jg case.default.0x10165d6b
movsx eax, byte [edi - 1]
lea eax, [eax*8 + 0x101a32e0]
mov ecx, dword [ebp + 8]
push eax
call fcn.10162404
jmp 0x10165a10
movsx eax, byte [edi - 1]
lea eax, [eax*8 + 0x101a32e0]
jmp 0x101658cf
movsx eax, byte [edi - 1]
lea ecx, [ebp - 0x18]
lea eax, [eax*8 + 0x101a32e0]
push eax
call fcn.10162404
mov edx, dword [ebp - 0x14]
or edx, 0x8000
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov dword [eax + 4], edx
jmp 0x10165921
cmp eax, 0x3f
je 0x10165afb
cmp eax, 0x40
jle case.default.0x10165d6b
cmp eax, 0x42
jle 0x10165e41
push 1
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.10166b0b
mov edx, dword [ebp - 0x14]
add esp, 0xc
or edx, 0x1000
jmp 0x10165aba
mov al, byte [edi]
inc edi
mov dword [0x101fbbb4], edi
test al, al
je 0x101659fe
mov edi, dword [ebp + 8]
cmp al, 0x30
je 0x10165b1e
mov dword [edi + 4], esi
mov byte [edi + 4], 2
mov dword [edi], esi
jmp 0x10165b3e
push esi
lea eax, [ebp - 0x18]
push 1
push eax
call fcn.10166b0b
mov ecx, dword [ebp - 0x14]
add esp, 0xc
mov eax, dword [ebp - 0x18]
or ecx, 0x1000
mov dword [edi], eax
mov dword [edi + 4], ecx
mov eax, edi
jmp 0x10165921
cmp eax, 0x54
jg 0x10165d2a
cmp eax, 0x53
jge 0x10165e41
sub eax, 0x50
je 0x10165cda
sub eax, 1
je 0x101658d8
sub eax, 1
jne case.default.0x10165d6b
movsx eax, byte [edi - 1]
lea ecx, [ebp - 8]
lea eax, [eax*8 + 0x101a32a8]
push eax
call fcn.101626c3
mov eax, dword [0x101fbbb4]
mov al, byte [eax]
test al, al
jne 0x10165ba3
push 1
push dword [ebp + 8]
lea ecx, [ebp - 8]
call fcn.10162833
jmp 0x10165a10
movsx eax, al
sub eax, 0x30
js case.default.0x10165d6b
cmp eax, 5
jae case.default.0x10165d6b
lea eax, [eax*8 + 0x101a35e8]
push eax
lea ecx, [ebp - 0x18]
call fcn.101626c3
mov eax, dword [0x101fbbb4]
mov cl, byte [eax]
inc eax
mov dword [0x101fbbb4], eax
cmp cl, 0x30
je 0x10165ca0
cmp cl, 0x31
je 0x10165bf4
jle 0x10165bee
cmp cl, 0x34
jle 0x10165d16
dec eax
jmp 0x10165a01
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
push eax
call fcn.101628ab
lea eax, [ebp - 0x20]
push eax
call fcn.10166954
pop ecx
push 0x2c
lea ecx, [ebp - 0x18]
push ecx
mov ecx, eax
call fcn.10162811
push eax
lea ecx, [ebp - 0x10]
call fcn.101628ab
lea eax, [ebp - 0x20]
push eax
call fcn.10166954
pop ecx
push 0x2c
lea ecx, [ebp - 0x18]
push ecx
mov ecx, eax
call fcn.10162811
push eax
lea ecx, [ebp - 0x10]
call fcn.101628ab
lea eax, [ebp - 0x20]
push eax
call fcn.10166954
pop ecx
push 0x2c
lea ecx, [ebp - 0x18]
push ecx
mov ecx, eax
call fcn.10162811
push eax
lea ecx, [ebp - 0x10]
call fcn.101628ab
lea eax, [ebp - 0x20]
push esi
push eax
call fcn.10164c69
pop ecx
pop ecx
push 0x29
lea ecx, [ebp - 0x18]
push ecx
mov ecx, eax
call fcn.10162811
push eax
lea ecx, [ebp - 0x10]
call fcn.101628ab
push 0x27
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.10162811
jmp 0x10165a10
lea eax, [ebp - 0x20]
push esi
push eax
call fcn.10164928
mov eax, dword [ebp - 0x20]
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
push 0x20
mov dword [ebp - 0xc], eax
call fcn.101628ec
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x10]
call fcn.101627ef
lea ecx, [ebp - 0x18]
push ecx
mov ecx, eax
jmp 0x10165d1d
movsx eax, byte [edi - 1]
lea ecx, [ebp - 8]
lea eax, [eax*8 + 0x101a32a8]
push eax
call fcn.101626c3
push esi
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.1016586f
add esp, 0xc
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
test ecx, ecx
je 0x10165d16
test eax, 0x400
jne case.default.0x10165d6b
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 8]
push dword [ebp + 8]
call fcn.101627ef
jmp 0x10165a10
cmp eax, 0x56
jle 0x10165e51
cmp eax, 0x57
jle case.default.0x10165d6b
cmp eax, 0x59
jle 0x10165e41
cmp eax, 0x5f
jne case.default.0x10165d6b
movsx eax, byte [edi]
inc edi
sub eax, 0x41
mov dword [0x101fbbb4], edi
cmp eax, 0xc
ja case.default.0x10165d6b
movzx eax, byte [eax + 0x10165eb3]
jmp dword [eax*4 + 0x10165ea7]
movsx eax, byte [edi - 1]
lea eax, [eax*8 + 0x101a3370]
jmp 0x10165a82
movsx eax, byte [edi - 1]
lea ecx, [ebp - 0x18]
lea eax, [eax*8 + 0x101a3370]
push eax
call fcn.10162404
mov eax, dword [0x101fbbb4]
cmp byte [eax], 0x3f
lea eax, [ebp - 0x28]
push eax
jne 0x10165dc5
call fcn.101649ff
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.101628ab
mov eax, dword [0x101fbbb4]
cmp byte [eax], 0x40
jne 0x10165dd4
inc eax
mov dword [0x101fbbb4], eax
jmp 0x10165dd4
call fcn.10166bfa
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.101628ab
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x101d96f4
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x1c], 2
call fcn.10162855
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x14]
jmp 0x1016591e
movsx eax, byte [edi - 1]
lea ecx, [ebp - 0x18]
lea eax, [eax*8 + 0x101a3370]
push eax
call fcn.10162404
jmp 0x10165e28
cmp al, 0x40
je 0x10165e38
inc ecx
mov dword [0x101fbbb4], ecx
lea ecx, [ebp - 0x18]
push eax
call fcn.101628ec
mov ecx, dword [0x101fbbb4]
mov al, byte [ecx]
test al, al
jne 0x10165e14
cmp al, 0x40
jne 0x10165dee
inc ecx
mov dword [0x101fbbb4], ecx
jmp 0x10165dee
movsx eax, byte [edi - 1]
lea eax, [eax*8 + 0x101a32a8]
jmp 0x10165a82
movsx eax, byte [edi - 1]
lea eax, [eax*8 + 0x101a32a8]
jmp 0x101658cf
mov eax, dword [ebp + 8]
mov dword [eax + 4], esi
mov byte [eax + 4], 2
mov dword [eax], esi
jmp 0x10165921
xor esi, esi
inc esi
movsx eax, byte [edi - 1]
lea ecx, [ebp - 8]
lea eax, [eax*8 + 0x101a3188]
push eax
call fcn.101626c3
test esi, esi
je 0x101658d8
cmp dword [ebp - 8], 0
je 0x10165913
or dword [ebp - 4], 0x200
jmp 0x10165913