Function at 0x10020240
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 + 0x10]
lea ecx, [eax - 1]
push edi
mov dword [esi + 0x10], ecx
test eax, eax
jne 0x10020268
mov edx, dword [esi + 0xc]
push str.pattern_too_complex
push edx
call sym.lua5.3.dll_luaL_error
mov ebx, dword [ebp + 0x10]
cmp ebx, dword [esi + 8]
je 0x10020565
mov dl, byte [ebx]
movsx ecx, dl
lea eax, [ecx - 0x24]
cmp eax, 5
ja case.0x100202c7.58
jmp dword [eax*4 + 0x10020574]
lea eax, [ebx + 1]
cmp eax, dword [esi + 8]
je 0x100204cb
lea edi, [ebx + 1]
mov eax, edi
cmp ecx, 0x25
je 0x100203ac
cmp ecx, 0x5b
je 0x10020381
mov esi, eax
jmp 0x100203b8
mov al, byte [ebx + 1]
movsx edi, al
add edi, 0xffffffd0
cmp edi, 0x36
ja case.0x100202c7.58
movzx edi, byte [edi + 0x1002059c]
jmp dword [edi*4 + 0x1002058c]
mov eax, dword [ebp + 0xc]
lea ecx, [ebx + 2]
call fcn.1001ff60
mov dword [ebp + 0xc], eax
test eax, eax
je 0x10020565
add ebx, 4
mov dword [ebp + 0x10], ebx
jmp 0x1002045a
add ebx, 2
cmp byte [ebx], 0x5b
mov dword [ebp + 0x10], ebx
jne 0x100204e8
mov eax, ebx
call fcn.1001fd60
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], ecx
cmp eax, dword [esi]
jne 0x10020316
xor al, al
jmp 0x10020319
mov al, byte [eax - 1]
mov edi, dword [ebp + 0x10]
lea esi, [ecx - 1]
movzx ebx, al
push esi
mov eax, edi
call fcn.1001fed0
add esp, 4
test eax, eax
jne 0x10020512
mov ecx, dword [ebp + 0xc]
movzx ebx, byte [ecx]
push esi
mov eax, edi
call fcn.1001fed0
add esp, 4
test eax, eax
je 0x10020512
mov edx, dword [esp + 0xc]
mov dword [ebp + 0x10], edx
jmp 0x10020454
movzx edx, al
mov eax, dword [ebp + 0xc]
push eax
mov eax, esi
call fcn.100201b0
add esp, 4
mov dword [ebp + 0xc], eax
test eax, eax
je 0x10020565
add ebx, 2
mov dword [ebp + 0x10], ebx
jmp 0x1002045a
cmp byte [eax], 0x5e
jne 0x10020387
inc eax
mov ecx, dword [esi + 8]
lea ebx, [ebx]
cmp eax, ecx
je 0x100204f6
mov bl, byte [eax]
inc eax
cmp bl, 0x25
jne 0x100203a5
cmp eax, ecx
jae 0x100203a5
inc eax
cmp byte [eax], 0x5d
jne 0x10020390
jmp 0x100203b5
cmp eax, dword [esi + 8]
je 0x10020504
lea esi, [eax + 1]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
cmp ebx, dword [ecx + 4]
jae 0x10020405
movzx ecx, byte [ebx]
cmp dl, 0x25
je 0x100203f7
cmp dl, 0x2e
je 0x1002041a
cmp dl, 0x5b
je 0x100203e1
movzx edx, dl
xor eax, eax
cmp edx, ecx
sete al
jmp 0x10020401
lea eax, [esi - 1]
push eax
mov eax, dword [ebp + 0x10]
mov ebx, ecx
call fcn.1001fed0
mov ebx, dword [ebp + 0xc]
add esp, 4
jmp 0x10020401
movzx edi, byte [edi]
mov eax, ecx
call fcn.1001fdb0
test eax, eax
jne 0x1002041a
mov al, byte [esi]
cmp al, 0x2a
je 0x10020417
cmp al, 0x3f
je 0x10020417
cmp al, 0x2d
jne 0x10020512
inc esi
jmp 0x10020451
movsx eax, byte [esi]
add eax, 0xffffffd6
cmp eax, 0x15
ja case.0x1002042c.44
movzx ecx, byte [eax + 0x100205e8]
jmp dword [ecx*4 + 0x100205d4]
mov edx, dword [ebp + 8]
inc esi
push esi
inc ebx
push ebx
push edx
call fcn.10020240
add esp, 0xc
test eax, eax
jne 0x1002055f
jmp 0x10020451
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 + 8]
jne 0x10020274
inc dword [esi + 0x10]
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 0x10020497
push 0xfffffffffffffffe
add ebx, 2
push ebx
call fcn.10020100
add esp, 8
inc dword [esi + 0x10]
mov dword [ebp + 0xc], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push eax
call fcn.10020100
add esp, 8
inc dword [esi + 0x10]
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.10020150
add esp, 4
inc dword [esi + 0x10]
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 + 4]
setne cl
dec ecx
and ecx, eax
inc dword [esi + 0x10]
mov dword [ebp + 0xc], ecx
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0xc]
push str.missing___after___f_in_pattern
push edx
call sym.lua5.3.dll_luaL_error
mov eax, dword [esi + 0xc]
push str.malformed_pattern__missing___
push eax
call sym.lua5.3.dll_luaL_error
mov ecx, dword [esi + 0xc]
push str.malformed_pattern__ends_with____
push ecx
call sym.lua5.3.dll_luaL_error
mov esi, dword [ebp + 8]
inc dword [esi + 0x10]
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.1001ffc0
mov esi, dword [ebp + 8]
add esp, 0x10
inc dword [esi + 0x10]
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.10020060
add esp, 0xc
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], eax
inc dword [esi + 0x10]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret