Function at 0x10021c40
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, dword [ecx]
mov ebx, edx
mov dword [esp + 0x10], ecx
push edi
lea eax, [esi - 1]
mov dword [ecx], eax
test esi, esi
je 0x10021f47
mov edi, dword [ebp + 8]
cmp edi, dword [ecx + 0xc]
je 0x10021f3a
lea ecx, [ecx]
movsx edx, byte [edi]
lea eax, [edx - 0x24]
cmp eax, 5
ja case.0x10021ceb.58
jmp dword [eax*4 + 0x10021f80]
lea eax, [edi + 1]
cmp eax, dword [ecx + 0xc]
je 0x10021e6d
lea eax, [edi + 1]
mov esi, eax
cmp edx, 0x25
je 0x10021da2
cmp edx, 0x5b
jne 0x10021dac
cmp byte [esi], 0x5e
jne 0x10021cab
inc esi
mov ecx, dword [ecx + 0xc]
mov edi, edi
cmp esi, ecx
je 0x10021f61
mov al, byte [esi]
inc esi
cmp al, 0x25
jne 0x10021cc4
cmp esi, ecx
jae 0x10021cc4
inc esi
cmp byte [esi], 0x5d
jne 0x10021cb0
mov ecx, dword [esp + 0x14]
jmp 0x10021dab
mov al, byte [edi + 1]
mov byte [esp + 0x12], al
movsx eax, al
add eax, 0xffffffd0
cmp eax, 0x36
ja case.0x10021ceb.58
movzx eax, byte [eax + 0x10021fa8]
jmp dword [eax*4 + 0x10021f98]
lea eax, [edi + 2]
mov edx, ebx
push eax
call fcn.10021950
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10021eff
mov ecx, dword [esp + 0x14]
add edi, 4
jmp 0x10021e55
add edi, 2
cmp byte [edi], 0x5b
jne 0x10021f54
mov edx, edi
call fcn.100215f0
mov esi, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
cmp ebx, dword [esi + 4]
jne 0x10021d3a
xor cl, cl
jmp 0x10021d3d
mov cl, byte [ebx - 1]
dec eax
movzx ecx, cl
push eax
mov edx, edi
mov dword [esp + 0x1c], eax
call fcn.10021780
add esp, 4
test eax, eax
jne 0x10021e84
push dword [esp + 0x18]
movzx ecx, byte [ebx]
mov edx, edi
call fcn.10021780
add esp, 4
test eax, eax
je 0x10021e84
mov edi, dword [esp + 0x1c]
mov ecx, esi
jmp 0x10021e55
movzx eax, byte [esp + 0x12]
mov edx, ebx
push eax
call fcn.10021ba0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10021eff
mov ecx, dword [esp + 0x14]
add edi, 2
jmp 0x10021e55
cmp esi, dword [ecx + 0xc]
je 0x10021f72
inc esi
cmp ebx, dword [ecx + 8]
jae 0x10021e40
movzx eax, byte [ebx]
mov dl, byte [edi]
mov dword [esp + 0x18], eax
mov al, dl
cmp al, 0x25
je 0x10021dee
cmp al, 0x2e
je 0x10021e05
cmp al, 0x5b
je 0x10021dda
movzx eax, dl
xor edx, edx
cmp eax, dword [esp + 0x18]
sete dl
jmp 0x10021e01
mov ecx, dword [esp + 0x18]
lea eax, [esi - 1]
push eax
mov edx, edi
call fcn.10021780
add esp, 4
jmp 0x10021dfb
movzx edx, byte [edi + 1]
mov ecx, dword [esp + 0x18]
call fcn.10021650
mov ecx, dword [esp + 0x14]
mov edx, eax
test edx, edx
je 0x10021e40
movsx eax, byte [esi]
add eax, 0xffffffd6
cmp eax, 0x15
ja case.0x10021e17.44
movzx eax, byte [eax + 0x10021ff4]
jmp dword [eax*4 + 0x10021fe0]
lea edi, [esi + 1]
push edi
lea edx, [ebx + 1]
call fcn.10021c40
add esp, 4
test eax, eax
jne 0x10021efd
mov ecx, dword [esp + 0x14]
jmp 0x10021e55
inc ebx
mov edi, esi
jmp 0x10021e55
mov al, byte [esi]
cmp al, 0x2a
je 0x10021e52
cmp al, 0x3f
je 0x10021e52
cmp al, 0x2d
jne 0x10021f29
lea edi, [esi + 1]
cmp edi, dword [ecx + 0xc]
jne 0x10021c70
mov esi, dword [esp + 0x14]
mov eax, ebx
inc dword [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x14]
xor eax, eax
cmp ebx, dword [ecx + 8]
cmove eax, ebx
inc dword [esi]
mov ebx, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
inc dword [esi]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [edi + 1], 0x29
lea eax, [edi + 1]
mov edx, ebx
jne 0x10021eb9
lea eax, [edi + 2]
push 0xfffffffffffffffe
push eax
call fcn.10021af0
mov esi, dword [esp + 0x1c]
add esp, 8
mov ebx, eax
inc dword [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push eax
call fcn.10021af0
mov esi, dword [esp + 0x1c]
add esp, 8
mov ebx, eax
inc dword [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [edi + 1]
mov edx, ebx
push eax
call fcn.10021b40
mov esi, dword [esp + 0x18]
add esp, 4
mov ebx, eax
inc dword [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
inc ebx
push esi
push edi
mov edx, ebx
call fcn.100219c0
add esp, 8
mov ebx, eax
mov esi, dword [esp + 0x14]
mov eax, ebx
inc dword [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
mov edx, ebx
call fcn.10021a60
mov esi, dword [esp + 0x1c]
add esp, 8
mov ebx, eax
inc dword [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x14]
xor ebx, ebx
mov eax, ebx
inc dword [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, ecx
mov eax, ebx
pop edi
inc dword [esi]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.pattern_too_complex
push dword [ecx + 0x10]
call sym.lua53.dll_luaL_error
push str.missing___after___f_in_pattern
push dword [ecx + 0x10]
call sym.lua53.dll_luaL_error
mov esi, dword [esp + 0x14]
push str.malformed_pattern__missing___
push dword [esi + 0x10]
call sym.lua53.dll_luaL_error
push str.malformed_pattern__ends_with____
push dword [ecx + 0x10]
call sym.lua53.dll_luaL_error
nop
sbb byte [edx + eax], 0x10
rcr byte [edx + eax], cl
adc byte [esi - 1911553508], cl
sbb al, 2
adc byte [ecx - 0x2ceffde2], dl
push ds
add dl, byte [eax]
jl 0x10021fb7
add dl, byte [eax]
sbb al, 2
adc byte [esi], dl
sbb eax, 0x1c8e1002
add dl, byte [eax]
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add dword [ebx], eax
add eax, dword [ebx]
add dl, byte [eax + case.0x10021e17.42]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ecx]
add eax, dword [ebx]
add eax, dword [edx]
nop
int1
push ds
add dl, byte [eax]
invalid