Function at 0x10021fdc
Capabilities:
Parse credit card information

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x10]
and dword [esp + 8], 0
push ebx
mov ebx, dword [esp + 0x1c]
mov ecx, dword [ecx]
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov dword [esp + 0xc], ecx
cmp byte [ecx], 0x28
mov esi, dword [ebp]
mov edx, esi
push edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x38], edx
jne 0x10022164
mov al, byte [ecx + 1]
cmp al, 0x2a
jne 0x1002201c
add ecx, 2
jmp 0x10022035
cmp al, 0x3f
je 0x1002203e
lea eax, [esi + 1]
mov dword [ebp], eax
test ebx, ebx
jne 0x10022034
cmp eax, dword [esp + 0x2c]
je 0x10022380
inc ecx
mov dword [esp + 0x10], ecx
jmp 0x10022164
mov al, byte [ecx + 2]
cmp al, 0x7c
jne 0x10022059
add ecx, 3
mov dword [esp + 0x18], 1
mov dword [esp + 0x10], ecx
jmp 0x10022164
cmp al, 0x23
jne 0x10022080
lea edx, [ecx + 3]
mov ecx, edx
jmp 0x10022071
cmp al, 0x29
je 0x10022377
lea ecx, [edx + 1]
mov edx, ecx
mov dword [esp + 0x10], ecx
mov al, byte [ecx]
test al, al
jne 0x10022064
jmp 0x10022377
add ecx, 2
mov dword [esp + 0x10], ecx
cmp al, 0x28
jne 0x100220d1
cmp byte [ecx + 1], 0x3f
je 0x10022164
mov al, byte [ecx]
test al, al
je 0x10022164
mov edx, ecx
mov esi, edx
cmp al, 0x29
je 0x100220b8
lea ecx, [edx + 1]
mov dword [esp + 0x10], ecx
mov edx, ecx
mov al, byte [ecx]
mov esi, ecx
test al, al
jne 0x100220a1
cmp byte [ecx], 0
mov edx, dword [esp + 0x38]
je 0x10022162
lea ecx, [esi + 1]
mov dword [esp + 0x10], ecx
jmp 0x10022162
cmp byte [ecx], 0x50
mov edi, ecx
jne 0x100220e1
lea edi, [ecx + 1]
mov ecx, edi
mov dword [esp + 0x10], ecx
mov dl, byte [ecx]
cmp dl, 0x3c
jne 0x100220f3
mov al, byte [ecx + 1]
cmp al, 0x21
je 0x100220f3
cmp al, 0x3d
jne 0x100220fc
cmp dl, 0x27
jne 0x100221b8
lea eax, [esi + 1]
mov dword [ebp], eax
test ebx, ebx
jne 0x10022110
cmp eax, dword [esp + 0x2c]
je 0x10022380
movzx esi, byte [ecx]
lea ecx, [edi + 1]
push 0x3e
cmp esi, 0x3c
mov edi, ecx
pop eax
cmove esi, eax
mov edx, edi
jmp 0x10022128
inc ecx
mov edx, ecx
mov dword [esp + 0x10], ecx
movzx eax, byte [ecx]
cmp eax, esi
jne 0x10022125
test ebx, ebx
je 0x1002215e
sub edx, edi
cmp dword [esp + 0x2c], edx
jne 0x1002215e
push dword [esp + 0x2c]
push edi
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x1002215a
mov eax, dword [ebp]
jmp 0x10022380
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x38]
mov esi, edx
mov edi, dword [esp + 0x24]
cmp ecx, dword [edi + 0x1c]
jae 0x10022377
mov al, byte [ecx]
cmp al, 0x5c
jne 0x100221bc
inc ecx
mov dword [esp + 0x10], ecx
mov al, byte [ecx]
test al, al
je 0x10022377
cmp al, 0x51
jne 0x10022351
inc ecx
mov dword [esp + 0x10], ecx
mov al, byte [ecx]
test al, al
je 0x10022377
cmp al, 0x5c
jne 0x1002218e
test al, al
je 0x10022377
inc ecx
mov dword [esp + 0x10], ecx
cmp byte [ecx], 0x45
jne 0x1002218e
jmp 0x10022351
mov edx, esi
jmp 0x10022164
cmp al, 0x5b
jne 0x10022278
xor esi, esi
mov al, byte [ecx + 1]
cmp al, 0x5c
jne 0x100221f3
add ecx, 2
cmp byte [ecx], 0x45
je 0x100221fd
push 3
push 0x10086f34
push ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x10022203
mov eax, dword [esp + 0x10]
lea ecx, [eax + 4]
jmp 0x100221fd
test esi, esi
jne 0x10022207
cmp al, 0x5e
jne 0x10022207
inc esi
inc ecx
mov dword [esp + 0x10], ecx
jmp 0x100221c6
mov ecx, dword [esp + 0x10]
lea eax, [ecx + 1]
cmp byte [eax], 0x5d
jne 0x10022219
test dword [edi + 0x50], 0x2000000
cmove ecx, eax
inc ecx
jmp 0x10022269
test al, al
je 0x1002237d
mov edx, ecx
cmp al, 0x5c
jne 0x10022266
inc ecx
mov dword [esp + 0x10], ecx
mov al, byte [ecx]
test al, al
je 0x10022377
mov edx, ecx
cmp al, 0x51
jne 0x10022266
inc ecx
mov dword [esp + 0x10], ecx
mov al, byte [ecx]
test al, al
je 0x10022377
cmp al, 0x5c
jne 0x1002223f
test al, al
je 0x10022377
inc ecx
mov dword [esp + 0x10], ecx
mov edx, ecx
cmp byte [ecx], 0x45
jne 0x1002223f
lea ecx, [edx + 1]
mov dword [esp + 0x10], ecx
mov al, byte [ecx]
cmp al, 0x5d
jne 0x1002221c
jmp 0x10022351
cmp dword [esp + 0x30], 0
je 0x10022304
cmp al, 0x23
jne 0x10022304
inc ecx
mov dword [esp + 0x10], ecx
mov bl, byte [ecx]
test bl, bl
je 0x10022377
mov esi, ecx
cmp dword [edi + 0x64], 0
mov eax, dword [edi + 0x1c]
je 0x100222da
cmp esi, eax
jae 0x100222f5
push dword [esp + 0x34]
lea esi, [edi + 0x68]
push esi
push eax
push dword [edi + 0x64]
push ecx
call fcn.10005737
mov ecx, dword [esp + 0x24]
add esp, 0x14
test eax, eax
je 0x100222f5
mov edx, dword [esi]
dec ecx
add ecx, edx
mov dword [esp + 0x10], ecx
cmp byte [ecx], 0
je 0x10022377
mov ebx, dword [esp + 0x28]
jmp 0x10022351
mov edx, dword [edi + 0x68]
sub eax, edx
cmp esi, eax
ja 0x100222f5
cmp bl, byte [edi + 0x6c]
jne 0x100222f5
cmp edx, 1
je 0x100222c4
mov al, byte [ecx + 1]
cmp al, byte [edi + 0x6d]
je 0x100222c4
inc ecx
mov dword [esp + 0x10], ecx
mov esi, ecx
mov bl, byte [ecx]
test bl, bl
jne 0x10022298
jmp 0x100222cb
cmp al, 0x28
jne 0x10022333
push ebp
push dword [esp + 0x38]
lea eax, [esp + 0x18]
push dword [esp + 0x38]
push dword [esp + 0x38]
push ebx
push edi
push eax
call fcn.10021fdc
add esp, 0x1c
test eax, eax
jg 0x10022380
mov ecx, dword [esp + 0x10]
cmp byte [ecx], 0
je 0x10022377
jmp 0x10022351
cmp al, 0x29
je 0x10022368
cmp al, 0x7c
jne 0x10022351
cmp dword [esp + 0x18], 0
je 0x10022351
mov eax, dword [ebp]
cmp eax, edx
mov dword [ebp], esi
cmovle eax, edx
mov dword [esp + 0x38], eax
inc ecx
mov dword [esp + 0x10], ecx
cmp ecx, dword [edi + 0x1c]
jae 0x10022377
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x14]
jmp 0x10022171
cmp dword [esp + 0x18], 0
je 0x10022377
cmp dword [ebp], edx
jge 0x10022377
mov dword [ebp], edx
mov eax, dword [esp + 0x20]
mov dword [eax], ecx
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret