Function at 0x10021e70
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor cl, cl
push edi
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x1002239a
lea edi, [esi + 8]
nop word [eax + eax]
cmp eax, 0x7c
je 0x1002239a
cmp eax, 0x29
jne 0x10021eba
cmp dword [esi + 0x10], 0
jne 0x1002239a
test dword [esi + 0x50], 0x10000000
je 0x100223aa
jmp 0x1002232b
cmp eax, 0x2e
jne 0x10021f30
push 5
lea ecx, [esi + 0x24]
call fcn.100223c0
mov eax, dword [esi]
mov edx, dword [edi]
cmp eax, edx
je 0x1002237b
cmp word [eax], 0x5c
jne 0x10022146
lea edi, [eax + 2]
mov ecx, eax
cmp edi, edx
je 0x10021f24
mov ebx, dword [esi + 0x50]
test bl, 8
jne 0x10021f01
movzx ecx, word [edi]
mov edx, eax
cmp ecx, 0x28
je 0x10021f17
cmp ecx, 0x29
je 0x10021f17
mov ecx, eax
test bl, 0x10
jne 0x10021f24
movzx edi, word [edi]
mov edx, eax
cmp edi, 0x7b
je 0x10021f17
mov edx, ecx
cmp edi, 0x7d
jne 0x10021f24
lea eax, [edx + 2]
add eax, 2
mov dword [esi], eax
jmp 0x1002237b
mov eax, ecx
add eax, 2
mov dword [esi], eax
jmp 0x1002237b
cmp eax, 0x5c
jne 0x10022095
mov eax, dword [esi]
mov edx, dword [edi]
cmp eax, edx
je 0x10021f8a
cmp word [eax], 0x5c
jne 0x10021f85
lea ebx, [eax + 2]
mov ecx, eax
cmp ebx, edx
je 0x10021f83
test byte [esi + 0x50], 8
jne 0x10021f67
movzx ecx, word [ebx]
mov edx, eax
cmp ecx, 0x28
je 0x10021f7e
cmp ecx, 0x29
je 0x10021f7e
mov ecx, eax
test byte [esi + 0x50], 0x10
jne 0x10021f83
movzx ebx, word [ebx]
mov edx, eax
cmp ebx, 0x7b
je 0x10021f7e
mov edx, ecx
cmp ebx, 0x7d
jne 0x10021f83
lea eax, [edx + 2]
jmp 0x10021f85
mov eax, ecx
add eax, 2
mov dword [esi], eax
mov ecx, esi
call fcn.10020190
test byte [esi + 0x50], 0x80
je 0x10022089
movzx eax, word [esi + 0x48]
mov ecx, eax
cmp eax, 0x62
jne 0x1002201c
push 4
lea ecx, [esi + 0x24]
call fcn.100223c0
mov eax, dword [esi]
mov edx, dword [edi]
cmp eax, edx
je 0x10022010
cmp word [eax], 0x5c
jne 0x1002200b
lea ebx, [eax + 2]
mov ecx, eax
cmp ebx, edx
je 0x10022009
test byte [esi + 0x50], 8
jne 0x10021fde
movzx ecx, word [ebx]
mov edx, eax
cmp ecx, 0x28
je 0x10021ff5
cmp ecx, 0x29
je 0x10021ff5
mov ecx, eax
test byte [esi + 0x50], 0x10
jne 0x10022009
movzx ebx, word [ebx]
mov edx, eax
cmp ebx, 0x7b
je 0x10021ff5
mov edx, ecx
cmp ebx, 0x7d
jne 0x10022009
lea eax, [edx + 2]
mov ecx, esi
add eax, 2
mov dword [esi], eax
call fcn.10020190
jmp 0x1002238c
mov eax, ecx
add eax, 2
mov dword [esi], eax
mov ecx, esi
call fcn.10020190
jmp 0x1002238c
cmp ecx, 0x42
jne 0x10022089
push 4
lea ecx, [esi + 0x24]
call fcn.100223c0
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
mov eax, dword [esi]
mov ecx, dword [edi]
cmp eax, ecx
je 0x1002207d
cmp word [eax], 0x5c
jne 0x10022078
lea ebx, [eax + 2]
cmp ebx, ecx
je 0x10022078
mov ecx, dword [esi + 0x50]
test cl, 8
jne 0x10022061
movzx edx, word [ebx]
mov ecx, eax
cmp edx, 0x28
je 0x10022075
cmp edx, 0x29
je 0x10022075
mov ecx, dword [esi + 0x50]
test cl, 0x10
jne 0x10022078
movzx edx, word [ebx]
mov ecx, eax
cmp edx, 0x7b
je 0x10022075
cmp edx, 0x7d
jne 0x10022078
lea eax, [ecx + 2]
add eax, 2
mov dword [esi], eax
mov ecx, esi
call fcn.10020190
jmp 0x1002238c
mov ecx, esi
call fcn.10023eb0
jmp 0x10022382
cmp eax, 0x5b
jne 0x10022150
mov eax, dword [esi]
mov ecx, dword [edi]
cmp eax, ecx
je 0x100220e6
cmp word [eax], 0x5c
jne 0x100220e1
lea edx, [eax + 2]
cmp edx, ecx
je 0x100220e1
mov ebx, dword [esi + 0x50]
test bl, 8
jne 0x100220ca
movzx edi, word [edx]
mov ecx, eax
cmp edi, 0x28
je 0x100220de
cmp edi, 0x29
je 0x100220de
test bl, 0x10
jne 0x100220e1
movzx edx, word [edx]
mov ecx, eax
cmp edx, 0x7b
je 0x100220de
cmp edx, 0x7d
jne 0x100220e1
lea eax, [ecx + 2]
add eax, 2
mov dword [esi], eax
mov ecx, esi
call fcn.10020190
mov ecx, esi
call fcn.10023d60
cmp dword [esi + 0x4c], 0x5d
jne 0x100223b8
mov eax, dword [esi]
mov ecx, dword [esi + 8]
cmp eax, ecx
je 0x1002237b
cmp word [eax], 0x5c
jne 0x10022146
lea edx, [eax + 2]
cmp edx, ecx
je 0x10022146
mov ebx, dword [esi + 0x50]
test bl, 8
jne 0x1002212f
movzx edi, word [edx]
mov ecx, eax
cmp edi, 0x28
je 0x10022143
cmp edi, 0x29
je 0x10022143
test bl, 0x10
jne 0x10022146
movzx edx, word [edx]
mov ecx, eax
cmp edx, 0x7b
je 0x10022143
cmp edx, 0x7d
jne 0x10022146
lea eax, [ecx + 2]
add eax, 2
mov dword [esi], eax
jmp 0x1002237b
cmp eax, 0x28
jne 0x10022221
mov eax, dword [esi]
mov ecx, dword [edi]
cmp eax, ecx
je 0x100221a4
cmp word [eax], 0x5c
jne 0x1002219f
lea edx, [eax + 2]
cmp edx, ecx
je 0x1002219f
mov ecx, dword [esi + 0x50]
test cl, 8
jne 0x10022188
movzx ebx, word [edx]
mov ecx, eax
cmp ebx, 0x28
je 0x1002219c
cmp ebx, 0x29
je 0x1002219c
mov ecx, dword [esi + 0x50]
test cl, 0x10
jne 0x1002219f
movzx edx, word [edx]
mov ecx, eax
cmp edx, 0x7b
je 0x1002219c
cmp edx, 0x7d
jne 0x1002219f
lea eax, [ecx + 2]
add eax, 2
mov dword [esi], eax
mov ecx, esi
call fcn.10020190
mov ecx, esi
call fcn.10024000
cmp dword [esi + 0x4c], 0x29
mov byte [ebp - 1], al
jne 0x100223aa
mov eax, dword [esi]
mov ecx, dword [esi + 8]
cmp eax, ecx
je 0x1002220b
cmp word [eax], 0x5c
jne 0x10022206
lea edx, [eax + 2]
cmp edx, ecx
je 0x10022206
mov ecx, dword [esi + 0x50]
test cl, 8
jne 0x100221ef
movzx ebx, word [edx]
mov ecx, eax
cmp ebx, 0x28
je 0x10022203
cmp ebx, 0x29
je 0x10022203
mov ecx, dword [esi + 0x50]
test cl, 0x10
jne 0x10022206
movzx edx, word [edx]
mov ecx, eax
cmp edx, 0x7b
je 0x10022203
cmp edx, 0x7d
jne 0x10022206
lea eax, [ecx + 2]
add eax, 2
mov dword [esi], eax
mov ecx, esi
call fcn.10020190
cmp byte [ebp - 1], 0
je 0x1002238c
jmp 0x10022382
cmp eax, 0x5e
jne 0x10022281
push 2
lea ecx, [esi + 0x24]
call fcn.100223c0
mov eax, dword [esi]
lea edi, [esi + 8]
mov ecx, dword [edi]
cmp eax, ecx
je 0x10022275
cmp word [eax], 0x5c
jne 0x10022272
add eax, 2
cmp eax, ecx
je 0x10022272
mov ecx, dword [esi + 0x50]
test cl, 8
jne 0x1002225d
movzx edx, word [eax]
cmp edx, 0x28
je 0x1002226f
cmp edx, 0x29
je 0x1002226f
test cl, 0x10
jne 0x10022272
movzx eax, word [eax]
cmp eax, 0x7b
je 0x1002226f
cmp eax, 0x7d
jne 0x10022272
add dword [esi], 2
add dword [esi], 2
mov ecx, esi
call fcn.10020190
jmp 0x1002238c
cmp eax, 0x24
jne 0x100222e1
push 3
lea ecx, [esi + 0x24]
call fcn.100223c0
mov eax, dword [esi]
lea edi, [esi + 8]
mov ecx, dword [edi]
cmp eax, ecx
je 0x100222d5
cmp word [eax], 0x5c
jne 0x100222d2
add eax, 2
cmp eax, ecx
je 0x100222d2
mov ecx, dword [esi + 0x50]
test cl, 8
jne 0x100222bd
movzx edx, word [eax]
cmp edx, 0x28
je 0x100222cf
cmp edx, 0x29
je 0x100222cf
test cl, 0x10
jne 0x100222d2
movzx eax, word [eax]
cmp eax, 0x7b
je 0x100222cf
cmp eax, 0x7d
jne 0x100222d2
add dword [esi], 2
add dword [esi], 2
mov ecx, esi
call fcn.10020190
jmp 0x1002238c
cmp eax, 0x2a
je 0x100223a3
cmp eax, 0x2b
je 0x100223a3
cmp eax, 0x3f
je 0x100223a3
cmp eax, 0x7b
je 0x100223a3
cmp eax, 0x7d
jne 0x10022319
test dword [esi + 0x50], 0x10000000
je 0x100223b1
jmp 0x1002232b
cmp eax, 0x5d
jne 0x1002232b
test dword [esi + 0x50], 0x10000000
je 0x100223b8
movzx eax, word [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.10024400
mov eax, dword [esi]
mov ecx, dword [esi + 8]
cmp eax, ecx
je 0x1002237b
cmp word [eax], 0x5c
jne 0x10022378
add eax, 2
cmp eax, ecx
je 0x10022378
mov ecx, dword [esi + 0x50]
test cl, 8
jne 0x10022363
movzx edx, word [eax]
cmp edx, 0x28
je 0x10022375
cmp edx, 0x29
je 0x10022375
test cl, 0x10
jne 0x10022378
movzx eax, word [eax]
cmp eax, 0x7b
je 0x10022375
cmp eax, 0x7d
jne 0x10022378
add dword [esi], 2
add dword [esi], 2
mov ecx, esi
call fcn.10020190
mov ecx, esi
call fcn.100241d0
lea edi, [esi + 8]
mov eax, dword [esi + 0x4c]
mov cl, 1
cmp eax, 0xffffffff
jne 0x10021e90
pop edi
pop esi
mov al, cl
pop ebx
mov esp, ebp
pop ebp
ret
push 0xa
call fcn.10020180
push 5
call fcn.10020180
push 6
call fcn.10020180
push 4
call fcn.10020180
int3