Function at 0x47c565
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4f562c]
push ebx
push esi
xor esi, esi
mov cl, byte [eax]
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
push edi
lea edi, [eax + 1]
mov dword [0x4f562c], edi
cmp cl, 0x41
jg 0x47c70e
je 0x47cb81
test cl, cl
je 0x47c6f4
cmp cl, 0x2f
jle case.default.0x47ca77
cmp cl, 0x31
jle 0x47c61c
cmp cl, 0x39
jg case.default.0x47ca77
movsx eax, byte [edi - 1]
lea eax, [eax*8 + 0x4cda70]
push eax
lea ecx, [ebp - 8]
call fcn.0047948a
cmp dword [ebp - 8], 0
je 0x47c609
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], str.operator
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x1c], 8
call fcn.00479250
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x20]
push ecx
mov ecx, eax
call fcn.004795b4
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, esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ebx
cmp byte [ebp + 0xc], bl
je 0x47c695
lea eax, [ebp - 0x20]
push eax
call fcn.0047d923
push eax
lea eax, [ebp - 0x18]
push 0x3c
push eax
call fcn.00479545
add esp, 0x10
lea ecx, [ebp - 0x10]
push eax
call fcn.00479672
lea ecx, [ebp - 0x10]
call fcn.0047c368
cmp al, 0x3e
jne 0x47c660
push 0x20
lea ecx, [ebp - 0x10]
call fcn.004796c9
push 0x3e
lea ecx, [ebp - 0x10]
call fcn.004796c9
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x47c674
mov byte [eax], 1
mov edi, dword [0x4f562c]
cmp byte [edi], bl
jne 0x47c68b
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
jmp 0x47c614
mov ebx, dword [ebp - 0x10]
inc edi
mov dword [0x4f562c], edi
push esi
lea eax, [ebp - 0x20]
push esi
push eax
call fcn.0047e727
add esp, 0xc
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
mov dword [0x4f562c], edi
test ecx, ecx
je 0x47c6db
cmp byte [edi - 1], 0x31
jne 0x47c6db
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x20]
push 0x7e
push eax
call fcn.00479545
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 0x47c609
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
call fcn.00479672
jmp 0x47c609
lea eax, [edi - 1]
mov dword [0x4f562c], eax
mov ecx, dword [ebp + 8]
push 1
call fcn.004792be
mov eax, dword [ebp + 8]
jmp 0x47c617
cmp cl, 0x42
je 0x47cb7e
jle case.default.0x47ca77
cmp cl, 0x5a
jle 0x47cb81
cmp cl, 0x5f
jne case.default.0x47ca77
movsx eax, byte [edi]
lea ecx, [edi + 1]
mov dword [0x4f562c], ecx
cmp eax, 0x4f
jg 0x47c851
cmp eax, 0x44
jge 0x47cb4d
cmp eax, 0x39
jg 0x47c7cd
je 0x47c7a0
test eax, eax
je 0x47c795
cmp eax, 0x2f
jle case.default.0x47ca77
cmp eax, 0x36
jle 0x47c785
cmp eax, 0x38
jg case.default.0x47ca77
movsx eax, byte [ecx - 1]
lea eax, [eax*8 + 0x4cdb90]
mov ecx, dword [ebp + 8]
push eax
call fcn.00479250
jmp 0x47c706
movsx eax, byte [ecx - 1]
lea eax, [eax*8 + 0x4cdb90]
jmp 0x47c5c5
mov dword [0x4f562c], edi
jmp 0x47c6fc
movsx eax, byte [ecx - 1]
lea ecx, [ebp - 0x18]
lea eax, [eax*8 + 0x4cdb90]
push eax
call fcn.00479250
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 0x47c617
cmp eax, 0x3f
je 0x47c7fe
cmp eax, 0x40
jle case.default.0x47ca77
cmp eax, 0x42
jle 0x47cb4d
push 1
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.0047d7f9
mov edx, dword [ebp - 0x14]
add esp, 0xc
or edx, 0x1000
jmp 0x47c7bd
mov dl, byte [ecx]
lea eax, [ecx + 1]
mov dword [0x4f562c], eax
test dl, dl
je 0x47c846
mov edi, dword [ebp + 8]
cmp dl, 0x30
je 0x47c81f
mov dword [edi + 4], esi
mov byte [edi + 4], 2
mov dword [edi], esi
jmp 0x47c83f
push esi
lea eax, [ebp - 0x18]
push 1
push eax
call fcn.0047d7f9
mov ecx, dword [ebp - 0x14]
add esp, 0xc
mov eax, dword [ebp - 0x18]
or ecx, 0x1000
mov dword [edi], eax
mov dword [edi + 4], ecx
mov eax, edi
jmp 0x47c617
mov dword [0x4f562c], ecx
jmp 0x47c6fc
cmp eax, 0x54
jg 0x47ca36
cmp eax, 0x53
jge 0x47cb4d
sub eax, 0x50
je 0x47c9e6
sub eax, 1
je 0x47c5ce
sub eax, 1
jne case.default.0x47ca77
movsx eax, byte [ecx - 1]
lea ecx, [ebp - 8]
lea eax, [eax*8 + 0x4cdb58]
push eax
call fcn.0047948a
mov eax, dword [0x4f562c]
mov al, byte [eax]
test al, al
jne 0x47c8af
push 1
push dword [ebp + 8]
lea ecx, [ebp - 8]
call fcn.004795f8
jmp 0x47c706
movsx eax, al
sub eax, 0x30
js case.default.0x47ca77
cmp eax, 5
jae case.default.0x47ca77
lea eax, [eax*8 + 0x4cde98]
push eax
lea ecx, [ebp - 0x18]
call fcn.0047948a
mov eax, dword [0x4f562c]
mov cl, byte [eax]
inc eax
mov dword [0x4f562c], eax
cmp cl, 0x30
je 0x47c9ac
cmp cl, 0x31
je 0x47c900
jle 0x47c8fa
cmp cl, 0x34
jle 0x47ca22
dec eax
jmp 0x47c6f7
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.00479672
lea eax, [ebp - 0x20]
push eax
call fcn.0047d660
pop ecx
push 0x2c
lea ecx, [ebp - 0x18]
push ecx
mov ecx, eax
call fcn.004795d6
push eax
lea ecx, [ebp - 0x10]
call fcn.00479672
lea eax, [ebp - 0x20]
push eax
call fcn.0047d660
pop ecx
push 0x2c
lea ecx, [ebp - 0x18]
push ecx
mov ecx, eax
call fcn.004795d6
push eax
lea ecx, [ebp - 0x10]
call fcn.00479672
lea eax, [ebp - 0x20]
push eax
call fcn.0047d660
pop ecx
push 0x2c
lea ecx, [ebp - 0x18]
push ecx
mov ecx, eax
call fcn.004795d6
push eax
lea ecx, [ebp - 0x10]
call fcn.00479672
lea eax, [ebp - 0x20]
push esi
push eax
call fcn.0047b976
pop ecx
pop ecx
push 0x29
lea ecx, [ebp - 0x18]
push ecx
mov ecx, eax
call fcn.004795d6
push eax
lea ecx, [ebp - 0x10]
call fcn.00479672
push 0x27
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.004795d6
jmp 0x47c706
lea eax, [ebp - 0x20]
push esi
push eax
call fcn.0047b635
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.004796c9
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x10]
call fcn.004795b4
lea ecx, [ebp - 0x18]
push ecx
mov ecx, eax
jmp 0x47ca29
movsx eax, byte [ecx - 1]
lea ecx, [ebp - 8]
lea eax, [eax*8 + 0x4cdb58]
push eax
call fcn.0047948a
push esi
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.0047c565
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 0x47ca22
test eax, 0x400
jne case.default.0x47ca77
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 8]
push dword [ebp + 8]
call fcn.004795b4
jmp 0x47c706
cmp eax, 0x56
jle 0x47cb5d
cmp eax, 0x57
jle case.default.0x47ca77
cmp eax, 0x59
jle 0x47cb4d
cmp eax, 0x5f
jne case.default.0x47ca77
movsx eax, byte [ecx]
inc ecx
sub eax, 0x41
mov dword [0x4f562c], ecx
cmp eax, 0xc
ja case.default.0x47ca77
movzx eax, byte [eax + 0x47cbc1]
jmp dword [eax*4 + 0x47cbb5]
movsx eax, byte [ecx - 1]
lea eax, [eax*8 + 0x4cdc20]
jmp 0x47c77a
movsx eax, byte [ecx - 1]
lea ecx, [ebp - 0x18]
lea eax, [eax*8 + 0x4cdc20]
push eax
call fcn.00479250
mov eax, dword [0x4f562c]
cmp byte [eax], 0x3f
lea eax, [ebp - 0x28]
push eax
jne 0x47cad1
call fcn.0047b70c
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.00479672
mov eax, dword [0x4f562c]
cmp byte [eax], 0x40
jne 0x47cae0
inc eax
mov dword [0x4f562c], eax
jmp 0x47cae0
call fcn.0047d8db
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.00479672
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x4ce56c
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x1c], 2
call fcn.0047961a
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x14]
jmp 0x47c614
movsx eax, byte [ecx - 1]
lea ecx, [ebp - 0x18]
lea eax, [eax*8 + 0x4cdc20]
push eax
call fcn.00479250
jmp 0x47cb34
cmp al, 0x40
je 0x47cb44
inc ecx
mov dword [0x4f562c], ecx
lea ecx, [ebp - 0x18]
push eax
call fcn.004796c9
mov ecx, dword [0x4f562c]
mov al, byte [ecx]
test al, al
jne 0x47cb20
cmp al, 0x40
jne 0x47cafa
inc ecx
mov dword [0x4f562c], ecx
jmp 0x47cafa
movsx eax, byte [ecx - 1]
lea eax, [eax*8 + 0x4cdb58]
jmp 0x47c77a
movsx eax, byte [ecx - 1]
lea eax, [eax*8 + 0x4cdb58]
jmp 0x47c5c5
mov eax, dword [ebp + 8]
mov dword [eax + 4], esi
mov byte [eax + 4], 2
mov dword [eax], esi
jmp 0x47c617
xor esi, esi
inc esi
movsx eax, byte [edi - 1]
lea ecx, [ebp - 8]
lea eax, [eax*8 + 0x4cda38]
push eax
call fcn.0047948a
test esi, esi
je 0x47c5ce
cmp dword [ebp - 8], 0
je 0x47c609
or dword [ebp - 4], 0x200
jmp 0x47c609