Function at 0x4566cf
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0x10]
and dword [ebp - 0x18], 0
push ebx
push esi
mov edx, dword [eax]
push edi
mov edi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x10], edx
call fcn.0045cc7f
mov ebx, eax
pop ecx
test dl, 0x40
jne 0x456702
cmp dword [0x4bb464], 0
je 0x456ace
cmp ebx, 5
jl 0x456ace
push 5
push 0x4a2a8c
push edi
call fcn.00478b2b
add esp, 0xc
test eax, eax
jne 0x456ace
and dword [ebp - 0xc], eax
lea edx, [ebx + 2]
or dword [ebp - 0x10], 0x40
xor ecx, ecx
test ebx, ebx
jle 0x456743
xor eax, eax
cmp byte [ecx + edi], 0x26
sete al
add edx, eax
inc ecx
cmp ecx, ebx
jl 0x456733
push edx
call fcn.0042d0dc
mov edx, eax
mov dword [ebp - 8], edx
pop ecx
test edx, edx
jne 0x45675b
push 7
pop eax
jmp 0x456aaa
cmp byte [edi + 5], 0x2f
push 5
pop esi
jne 0x4567bd
cmp byte [edi + 6], 0x2f
jne 0x4567bd
lea ebx, [edi + 7]
mov al, byte [ebx]
push 7
pop esi
test al, al
je 0x4567bd
cmp al, 0x2f
je 0x456782
inc esi
mov al, byte [esi + edi]
test al, al
jne 0x456776
cmp esi, 7
je 0x4567bd
cmp esi, 0x10
jne 0x4567a0
push 9
push ebx
push 0x4a2a94
call fcn.00478b2b
add esp, 0xc
test eax, eax
je 0x4567ba
push ebx
lea eax, [esi - 7]
push eax
push 0x4a2aa0
call fcn.0042cedc
mov esi, dword [ebp - 8]
add esp, 0xc
jmp 0x456a85
mov edx, dword [ebp - 8]
mov bl, byte [esi + edi]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
test bl, bl
je 0x45690a
cmp bl, 0x23
je 0x456886
inc esi
cmp bl, 0x25
jne 0x456895
mov al, byte [esi + edi]
mov byte [ebp - 1], al
movzx eax, al
test byte [eax + 0x49b4b0], 8
je 0x456895
movzx eax, byte [esi + edi + 1]
test byte [eax + 0x49b4b0], 8
je 0x456895
movsx ecx, byte [ebp - 1]
movsx edx, byte [esi + edi + 1]
mov eax, ecx
sar eax, 6
mov bl, cl
and al, 1
mov cl, dl
movzx eax, al
add esi, 2
imul eax, eax, 7
sub bl, al
mov eax, edx
sar eax, 6
and ebx, 0xf
and al, 1
shl ebx, 4
movzx eax, al
imul eax, eax, 7
sub cl, al
and ecx, 0xf
add ebx, ecx
mov ecx, dword [ebp - 0x14]
je 0x456871
mov edx, dword [ebp - 8]
jmp 0x4568fb
cmp al, 0x23
je 0x456878
test ecx, ecx
jne 0x45685a
cmp al, 0x3f
je 0x456878
cmp ecx, 1
jne 0x456867
cmp al, 0x3d
je 0x456878
cmp al, 0x26
je 0x456878
cmp ecx, 2
jne 0x456870
cmp al, 0x26
je 0x456878
inc esi
mov al, byte [esi + edi]
test al, al
jne 0x45684e
mov edx, dword [ebp - 8]
mov bl, byte [esi + edi]
test bl, bl
jne 0x4567cd
mov eax, dword [ebp - 0xc]
cmp ecx, 1
jne 0x45690d
mov byte [edx + eax], 0
inc eax
jmp 0x45690d
cmp ecx, 1
jne 0x4568e0
cmp bl, 0x26
je 0x4568a4
cmp bl, 0x3d
jne 0x4568fb
mov eax, dword [ebp - 0xc]
cmp byte [edx + eax - 1], 0
je 0x4568cd
cmp bl, 0x26
jne 0x4568d6
mov ebx, eax
mov byte [edx + ebx], 0
inc ebx
mov dword [ebp - 0xc], ebx
mov eax, ebx
jmp 0x4568dc
cmp al, 0x23
je 0x45687b
cmp byte [esi + edi - 1], 0x26
je 0x45687b
inc esi
mov al, byte [esi + edi]
test al, al
jne 0x4568c1
jmp 0x45687b
push 2
pop ecx
mov dword [ebp - 0x14], ecx
xor bl, bl
jmp 0x4568fe
test ecx, ecx
jne 0x4568e9
cmp bl, 0x3f
je 0x4568f3
cmp ecx, 2
jne 0x4568fb
cmp bl, 0x26
jne 0x4568fb
xor ecx, ecx
xor bl, bl
inc ecx
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0xc]
mov byte [edx + eax], bl
inc eax
mov dword [ebp - 0xc], eax
jmp 0x45687b
mov eax, dword [ebp - 0xc]
push edx
mov word [edx + eax], 0
call fcn.0045cc7f
pop ecx
lea esi, [edx + 1]
jmp 0x456a55
push esi
call fcn.0045cc7f
mov edx, eax
lea eax, [esi + 1]
add eax, edx
mov dword [ebp - 0x1c], edx
push eax
mov dword [ebp - 0x14], eax
call fcn.0045cc7f
mov dword [ebp - 0x24], eax
pop ecx
pop ecx
cmp edx, 3
jne 0x456966
push edx
push esi
push 0x4a2abc
call fcn.00478b2b
add esp, 0xc
test eax, eax
jne 0x456963
mov esi, dword [ebp - 0x14]
mov dword [ebp + 8], esi
jmp 0x456a51
mov edx, dword [ebp - 0x1c]
xor ebx, ebx
xor edi, edi
and dword [ebp - 0xc], ebx
and dword [ebp - 0x20], ebx
cmp edx, 5
jne 0x4569a5
push edx
push esi
push 0x4a2ac0
call fcn.00478b2b
add esp, 0xc
test eax, eax
jne 0x456a4e
mov edx, dword [ebp - 0x1c]
mov eax, 0x60000
mov edi, eax
mov dword [ebp - 0x20], eax
mov ebx, 0x4bb418
mov dword [ebp - 0xc], 0x4a2ac0
cmp edx, 4
jne 0x4569d8
push edx
push esi
push 0x4a2ac8
call fcn.00478b2b
add esp, 0xc
test eax, eax
jne 0x4569d8
mov eax, dword [ebp - 0x10]
mov ecx, 0x87
and eax, ecx
mov dword [ebp - 0xc], 0x4a2ad0
mov edi, ecx
mov dword [ebp - 0x20], eax
mov ebx, 0x4bb430
test ebx, ebx
je 0x456a4e
mov esi, dword [ebp - 0x14]
xor edx, edx
mov dword [ebp - 0x1c], edx
cmp dword [ebx], edx
je 0x456a1d
mov eax, ebx
mov eax, dword [eax]
push eax
mov dword [ebp - 0x14], eax
call fcn.0045cc7f
pop ecx
mov ecx, dword [ebp - 0x24]
cmp ecx, eax
jne 0x456a11
push ecx
push dword [ebp - 0x14]
push esi
call fcn.00478b2b
add esp, 0xc
test eax, eax
je 0x456a2b
mov edx, dword [ebp - 0x1c]
inc edx
mov dword [ebp - 0x1c], edx
lea eax, [ebx + edx*8]
cmp dword [eax], 0
jne 0x4569ea
push esi
push dword [ebp - 0xc]
push 0x4a2ad8
jmp 0x4567aa
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ebx + ecx*8 + 4]
test ecx, ecx
je 0x456a1d
mov eax, ecx
and eax, 0xffffff7f
cmp eax, dword [ebp - 0x20]
jg 0x456ab1
not edi
and edi, dword [ebp - 0x10]
or edi, ecx
mov dword [ebp - 0x10], edi
jmp 0x456a51
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
inc eax
add esi, eax
cmp byte [esi], 0
jne 0x456922
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
push edi
call fcn.0042ba32
pop ecx
mov ecx, eax
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
test ecx, ecx
jne 0x456a9a
push edi
push 0x4a2b04
call fcn.0042cedc
pop ecx
pop ecx
mov dword [ebp - 0x18], 1
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
push esi
call fcn.0042d1f1
pop ecx
xor esi, esi
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x10]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x18]
mov dword [ecx], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push dword [ebp - 0xc]
push 0x4a2aec
call fcn.0042cedc
mov esi, dword [ebp - 8]
add esp, 0xc
mov dword [ebp - 0x18], 3
jmp 0x456a8c
lea eax, [ebx + 2]
push eax
call fcn.0042d0dc
mov esi, eax
pop ecx
test esi, esi
je 0x456753
push ebx
push edi
push esi
call fcn.00477d80
add esp, 0xc
mov word [esi + ebx], 0
and dword [ebp - 0x10], 0xffffffbf
jmp 0x456a63