Function at 0x4a3810
Capabilities:
Parse credit card information

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x44]
mov ebx, dword [eax + 0x20]
movzx ecx, byte [esi]
movzx eax, byte [ebx + 0x3c1]
cmp al, 1
je 0x4a3930
cmp al, 2
je 0x4a38a8
test al, al
jne 0x4a3845
cmp cl, 0x25
je 0x4a3a30
mov edi, 1
xor ebp, ebp
xor edx, edx
test cl, cl
jne 0x4a38f8
cmp byte [ebx + 0x368], 0
je 0x4a3c81
cmp byte [ebx + 0x3c3], 0
je 0x4a3c81
movzx eax, byte [ebx + 0x3c0]
cmp al, 2
je 0x4a3a40
jg 0x4a39f0
test al, al
je 0x4a3c58
cmp al, 1
jne 0x4a3898
mov byte [ebx + 0x3c0], 0
xor eax, eax
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
movsx ebp, cl
mov dword [esp], ebp
call fcn.00489660
test al, al
js 0x4a3bf0
movsx eax, byte [ebx + 0x3c2]
mov dword [esp], eax
call fcn.00489660
mov dword [esp], ebp
mov ebp, 1
mov edi, eax
call fcn.00489660
mov ecx, edi
mov edx, 1
xor edi, edi
shl ecx, 4
or ecx, eax
mov byte [esi], cl
mov byte [ebx + 0x3c1], 0
test cl, cl
je 0x4a3856
movzx eax, byte [ebx + 0x3c0]
cmp al, 2
je 0x4a3bd0
jg 0x4a3970
test al, al
je 0x4a3b10
cmp al, 1
jne 0x4a3a63
cmp cl, 0x2f
je 0x4a3959
cmp cl, 0x2e
jne 0x4a3c48
mov byte [ebx + 0x3c0], 2
jmp 0x4a3959
movsx eax, cl
mov byte [esp + 0x1f], cl
mov dword [esp], eax
call fcn.00489660
test al, al
js 0x4a3bf0
movzx ecx, byte [esp + 0x1f]
mov byte [ebx + 0x3c1], 2
mov byte [ebx + 0x3c2], cl
mov eax, 1
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp al, 3
jne 0x4a3a63
mov eax, ecx
and eax, 0xffffffef
cmp al, 0x2f
jne 0x4a39f8
movzx ebp, byte [ebx + 0x3bf]
add ebp, 2
movzx eax, word [ebx + ebp*8 + 4]
cmp ax, 2
jbe 0x4a3c00
mov edx, dword [ebx + 0x3a0]
sub eax, 1
sub edx, 1
jmp 0x4a39cd
mov esi, dword [ebx + 8]
cmp byte [esi + edx], 0x2f
je 0x4a3c38
sub edx, 1
sub eax, 1
mov dword [ebx + 0x3a0], edx
mov word [ebx + ebp*8 + 4], ax
cmp ax, 1
jne 0x4a39c0
jmp 0x4a3bde
cmp al, 3
jne 0x4a3898
mov eax, dword [esp + 0x40]
mov edx, 0x2e
call fcn.004a2600
cmp eax, 0xffffffff
je 0x4a3a22
mov eax, dword [esp + 0x40]
mov edx, 0x2e
call fcn.004a2600
cmp eax, 0xffffffff
jne 0x4a3891
mov eax, 0xffffffff
jmp 0x4a395e
mov byte [ebx + 0x3c1], 1
jmp 0x4a3959
mov byte [ebx + 0x3c0], 0
mov eax, dword [esp + 0x40]
mov edx, 0x2e
mov byte [esp + 0x1f], cl
call fcn.004a2600
movzx ecx, byte [esp + 0x1f]
cmp eax, 0xffffffff
je 0x4a3a22
cmp cl, 0x3f
jne 0x4a3898
mov eax, edi
test al, al
je 0x4a3898
cmp byte [ebx + 0x368], 0
jne 0x4a3898
cmp byte [ebx + 0x3c1], 0
jne 0x4a3bf0
mov eax, dword [esp + 0x40]
xor edx, edx
call fcn.004a2600
cmp eax, 0xffffffff
je 0x4a3a22
mov eax, dword [esp + 0x40]
mov eax, dword [eax + 0x20]
movzx edx, byte [eax + 0x3bf]
sub word [eax + edx*8 + 0x14], 1
movzx eax, byte [ebx + 0x3bf]
add eax, 1
mov byte [ebx + 0x3bf], al
cmp al, 0x60
ja 0x4a3c18
mov edi, dword [ebx + 0x3a0]
movzx ecx, al
lea ecx, [ebx + ecx*8]
lea edx, [edi + 1]
mov dword [ebx + 0x3a0], edx
mov dword [ecx + 0x10], edx
xor edx, edx
mov word [ecx + 0x14], dx
mov byte [ecx + 0x16], 0
mov byte [ebx + 0x3c3], 0
mov byte [ebx + 0x368], al
mov byte [ebx + 0x3c0], 0
jmp 0x4a3959
cmp cl, 0x26
je 0x4a3b58
cmp cl, 0x3b
je 0x4a3b58
cmp cl, 0x3d
jne 0x4a3c58
mov eax, ebp
test al, al
je 0x4a3c6d
cmp byte [ebx + 0x368], 0
je 0x4a3898
cmp byte [ebx + 0x3c3], 0
jne 0x4a3898
mov byte [esi], 0x5f
xor eax, eax
jmp 0x4a389a
test edx, edx
jne 0x4a3898
mov eax, dword [esp + 0x40]
call fcn.004a2600
cmp eax, 0xffffffff
je 0x4a3a22
mov eax, dword [esp + 0x40]
mov eax, dword [eax + 0x20]
movzx edx, byte [eax + 0x3bf]
sub word [eax + edx*8 + 0x14], 1
movzx edx, byte [ebx + 0x3bf]
lea eax, [edx + 1]
mov byte [ebx + edx*8 + 0x16], al
mov byte [ebx + 0x3bf], al
cmp al, 0x60
ja 0x4a3c18
mov edi, dword [ebx + 0x3a0]
movzx eax, al
xor ecx, ecx
mov byte [ebx + 0x3c3], 0
lea eax, [ebx + eax*8]
lea edx, [edi + 1]
mov dword [ebx + 0x3a0], edx
mov dword [eax + 0x10], edx
mov word [eax + 0x14], cx
mov byte [eax + 0x16], 0
jmp 0x4a3959
cmp cl, 0x2e
je 0x4a3c28
cmp cl, 0x2f
jne 0x4a3a40
mov byte [ebx + 0x3c0], 1
jmp 0x4a3959
mov eax, 2
jmp 0x4a395e
mov byte [ebx + 0x3c0], 1
je 0x4a3a63
jmp 0x4a3959
mov eax, 3
jmp 0x4a395e
mov byte [ebx + 0x3c0], 3
jmp 0x4a3959
mov byte [ebx + 0x3c0], 1
jmp 0x4a3a63
mov byte [ebx + 0x3c0], 0
jmp 0x4a3a63
cmp cl, 0x2b
jne 0x4a3ca2
mov eax, edi
test al, al
je 0x4a3ca2
mov byte [esi], 0x20
xor eax, eax
jmp 0x4a389a
mov eax, edi
test al, al
je 0x4a3c58
mov byte [ebx + 0x3c3], 1
xor eax, eax
jmp 0x4a389a
mov dword [esp + 8], 0xeb85f8
mov dword [esp + 4], 0xeb8564
mov dword [esp], 2
call fcn.0048dfc0
jmp 0x4a3a22
cmp cl, 0x2f
jne 0x4a3a63
cmp byte [ebx + 0x368], 0
jne 0x4a3898
mov byte [ebx + 0x3c0], 1
xor eax, eax
jmp 0x4a389a