Function at 0x10021b80
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x100ad708]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x2c], ebx
push esi
mov esi, ebx
mov dword [ebp - 8], esi
push edi
test ecx, ecx
je 0x10021e7b
test ebx, ebx
je 0x10021e7b
cmp ecx, ebx
je 0x10021e7b
xor edi, edi
add eax, ebx
mov bl, byte [ecx]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x14], edi
lea edx, [edi + 1]
mov dword [ebp - 0x28], eax
test bl, bl
je 0x10021e6b
mov dword [ebp - 0x30], edx
inc ecx
mov dword [ebp - 0x10], 0
cmp edi, dword [ebp - 0x18]
mov dword [ebp - 0x20], ecx
cmove edx, dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], edx
cmp bl, 0x3a
jne 0x10021c6e
test byte [ebp + 0x18], 0x80
mov ecx, dword [ebp - 0x14]
je 0x10021c66
test ecx, ecx
jne 0x10021c66
test edx, edx
je 0x10021c60
mov byte [esi], cl
mov ecx, esi
sub ecx, edi
cmp ecx, dword [ebp - 0x2c]
jb 0x10021e7b
cmp ecx, eax
ja 0x10021e7b
sub eax, ecx
inc eax
push eax
push ecx
call fcn.1006164b
push eax
call fcn.10007ec0
add esp, 0xc
cmp edi, 4
jne 0x10021c60
push edi
lea eax, [esi - 4]
push eax
push str.file
call fcn.100616a0
mov ecx, dword [ebp - 0x24]
add esp, 0xc
test eax, eax
cmove ecx, dword [ebp - 0x30]
mov dword [ebp - 0x24], ecx
lea ecx, [edi + 1]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 0x18]
jmp 0x10021cfd
cmp bl, 0x25
jne 0x10021d2b
mov eax, dword [ebp + 0x18]
test al, 4
je 0x10021cfa
mov cl, byte [ecx]
test cl, cl
je 0x10021e6b
mov edx, dword [ebp - 0x20]
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x10021c9b
movzx eax, cl
sub ax, 0x30
jmp 0x10021cbd
lea eax, [ecx - 0x41]
cmp al, 5
ja 0x10021cab
movzx eax, cl
sub ax, 0x37
jmp 0x10021cbd
lea eax, [ecx - 0x61]
cmp al, 5
ja 0x10021e3c
movzx eax, cl
sub ax, 0x57
movzx ebx, ax
test bx, bx
js 0x10021e3c
mov al, byte [edx + 1]
test al, al
je 0x10021e68
add edx, 2
push eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0xc], edx
call fcn.10022270
movzx eax, ax
add esp, 4
test ax, ax
js 0x10021e38
shl bl, 4
add bl, al
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x14]
and al, 0x82
cmp al, 0x80
jne 0x10021d7f
cmp bl, 0x5c
jne 0x10021d44
test ecx, ecx
jne 0x10021d15
test dword [ebp + 0x18], 0x100
je 0x10021d7f
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x10021d82
cmp dword [ebp - 0x24], 0
je 0x10021d27
cmp edi, 7
jae 0x10021d82
mov bl, 0x2f
jmp 0x10021d82
cmp bl, 0x3f
je 0x10021d35
cmp bl, 0x23
jne 0x10021cf7
mov eax, dword [ebp + 0x18]
test al, 0x20
je 0x10021cfa
or eax, 2
mov dword [ebp + 0x18], eax
jmp 0x10021cfa
cmp bl, 0x2e
jne 0x10021d7f
test edi, edi
je 0x10021d7f
mov eax, dword [ebp + 0x18]
test al, 8
jne 0x10021d7f
push ecx
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [esi - 1]
push eax
lea eax, [ebp - 8]
push eax
call fcn.10022170
mov edi, dword [ebp - 0x1c]
add esp, 0x1c
mov esi, dword [ebp - 8]
test eax, eax
jne 0x10021d9b
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x20], edx
mov ecx, dword [ebp - 0x10]
movzx edx, bl
lea eax, [edx - 0x20]
cmp eax, 0x5d
ja case.0x10021d94.33
movzx eax, byte [eax + 0x10021e90]
jmp dword [eax*4 + 0x10021e88]
mov ecx, dword [ebp - 0xc]
jmp 0x10021e27
lea eax, [ebx - 0x20]
cmp al, 0x5e
jbe 0x10021e16
mov eax, dword [ebp + 0x18]
test al, 2
jne 0x10021e16
test al, 0x10
je 0x10021dba
cmp bl, 0x20
jne 0x10021e16
test al, 8
je 0x10021dc3
cmp bl, 0x2e
je 0x10021e16
test al, 0x40
jne 0x10021dcc
cmp bl, 0x25
je 0x10021e16
mov eax, dword [ebp - 0x18]
add eax, 0xfffffffd
cmp edi, eax
jb 0x10021de0
xor ecx, ecx
add edi, 2
mov dword [ebp - 0x10], ecx
jmp 0x10021e20
test ecx, ecx
je 0x10021e11
mov byte [esi], 0x25
lea ecx, [esi + 1]
cmp bl, 0x10
jae 0x10021df3
mov byte [ecx], 0x30
inc ecx
mov eax, dword [ebp - 0x28]
push 0x10
sub eax, ecx
push eax
push ecx
push edx
call fcn.10061919
push eax
call fcn.10007ec0
add esp, 0x14
add esi, 3
mov dword [ebp - 8], esi
add edi, 2
jmp 0x10021e20
test ecx, ecx
je 0x10021e20
mov byte [esi], bl
inc esi
mov dword [ebp - 8], esi
mov ecx, dword [ebp - 0x20]
inc edi
mov dword [ebp - 0x1c], edi
mov bl, byte [ecx]
mov edx, dword [ebp - 0x10]
test bl, bl
je 0x10021e6b
mov eax, dword [ebp - 0x28]
jmp 0x10021be5
xor edx, edx
jmp 0x10021e6b
xor edx, edx
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x10021e4d
lea eax, [edi + 1]
mov dword [ecx], eax
lea ecx, [edi + 1]
xor eax, eax
cmp ecx, ebx
mov ecx, dword [ebp - 4]
pop edi
cmovbe eax, edx
xor ecx, ebp
pop esi
pop ebx
call fcn.1002ef19
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x10]
test edx, edx
je 0x10021e3e
mov ebx, dword [ebp - 0x18]
cmp edi, ebx
jae 0x10021e41
mov byte [esi], 0
jmp 0x10021e41
push 0x80004005
call fcn.10007f60
nop dword [eax]
stosb byte es:[edi], al
sbb eax, 497225730
add dl, byte [eax]
add byte [ecx], al
add byte [eax], al
add byte [eax], al
add byte [ecx], al
add dword [ecx], eax
add dword [eax], eax
add byte [ecx], al
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [eax], eax
add byte [eax], al
add byte [eax], al
add byte [ecx], al
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [eax], eax
add byte [eax], al
add byte [ecx], al
add byte [ecx], al
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [eax], eax
add byte [eax], al
int3