Function at 0x412581
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x460558]
push ebx
push esi
push edi
mov cl, byte [eax]
lea esi, [eax + 1]
xor edi, edi
mov dword [0x460558], esi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
cmp cl, 0x41
jg 0x412742
je 0x412bd4
test cl, cl
je 0x412728
cmp cl, 0x2f
jle case.default.0x412aad
cmp cl, 0x31
jle 0x412638
cmp cl, 0x39
jg case.default.0x412aad
movsx eax, byte [esi - 1]
lea eax, [eax*8 + 0x454270]
push eax
lea ecx, [ebp - 8]
call fcn.0040ef73
cmp dword [ebp - 8], 0
je 0x412625
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], str.operator
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x1c], 8
call fcn.0040ecb1
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x20]
push ecx
mov ecx, eax
call fcn.0040f119
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, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], ebx
cmp byte [ebp + 0xc], bl
je 0x4126c9
lea eax, [ebp - 0x20]
push eax
call fcn.00413a43
push eax
lea eax, [ebp - 0x18]
push 0x3c
push eax
call fcn.0040f0aa
add esp, 0x10
lea ecx, [ebp - 0x10]
push eax
call fcn.0040f213
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x412690
mov eax, dword [ebx]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x45214c]
mov ecx, ebx
call esi
cmp al, 0x3e
jne 0x412690
push 0x20
lea ecx, [ebp - 0x10]
call fcn.0040f26a
push 0x3e
lea ecx, [ebp - 0x10]
call fcn.0040f26a
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4126a4
mov byte [eax], 1
mov esi, dword [0x460558]
cmp byte [esi], 0
jne 0x4126bf
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
jmp 0x412630
mov ebx, dword [ebp - 0x10]
inc esi
mov dword [0x460558], esi
push edi
lea eax, [ebp - 0x20]
push edi
push eax
call fcn.00414997
add esp, 0xc
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
mov dword [0x460558], esi
test ecx, ecx
je 0x41270f
cmp byte [esi - 1], 0x31
jne 0x41270f
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x20]
push 0x7e
push eax
call fcn.0040f0aa
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 0x412625
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
call fcn.0040f213
jmp 0x412625
lea eax, [esi - 1]
mov dword [0x460558], eax
mov ecx, dword [ebp + 8]
push 1
call fcn.0040ed51
mov eax, dword [ebp + 8]
jmp 0x412633
cmp cl, 0x42
je 0x412bd1
jle case.default.0x412aad
cmp cl, 0x5a
jle 0x412bd4
cmp cl, 0x5f
jne case.default.0x412aad
movsx eax, byte [esi]
lea ecx, [esi + 1]
mov dword [0x460558], ecx
cmp eax, 0x4f
jg 0x412885
cmp eax, 0x44
jge 0x412ba0
cmp eax, 0x39
jg 0x412801
je 0x4127d4
test eax, eax
je 0x4127c9
cmp eax, 0x2f
jle case.default.0x412aad
cmp eax, 0x36
jle 0x4127b9
cmp eax, 0x38
jg case.default.0x412aad
movsx eax, byte [ecx - 1]
lea eax, [eax*8 + 0x454390]
mov ecx, dword [ebp + 8]
push eax
call fcn.0040ecb1
jmp 0x41273a
movsx eax, byte [ecx - 1]
lea eax, [eax*8 + 0x454390]
jmp 0x4125e1
mov dword [0x460558], esi
jmp 0x412730
movsx eax, byte [ecx - 1]
lea ecx, [ebp - 0x18]
lea eax, [eax*8 + 0x454390]
push eax
call fcn.0040ecb1
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 0x412633
cmp eax, 0x3f
je 0x412832
cmp eax, 0x40
jle case.default.0x412aad
cmp eax, 0x42
jle 0x412ba0
push 1
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.004138c2
mov edx, dword [ebp - 0x14]
add esp, 0xc
or edx, 0x1000
jmp 0x4127f1
mov dl, byte [ecx]
lea eax, [ecx + 1]
mov dword [0x460558], eax
test dl, dl
je 0x41287a
mov esi, dword [ebp + 8]
cmp dl, 0x30
je 0x412853
mov dword [esi + 4], edi
mov byte [esi + 4], 2
mov dword [esi], edi
jmp 0x412873
push edi
lea eax, [ebp - 0x18]
push 1
push eax
call fcn.004138c2
mov ecx, dword [ebp - 0x14]
add esp, 0xc
mov eax, dword [ebp - 0x18]
or ecx, 0x1000
mov dword [esi], eax
mov dword [esi + 4], ecx
mov eax, esi
jmp 0x412633
mov dword [0x460558], ecx
jmp 0x412730
cmp eax, 0x54
jg 0x412a6a
cmp eax, 0x53
jge 0x412ba0
sub eax, 0x50
je 0x412a1a
sub eax, 1
je 0x4125ea
sub eax, 1
jne case.default.0x412aad
movsx eax, byte [ecx - 1]
lea ecx, [ebp - 8]
lea eax, [eax*8 + str.tstb]
push eax
call fcn.0040ef73
mov eax, dword [0x460558]
mov al, byte [eax]
test al, al
jne 0x4128e3
push 1
push dword [ebp + 8]
lea ecx, [ebp - 8]
call fcn.0040f17f
jmp 0x41273a
movsx eax, al
sub eax, 0x30
js case.default.0x412aad
cmp eax, 5
jae case.default.0x412aad
lea eax, [eax*8 + 0x454698]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040ef73
mov eax, dword [0x460558]
mov cl, byte [eax]
inc eax
mov dword [0x460558], eax
cmp cl, 0x30
je 0x4129e0
cmp cl, 0x31
je 0x412934
jle 0x41292e
cmp cl, 0x34
jle 0x412a56
dec eax
jmp 0x41272b
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.0040f213
lea eax, [ebp - 0x20]
push eax
call fcn.0041370b
pop ecx
push 0x2c
lea ecx, [ebp - 0x18]
push ecx
mov ecx, eax
call fcn.0040f13b
push eax
lea ecx, [ebp - 0x10]
call fcn.0040f213
lea eax, [ebp - 0x20]
push eax
call fcn.0041370b
pop ecx
push 0x2c
lea ecx, [ebp - 0x18]
push ecx
mov ecx, eax
call fcn.0040f13b
push eax
lea ecx, [ebp - 0x10]
call fcn.0040f213
lea eax, [ebp - 0x20]
push eax
call fcn.0041370b
pop ecx
push 0x2c
lea ecx, [ebp - 0x18]
push ecx
mov ecx, eax
call fcn.0040f13b
push eax
lea ecx, [ebp - 0x10]
call fcn.0040f213
lea eax, [ebp - 0x20]
push edi
push eax
call fcn.0041187b
pop ecx
pop ecx
push 0x29
lea ecx, [ebp - 0x18]
push ecx
mov ecx, eax
call fcn.0040f13b
push eax
lea ecx, [ebp - 0x10]
call fcn.0040f213
push 0x27
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.0040f13b
jmp 0x41273a
lea eax, [ebp - 0x20]
push edi
push eax
call fcn.0041153a
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.0040f26a
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040f119
lea ecx, [ebp - 0x18]
push ecx
mov ecx, eax
jmp 0x412a5d
movsx eax, byte [ecx - 1]
lea ecx, [ebp - 8]
lea eax, [eax*8 + str.tstb]
push eax
call fcn.0040ef73
push edi
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.00412581
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 0x412a56
test eax, 0x400
jne case.default.0x412aad
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 8]
push dword [ebp + 8]
call fcn.0040f119
jmp 0x41273a
cmp eax, 0x56
jle 0x412bb0
cmp eax, 0x57
jle case.default.0x412aad
cmp eax, 0x59
jle 0x412ba0
cmp eax, 0x5f
jne case.default.0x412aad
movsx eax, byte [ecx]
lea edx, [ecx + 1]
sub eax, 0x41
mov dword [0x460558], edx
cmp eax, 0xd
ja case.default.0x412aad
movzx eax, byte [eax + 0x412c19]
jmp dword [eax*4 + 0x412c09]
movsx eax, byte [edx - 1]
lea eax, [eax*8 + 0x454420]
jmp 0x4127ae
movsx eax, byte [edx - 1]
lea ecx, [ebp - 0x18]
lea eax, [eax*8 + 0x454420]
push eax
call fcn.0040ecb1
mov eax, dword [0x460558]
cmp byte [eax], 0x3f
lea eax, [ebp - 0x28]
push eax
jne 0x412b07
call fcn.00411611
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.0040f213
mov eax, dword [0x460558]
cmp byte [eax], 0x40
jne 0x412b16
inc eax
mov dword [0x460558], eax
jmp 0x412b16
call fcn.004139fb
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.0040f213
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x454d78
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x1c], 2
call fcn.0040f1bb
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x14]
jmp 0x412630
movsx eax, byte [edx - 1]
lea ecx, [ebp - 0x18]
lea eax, [eax*8 + 0x454420]
push eax
call fcn.0040ecb1
jmp 0x412b6a
cmp al, 0x40
je 0x412b7a
inc ecx
mov dword [0x460558], ecx
lea ecx, [ebp - 0x18]
push eax
call fcn.0040f26a
mov ecx, dword [0x460558]
mov al, byte [ecx]
test al, al
jne 0x412b56
cmp al, 0x40
jne 0x412b30
inc ecx
mov dword [0x460558], ecx
jmp 0x412b30
mov cl, byte [edx]
lea eax, [edx + 1]
mov dword [0x460558], eax
cmp cl, 0x32
jne case.default.0x412aad
push dword [ebp + 8]
call fcn.004146d8
pop ecx
jmp 0x41273a
movsx eax, byte [ecx - 1]
lea eax, [eax*8 + str.tstb]
jmp 0x4127ae
movsx eax, byte [ecx - 1]
lea eax, [eax*8 + str.tstb]
jmp 0x4125e1
mov eax, dword [ebp + 8]
mov dword [eax + 4], edi
mov byte [eax + 4], 2
mov dword [eax], edi
jmp 0x412633
xor edi, edi
inc edi
movsx eax, byte [esi - 1]
lea ecx, [ebp - 8]
lea eax, [eax*8 + str.clra]
push eax
call fcn.0040ef73
test edi, edi
je 0x4125ea
cmp dword [ebp - 8], 0
je 0x412625
or dword [ebp - 4], 0x200
jmp 0x412625