Function at 0x4c1890
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2018
call fcn.0050c890
mov eax, dword [0x58569c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x2008], eax
movzx eax, word [edi]
mov esi, edi
test ax, ax
je 0x4c1a21
cmp ax, 0x3c
je 0x4c18d5
movzx eax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x4c18c3
cmp esi, edi
je 0x4c1a21
movzx ecx, word [edi]
lea ebx, [ebp - 0x2004]
mov edx, edi
mov dword [ebp - 0x2010], ebx
mov dword [ebp - 0x2014], edx
mov dword [ebp - 0x200c], esi
mov eax, edi
test cx, cx
je 0x4c1917
cmp cx, 0x26
je 0x4c1917
cmp eax, esi
jae 0x4c1919
movzx ecx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4c1901
cmp eax, esi
je 0x4c1975
mov eax, esi
sub eax, edi
sar eax, 1
cmp eax, 0x1000
jbe 0x4c1951
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004fd727
mov ebx, eax
add esp, 4
mov dword [ebp - 0x2010], ebx
test ebx, ebx
je 0x4c1a78
lea eax, [ebp - 0x200c]
push ebx
push eax
lea eax, [ebp - 0x2014]
call fcn.004c5c50
add esp, 8
test al, al
je 0x4c1a78
mov edx, dword [ebp - 0x2014]
cmp word [edx], 0
mov ebx, dword [ebp - 0x200c]
mov eax, edx
je 0x4c19ab
cmp eax, dword [ebp - 0x200c]
jae 0x4c19ab
movzx ecx, word [eax]
cmp ecx, 0x20
je 0x4c19a2
cmp ecx, 0xd
je 0x4c19a2
cmp ecx, 0xa
je 0x4c19a2
cmp ecx, 9
jne 0x4c19ab
add eax, 2
cmp word [eax], 0
jne 0x4c1983
mov ecx, dword [ebp - 0x200c]
cmp ecx, eax
jne 0x4c19bb
xor ebx, ebx
xor eax, eax
jmp 0x4c19df
jbe 0x4c19df
lea ecx, [ecx]
movzx ecx, word [ebx - 2]
cmp ecx, 0x20
je 0x4c19d8
cmp ecx, 0xd
je 0x4c19d8
cmp ecx, 0xa
je 0x4c19d8
cmp ecx, 9
jne 0x4c19df
add ebx, 0xfffffffe
cmp ebx, eax
ja 0x4c19c0
cmp dword [ebp - 0x2008], 0
je 0x4c1a04
mov ecx, dword [ebp - 0x2008]
mov ecx, dword [ecx + 0x18]
test ecx, ecx
je 0x4c1a04
mov edx, dword [ebp - 0x2008]
push esi
push edi
push ebx
push eax
mov eax, dword [edx]
push eax
call ecx
lea ecx, [ebp - 0x2004]
cmp dword [ebp - 0x2010], ecx
je 0x4c1a21
mov edx, dword [ebp - 0x2010]
push edx
call fcn.004fe819
add esp, 4
cmp word [esi], 0
jne 0x4c1a3a
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fe191
mov esp, ebp
pop ebp
ret
movzx eax, word [esi + 2]
add esi, 2
cmp eax, 0x3f
jne 0x4c1ac3
movzx eax, word [esi + 2]
add esi, 2
mov ecx, esi
test ax, ax
je 0x4c1a78
mov edx, 0x3e
lea ecx, [ecx]
cmp ax, 0x3f
jne 0x4c1a6c
cmp word [esi + 2], dx
je 0x4c1a8b
movzx eax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x4c1a60
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fe191
mov esp, ebp
pop ebp
ret
cmp word [esi], 0
je 0x4c1a78
mov eax, dword [ebp - 0x2008]
test eax, eax
je 0x4c1aaf
mov eax, dword [eax + 4]
test eax, eax
je 0x4c1aaf
push esi
push ecx
mov ecx, dword [ebp - 0x2008]
mov edx, dword [ecx]
push edx
call eax
pop edi
lea eax, [esi + 4]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fe191
mov esp, ebp
pop ebp
ret
cmp eax, 0x21
jne 0x4c1c91
movzx eax, word [esi + 2]
mov ecx, 0x2d
cmp ax, cx
jne 0x4c1b6c
cmp word [esi + 4], cx
jne 0x4c1b6c
movzx eax, word [esi + 6]
add esi, 6
mov edx, esi
test ax, ax
je 0x4c1a78
lea edi, [ecx + 0x11]
lea esp, [esp]
cmp ax, cx
jne 0x4c1b11
cmp word [esi + 2], cx
jne 0x4c1b11
cmp word [esi + 4], di
je 0x4c1b30
movzx eax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x4c1b00
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fe191
mov esp, ebp
pop ebp
ret
cmp word [esi], 0
je 0x4c1a78
mov eax, dword [ebp - 0x2008]
test eax, eax
je 0x4c1b58
mov eax, dword [eax + 0x20]
test eax, eax
je 0x4c1b58
mov ecx, dword [ebp - 0x2008]
push esi
push edx
mov edx, dword [ecx]
push edx
call eax
pop edi
lea eax, [esi + 6]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fe191
mov esp, ebp
pop ebp
ret
cmp eax, 0x5b
jne 0x4c1c20
cmp word [esi + 4], 0x43
jne 0x4c1c20
cmp word [esi + 6], 0x44
jne 0x4c1c20
mov eax, 0x41
cmp word [esi + 8], ax
jne 0x4c1c20
cmp word [esi + 0xa], 0x54
jne 0x4c1c20
cmp word [esi + 0xc], ax
jne 0x4c1c20
cmp word [esi + 0xe], 0x5b
jne 0x4c1c20
movzx eax, word [esi + 0x10]
add esi, 0x10
mov edx, esi
test ax, ax
je 0x4c1a78
mov edi, 0x3e
mov ecx, 0x5d
lea ebx, [ebx]
cmp ax, cx
jne 0x4c1be1
cmp word [esi + 2], cx
jne 0x4c1be1
cmp word [esi + 4], di
je 0x4c1c00
movzx eax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x4c1bd0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fe191
mov esp, ebp
pop ebp
ret
cmp word [esi], 0
je 0x4c1a78
mov eax, dword [ebp - 0x2008]
test eax, eax
je 0x4c1b58
mov eax, dword [eax + 0x1c]
jmp 0x4c1b47
movzx eax, word [esi]
mov ecx, esi
test ax, ax
je 0x4c1a78
mov edi, edi
cmp ax, 0x3e
je 0x4c1c55
movzx eax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x4c1c30
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fe191
mov esp, ebp
pop ebp
ret
cmp word [esi], 0
je 0x4c1a78
mov eax, dword [ebp - 0x2008]
test eax, eax
je 0x4c1c7d
mov eax, dword [eax + 0x24]
test eax, eax
je 0x4c1c7d
push esi
push ecx
mov ecx, dword [ebp - 0x2008]
mov edx, dword [ecx]
push edx
call eax
pop edi
lea eax, [esi + 2]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fe191
mov esp, ebp
pop ebp
ret
xor dl, dl
cmp eax, 0x2f
jne 0x4c1c9d
mov dl, 1
add esi, 2
movzx eax, word [esi]
mov ecx, esi
test ax, ax
je 0x4c1a78
jmp 0x4c1cb0
cmp ax, 0x20
je 0x4c1cf3
cmp ax, 0xd
je 0x4c1cf3
cmp ax, 0xa
je 0x4c1cf3
cmp ax, 9
je 0x4c1cf3
cmp ax, 0x3e
je 0x4c1cf3
cmp ax, 0x2f
je 0x4c1cf3
movzx eax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x4c1cb0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fe191
mov esp, ebp
pop ebp
ret
cmp word [esi], 0
je 0x4c1a78
cmp esi, ecx
je 0x4c1a78
test dl, dl
je 0x4c1d78
mov eax, dword [ebp - 0x2008]
test eax, eax
je 0x4c1d27
mov eax, dword [eax + 0x10]
test eax, eax
je 0x4c1d27
push esi
push ecx
mov ecx, dword [ebp - 0x2008]
mov edx, dword [ecx]
push edx
call eax
movzx eax, word [esi]
test ax, ax
je 0x4c1d5a
nop
cmp ax, 0x20
je 0x4c1d48
cmp ax, 0xd
je 0x4c1d48
cmp ax, 0xa
je 0x4c1d48
cmp ax, 9
jne 0x4c1d5a
cmp ax, 0x3e
je 0x4c1d64
movzx eax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x4c1d30
cmp word [esi], 0x3e
jne 0x4c1a78
pop edi
lea eax, [esi + 2]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fe191
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x2008], 0
je 0x4c1da0
mov eax, dword [ebp - 0x2008]
mov eax, dword [eax + 8]
test eax, eax
je 0x4c1da0
push esi
push ecx
mov ecx, dword [ebp - 0x2008]
mov edx, dword [ecx]
push edx
call eax
jmp 0x4c1da0
movzx eax, word [esi]
test ax, ax
je 0x4c1a78
lea esp, [esp]
cmp ax, 0x20
je 0x4c1dc8
cmp ax, 0xd
je 0x4c1dc8
cmp ax, 0xa
je 0x4c1dc8
cmp ax, 9
jne 0x4c1ded
cmp ax, 0x3e
je 0x4c1ded
movzx eax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x4c1db0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fe191
mov esp, ebp
pop ebp
ret
movzx eax, word [esi]
test ax, ax
je 0x4c1a78
mov byte [ebp - 0x200c], 0
cmp eax, 0x2f
jne 0x4c1e1c
movzx eax, word [esi + 2]
add esi, 2
cmp eax, 0x3e
jne 0x4c1a78
mov byte [ebp - 0x200c], 1
cmp ax, 0x3e
je 0x4c2035
mov ecx, esi
test ax, ax
je 0x4c1a78
cmp ax, 0x20
je 0x4c1e74
cmp ax, 0xd
je 0x4c1e74
cmp ax, 0xa
je 0x4c1e74
cmp ax, 9
je 0x4c1e74
cmp ax, 0x3d
je 0x4c1e74
cmp ax, 0x3e
je 0x4c1e74
movzx eax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x4c1e31
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fe191
mov esp, ebp
pop ebp
ret
movzx eax, word [esi]
test ax, ax
je 0x4c1a78
cmp eax, 0x3e
je 0x4c1a78
mov ebx, ecx
mov dword [ebp - 0x2018], esi
cmp ax, 0x20
je 0x4c1ea9
cmp ax, 0xd
je 0x4c1ea9
cmp ax, 0xa
je 0x4c1ea9
cmp ax, 9
jne 0x4c1ebb
cmp ax, 0x3e
je 0x4c1ebb
movzx eax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x4c1e91
cmp word [esi], 0x3d
jne 0x4c1a78
movzx eax, word [esi + 2]
add esi, 2
test ax, ax
je 0x4c1a78
cmp ax, 0x20
je 0x4c1eed
cmp ax, 0xd
je 0x4c1eed
cmp ax, 0xa
je 0x4c1eed
cmp ax, 9
jne 0x4c1f12
cmp ax, 0x3e
je 0x4c1f12
movzx eax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x4c1ed5
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fe191
mov esp, ebp
pop ebp
ret
movzx eax, word [esi]
test ax, ax
je 0x4c1a78
cmp eax, 0x3e
je 0x4c1a78
cmp eax, 0x22
je 0x4c1f35
cmp eax, 0x27
jne 0x4c1a78
add esi, 2
mov ecx, eax
movzx eax, word [esi]
mov edx, esi
test ax, ax
je 0x4c1f5b
cmp ax, cx
je 0x4c1f64
cmp ax, 0x3e
je 0x4c1f5b
movzx eax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x4c1f44
cmp word [esi], cx
jne 0x4c1a78
movzx ecx, word [edx]
lea edi, [ebp - 0x2004]
mov dword [ebp - 0x2010], edx
mov dword [ebp - 0x2014], esi
mov eax, edx
test cx, cx
je 0x4c1f96
cmp cx, 0x26
je 0x4c1f96
cmp eax, esi
jae 0x4c1f98
movzx ecx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4c1f80
cmp eax, esi
je 0x4c1fe8
mov eax, esi
sub eax, edx
sar eax, 1
cmp eax, 0x1000
jbe 0x4c1fca
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004fd727
mov edi, eax
add esp, 4
test edi, edi
je 0x4c1a78
lea eax, [ebp - 0x2014]
push edi
push eax
lea eax, [ebp - 0x2010]
call fcn.004c5c50
add esp, 8
test al, al
je 0x4c1a78
mov eax, dword [ebp - 0x2008]
test eax, eax
je 0x4c201a
mov eax, dword [eax + 0x14]
test eax, eax
je 0x4c201a
mov ecx, dword [ebp - 0x2014]
mov edx, dword [ebp - 0x2010]
push ecx
mov ecx, dword [ebp - 0x2018]
push edx
mov edx, dword [ebp - 0x2008]
push ecx
mov ecx, dword [edx]
push ebx
push ecx
call eax
lea edx, [ebp - 0x2004]
cmp edi, edx
je 0x4c202d
push edi
call fcn.004fe819
add esp, 4
add esi, 2
jmp 0x4c1da0
mov ecx, dword [ebp - 0x2008]
test ecx, ecx
je 0x4c2052
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x4c2052
mov edx, dword [ebp - 0x200c]
mov ecx, dword [ecx]
push edx
push ecx
call eax
mov ecx, dword [ebp - 4]
pop edi
lea eax, [esi + 2]
pop esi
xor ecx, ebp
pop ebx
call fcn.004fe191
mov esp, ebp
pop ebp
ret