Function at 0x10046f35
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
lea ecx, [eax - 1]
push edi
mov dword [esi], ecx
test eax, eax
jne 0x10046f15
mov eax, dword [esi + 0x10]
push str.pattern_too_complex
call fcn.10038490
mov ebx, dword [ebp + 0x10]
cmp ebx, dword [esi + 0xc]
je 0x10047203
mov dl, byte [ebx]
movsx ecx, dl
lea eax, [ecx - 0x24]
cmp eax, 5
ja case.0x10046f74.58
jmp dword [eax*4 + 0x10047210]
lea eax, [ebx + 1]
cmp eax, dword [esi + 0xc]
je 0x1004716f
lea edi, [ebx + 1]
mov eax, edi
cmp ecx, 0x25
je 0x10047054
cmp ecx, 0x5b
je 0x1004702f
mov esi, eax
jmp 0x10047060
mov al, byte [ebx + 1]
movsx edi, al
add edi, 0xffffffd0
cmp edi, 0x36
ja case.0x10046f74.58
movzx edi, byte [edi + 0x10047238]
jmp dword [edi*4 + 0x10047228]
mov eax, dword [ebp + 0xc]
lea ecx, [ebx + 2]
call fcn.10046c20
mov dword [ebp + 0xc], eax
test eax, eax
je 0x10047203
add ebx, 4
mov dword [ebp + 0x10], ebx
jmp 0x10047102
add ebx, 2
cmp byte [ebx], 0x5b
mov dword [ebp + 0x10], ebx
jne 0x1004718b
mov eax, ebx
call fcn.10046a20
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], ecx
cmp eax, dword [esi + 4]
jne 0x10046fc4
xor al, al
jmp 0x10046fc7
mov al, byte [eax - 1]
mov edi, dword [ebp + 0x10]
lea esi, [ecx - 1]
movzx ebx, al
push esi
mov eax, edi
call fcn.10046b90
add esp, 4
test eax, eax
jne 0x100471b2
mov ecx, dword [ebp + 0xc]
movzx ebx, byte [ecx]
push esi
mov eax, edi
call fcn.10046b90
add esp, 4
test eax, eax
je 0x100471b2
mov edx, dword [esp + 0xc]
mov dword [ebp + 0x10], edx
jmp 0x100470fc
movzx edx, al
mov eax, dword [ebp + 0xc]
push eax
mov eax, esi
call fcn.10046e60
add esp, 4
mov dword [ebp + 0xc], eax
test eax, eax
je 0x10047203
add ebx, 2
mov dword [ebp + 0x10], ebx
jmp 0x10047102
cmp byte [eax], 0x5e
jne 0x10047035
inc eax
mov ecx, dword [esi + 0xc]
cmp eax, ecx
je 0x10047198
mov bl, byte [eax]
inc eax
cmp bl, 0x25
jne 0x1004704d
cmp eax, ecx
jae 0x1004704d
inc eax
cmp byte [eax], 0x5d
jne 0x10047038
jmp 0x1004705d
cmp eax, dword [esi + 0xc]
je 0x100471a5
lea esi, [eax + 1]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
cmp ebx, dword [ecx + 8]
jae 0x100470ad
movzx ecx, byte [ebx]
cmp dl, 0x25
je 0x1004709f
cmp dl, 0x2e
je 0x100470c2
cmp dl, 0x5b
je 0x10047089
movzx edx, dl
xor eax, eax
cmp edx, ecx
sete al
jmp 0x100470a9
lea eax, [esi - 1]
push eax
mov eax, dword [ebp + 0x10]
mov ebx, ecx
call fcn.10046b90
mov ebx, dword [ebp + 0xc]
add esp, 4
jmp 0x100470a9
movzx edi, byte [edi]
mov eax, ecx
call fcn.10046a70
test eax, eax
jne 0x100470c2
mov al, byte [esi]
cmp al, 0x2a
je 0x100470bf
cmp al, 0x3f
je 0x100470bf
cmp al, 0x2d
jne 0x100471b2
inc esi
jmp 0x100470f9
movsx eax, byte [esi]
add eax, 0xffffffd6
cmp eax, 0x15
ja case.0x100470d4.44
movzx ecx, byte [eax + 0x10047284]
jmp dword [ecx*4 + 0x10047270]
mov edx, dword [ebp + 8]
inc esi
push esi
inc ebx
push ebx
push edx
call fcn.10046ef0
add esp, 0xc
test eax, eax
jne 0x100471fd
jmp 0x100470f9
inc ebx
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x10], esi
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
cmp ebx, dword [esi + 0xc]
jne 0x10046f21
inc dword [esi]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebx + 1], 0x29
mov ecx, dword [ebp + 0xc]
lea eax, [ebx + 1]
jne 0x1004713d
push 0xfffffffffffffffe
add ebx, 2
push ebx
call fcn.10046dc0
add esp, 8
inc dword [esi]
mov dword [ebp + 0xc], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push eax
call fcn.10046dc0
add esp, 8
inc dword [esi]
mov dword [ebp + 0xc], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
inc ebx
push ebx
mov edi, esi
call fcn.10046e00
add esp, 4
inc dword [esi]
mov dword [ebp + 0xc], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
xor ecx, ecx
cmp eax, dword [esi + 8]
setne cl
dec ecx
and ecx, eax
inc dword [esi]
mov dword [ebp + 0xc], ecx
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x10]
push str.missing___after___f_in_pattern
call fcn.10038490
mov eax, dword [esi + 0x10]
push str.malformed_pattern__missing___
call fcn.10038490
mov eax, dword [esi + 0x10]
push str.malformed_pattern__ends_with____
call fcn.10038490
mov esi, dword [ebp + 8]
inc dword [esi]
mov dword [ebp + 0xc], 0
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
inc ebx
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push esi
push edx
push ebx
push eax
call fcn.10046c80
mov esi, dword [ebp + 8]
add esp, 0x10
inc dword [esi]
mov dword [ebp + 0xc], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
push esi
push ecx
push edx
mov eax, ebx
call fcn.10046d20
add esp, 0xc
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], eax
inc dword [esi]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret