Function at 0x10010520
Capabilities:
Parse credit card information

Disassembly:
push esi
mov esi, ecx
xor cl, cl
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x100109be
push edi
lea edi, [esi + 8]
push ebx
cmp eax, 0x7c
je 0x100109bc
cmp eax, 0x29
jne 0x10010560
cmp dword [esi + 0x10], 0
jne 0x100109bc
test dword [esi + 0x50], 0x10000000
je 0x100109cb
jmp 0x10010956
cmp eax, 0x2e
jne 0x100105ca
push 5
lea ecx, [esi + 0x24]
call fcn.10012c00
mov eax, dword [esi]
mov edx, dword [edi]
cmp eax, edx
je 0x1001099d
cmp byte [eax], 0x5c
jne 0x100105c2
lea ebx, [eax + 1]
mov ecx, eax
cmp ebx, edx
je 0x100105c0
test byte [esi + 0x50], 8
jne 0x1001059f
mov cl, byte [ebx]
mov edx, eax
cmp cl, 0x28
je 0x100105b5
cmp cl, 0x29
je 0x100105b5
mov ecx, eax
test byte [esi + 0x50], 0x10
jne 0x100105c0
mov bl, byte [ebx]
mov edx, eax
cmp bl, 0x7b
je 0x100105b5
mov edx, ecx
cmp bl, 0x7d
jne 0x100105c0
lea eax, [edx + 1]
inc eax
mov dword [esi], eax
jmp 0x1001099d
mov eax, ecx
inc eax
mov dword [esi], eax
jmp 0x1001099d
cmp eax, 0x5c
jne 0x10010719
mov eax, dword [esi]
mov edx, dword [edi]
cmp eax, edx
je 0x1001061f
cmp byte [eax], 0x5c
jne 0x1001061c
lea ebx, [eax + 1]
mov ecx, eax
cmp ebx, edx
je 0x1001061a
test byte [esi + 0x50], 8
jne 0x100105ff
mov cl, byte [ebx]
mov edx, eax
cmp cl, 0x28
je 0x10010615
cmp cl, 0x29
je 0x10010615
mov ecx, eax
test byte [esi + 0x50], 0x10
jne 0x1001061a
mov bl, byte [ebx]
mov edx, eax
cmp bl, 0x7b
je 0x10010615
mov edx, ecx
cmp bl, 0x7d
jne 0x1001061a
lea eax, [edx + 1]
jmp 0x1001061c
mov eax, ecx
inc eax
mov dword [esi], eax
mov ecx, esi
call fcn.10013120
test byte [esi + 0x50], 0x80
je 0x1001070d
mov al, byte [esi + 0x48]
cmp al, 0x62
jne 0x100106a6
push 4
lea ecx, [esi + 0x24]
call fcn.10012c00
mov eax, dword [esi]
mov edx, dword [edi]
cmp eax, edx
je 0x1001069a
cmp byte [eax], 0x5c
jne 0x10010697
lea ebx, [eax + 1]
mov ecx, eax
cmp ebx, edx
je 0x10010695
test byte [esi + 0x50], 8
jne 0x1001066d
mov cl, byte [ebx]
mov edx, eax
cmp cl, 0x28
je 0x10010683
cmp cl, 0x29
je 0x10010683
mov ecx, eax
test byte [esi + 0x50], 0x10
jne 0x10010695
mov bl, byte [ebx]
mov edx, eax
cmp bl, 0x7b
je 0x10010683
mov edx, ecx
cmp bl, 0x7d
jne 0x10010695
lea eax, [edx + 1]
mov ecx, esi
inc eax
mov dword [esi], eax
call fcn.10013120
jmp 0x100109ae
mov eax, ecx
inc eax
mov dword [esi], eax
mov ecx, esi
call fcn.10013120
jmp 0x100109ae
cmp al, 0x42
jne 0x1001070d
push 4
lea ecx, [esi + 0x24]
call fcn.10012c00
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
mov eax, dword [esi]
mov ecx, dword [edi]
cmp eax, ecx
je 0x10010701
cmp byte [eax], 0x5c
jne 0x100106fe
lea ebx, [eax + 1]
cmp ebx, ecx
je 0x100106fe
mov ecx, dword [esi + 0x50]
test cl, 8
jne 0x100106e8
mov dl, byte [ebx]
mov ecx, eax
cmp dl, 0x28
je 0x100106fb
cmp dl, 0x29
je 0x100106fb
mov ecx, dword [esi + 0x50]
test cl, 0x10
jne 0x100106fe
mov dl, byte [ebx]
mov ecx, eax
cmp dl, 0x7b
je 0x100106fb
cmp dl, 0x7d
jne 0x100106fe
lea eax, [ecx + 1]
inc eax
mov dword [esi], eax
mov ecx, esi
call fcn.10013120
jmp 0x100109ae
mov ecx, esi
call fcn.100109f0
jmp 0x100109a4
cmp eax, 0x5b
jne 0x100107cb
mov eax, dword [esi]
mov ecx, dword [edi]
cmp eax, ecx
je 0x10010768
cmp byte [eax], 0x5c
jne 0x10010765
lea edx, [eax + 1]
cmp edx, ecx
je 0x10010765
mov ecx, dword [esi + 0x50]
test cl, 8
jne 0x1001074f
mov bl, byte [edx]
mov ecx, eax
cmp bl, 0x28
je 0x10010762
cmp bl, 0x29
je 0x10010762
mov ecx, dword [esi + 0x50]
test cl, 0x10
jne 0x10010765
mov dl, byte [edx]
mov ecx, eax
cmp dl, 0x7b
je 0x10010762
cmp dl, 0x7d
jne 0x10010765
lea eax, [ecx + 1]
inc eax
mov dword [esi], eax
mov ecx, esi
call fcn.10013120
lea ecx, [esi + 0x24]
call fcn.1000fd80
mov eax, dword [esi + 0x4c]
cmp eax, 0x5e
jne 0x10010790
mov eax, dword [esi + 0x28]
mov ecx, esi
xor dword [eax + 8], 1
call fcn.10012c70
mov eax, dword [esi + 0x4c]
test dword [esi + 0x50], 0x20000000
je 0x100107ae
cmp eax, 0x5d
jne 0x100107ae
push eax
lea ecx, [esi + 0x24]
call fcn.1000fd10
mov ecx, esi
call fcn.10012c70
mov ecx, esi
call fcn.100113f0
cmp dword [esi + 0x4c], 0x5d
jne 0x100109dd
mov ecx, esi
call fcn.10012c70
jmp 0x100109a4
cmp eax, 0x28
jne 0x10010844
mov eax, dword [esi]
mov ecx, dword [edi]
cmp eax, ecx
je 0x10010816
cmp byte [eax], 0x5c
jne 0x10010813
lea edx, [eax + 1]
cmp edx, ecx
je 0x10010813
mov ecx, dword [esi + 0x50]
test cl, 8
jne 0x100107fd
mov bl, byte [edx]
mov ecx, eax
cmp bl, 0x28
je 0x10010810
cmp bl, 0x29
je 0x10010810
mov ecx, dword [esi + 0x50]
test cl, 0x10
jne 0x10010813
mov dl, byte [edx]
mov ecx, eax
cmp dl, 0x7b
je 0x10010810
cmp dl, 0x7d
jne 0x10010813
lea eax, [ecx + 1]
inc eax
mov dword [esi], eax
mov ecx, esi
call fcn.10013120
mov ecx, esi
call fcn.10013320
cmp dword [esi + 0x4c], 0x29
mov bl, al
jne 0x100109cb
mov ecx, esi
call fcn.10012c70
test bl, bl
je 0x100109ae
jmp 0x100109a4
cmp eax, 0x5e
jne 0x100108a8
push 2
lea ecx, [esi + 0x24]
call fcn.10012c00
mov eax, dword [esi]
lea edi, [esi + 8]
mov ecx, dword [edi]
cmp eax, ecx
je 0x1001089c
cmp byte [eax], 0x5c
jne 0x10010899
lea edx, [eax + 1]
cmp edx, ecx
je 0x10010899
mov ecx, dword [esi + 0x50]
test cl, 8
jne 0x10010883
mov bl, byte [edx]
mov ecx, eax
cmp bl, 0x28
je 0x10010896
cmp bl, 0x29
je 0x10010896
mov ecx, dword [esi + 0x50]
test cl, 0x10
jne 0x10010899
mov dl, byte [edx]
mov ecx, eax
cmp dl, 0x7b
je 0x10010896
cmp dl, 0x7d
jne 0x10010899
lea eax, [ecx + 1]
inc eax
mov dword [esi], eax
mov ecx, esi
call fcn.10013120
jmp 0x100109ae
cmp eax, 0x24
jne 0x1001090c
push 3
lea ecx, [esi + 0x24]
call fcn.10012c00
mov eax, dword [esi]
lea edi, [esi + 8]
mov ecx, dword [edi]
cmp eax, ecx
je 0x10010900
cmp byte [eax], 0x5c
jne 0x100108fd
lea edx, [eax + 1]
cmp edx, ecx
je 0x100108fd
mov ecx, dword [esi + 0x50]
test cl, 8
jne 0x100108e7
mov bl, byte [edx]
mov ecx, eax
cmp bl, 0x28
je 0x100108fa
cmp bl, 0x29
je 0x100108fa
mov ecx, dword [esi + 0x50]
test cl, 0x10
jne 0x100108fd
mov dl, byte [edx]
mov ecx, eax
cmp dl, 0x7b
je 0x100108fa
cmp dl, 0x7d
jne 0x100108fd
lea eax, [ecx + 1]
inc eax
mov dword [esi], eax
mov ecx, esi
call fcn.10013120
jmp 0x100109ae
cmp eax, 0x2a
je 0x100109c2
cmp eax, 0x2b
je 0x100109c2
cmp eax, 0x3f
je 0x100109c2
cmp eax, 0x7b
je 0x100109c2
cmp eax, 0x7d
jne 0x10010944
test dword [esi + 0x50], 0x10000000
je 0x100109d4
jmp 0x10010956
cmp eax, 0x5d
jne 0x10010956
test dword [esi + 0x50], 0x10000000
je 0x100109dd
movzx eax, byte [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.1000fb60
mov eax, dword [esi]
mov ecx, dword [esi + 8]
cmp eax, ecx
je 0x1001099d
cmp byte [eax], 0x5c
jne 0x1001099b
inc eax
cmp eax, ecx
je 0x1001099b
mov ecx, dword [esi + 0x50]
test cl, 8
jne 0x1001098a
mov dl, byte [eax]
cmp dl, 0x28
je 0x10010999
cmp dl, 0x29
je 0x10010999
test cl, 0x10
jne 0x1001099b
mov al, byte [eax]
cmp al, 0x7b
je 0x10010999
cmp al, 0x7d
jne 0x1001099b
inc dword [esi]
inc dword [esi]
mov ecx, esi
call fcn.10013120
mov ecx, esi
call fcn.10012cd0
lea edi, [esi + 8]
mov eax, dword [esi + 0x4c]
mov cl, 1
cmp eax, 0xffffffff
jne 0x10010536
pop ebx
pop edi
mov al, cl
pop esi
ret
push 0xa
mov ecx, esi
call fcn.10012130
push 5
mov ecx, esi
call fcn.10012130
push 6
mov ecx, esi
call fcn.10012130
push 4
mov ecx, esi
call fcn.10012130
int3