Function at 0x4027d8
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
xor eax, eax
cmp edi, eax
jne 0x4027f7
push 0x80004005
call fcn.00401000
cmp esi, eax
je 0x4027ed
cmp edi, esi
je 0x4027ed
mov ecx, dword [ebp + 0x18]
mov bl, byte [edi]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp + 0x14]
add ecx, esi
mov dword [ebp - 4], eax
mov dword [ebp - 8], 1
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], ecx
test bl, bl
je 0x402a54
mov ecx, dword [ebp - 4]
inc edi
mov dword [ebp + 8], edi
cmp ecx, dword [ebp + 0x14]
jne 0x402839
mov dword [ebp - 8], eax
cmp bl, 0x3a
jne 0x4028aa
test byte [ebp - 0xc], 0x80
je 0x40290d
cmp dword [ebp - 0x10], eax
jne 0x40290d
cmp dword [ebp - 8], eax
je 0x4028a1
mov eax, esi
sub eax, ecx
mov byte [esi], 0
cmp eax, dword [ebp - 0x1c]
jb 0x4027ed
cmp eax, dword [ebp - 0x14]
ja 0x4027ed
mov ecx, dword [ebp - 0x14]
sub ecx, eax
inc ecx
push ecx
push eax
call fcn.0043608e
push eax
call fcn.00401018
add esp, 0xc
cmp dword [ebp - 4], 4
jne 0x4028a1
push 4
lea eax, [esi - 4]
push eax
push str.file
call fcn.00435bb1
add esp, 0xc
test eax, eax
jne 0x4028a1
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 0x10], eax
jmp 0x40290d
cmp bl, 0x25
jne 0x4028f9
test byte [ebp - 0xc], 4
je 0x40290d
mov al, byte [edi]
test al, al
je 0x402a4e
call fcn.004026ac
movzx ebx, ax
test bx, bx
js 0x402a44
mov al, byte [edi + 1]
test al, al
je 0x402a4e
add edi, 2
mov dword [ebp + 8], edi
call fcn.004026ac
movzx eax, ax
test ax, ax
js 0x402a4a
shl bl, 4
add bl, al
jmp 0x40290d
cmp bl, 0x3f
je 0x402903
cmp bl, 0x23
jne 0x40290d
test byte [ebp - 0xc], 0x20
je 0x40290d
or dword [ebp - 0xc], 2
mov eax, dword [ebp - 0xc]
test al, al
jns 0x402978
test al, 2
jne 0x402978
cmp bl, 0x5c
jne 0x40293f
xor ecx, ecx
cmp dword [ebp - 0x10], ecx
jne 0x40292b
test eax, 0x100
je 0x402978
cmp dword [ebp - 8], ecx
je 0x402978
cmp dword [ebp - 0x18], ecx
je 0x40293b
cmp dword [ebp - 4], 7
jae 0x402978
mov bl, 0x2f
jmp 0x402978
cmp bl, 0x2e
jne 0x402978
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x402978
test al, 8
jne 0x402978
push dword [ebp - 0x10]
lea edx, [ebp + 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [esi - 1]
push edx
call fcn.0040270b
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
add esp, 0x14
test eax, eax
jne 0x402a37
movzx ecx, bl
cmp ecx, 0x40
jg 0x4029a0
cmp ecx, 0x3b
jge 0x4029be
cmp ecx, 0x20
je 0x4029be
cmp ecx, 0x21
jle 0x4029b7
cmp ecx, 0x26
jle 0x4029be
cmp ecx, 0x2a
jle 0x4029b7
cmp ecx, 0x2c
jle 0x4029be
jmp 0x4029b7
cmp ecx, 0x5b
jl 0x4029b7
cmp ecx, 0x5e
jle 0x4029be
cmp ecx, 0x60
je 0x4029be
lea eax, [ecx - 0x7b]
cmp eax, 2
jbe 0x4029be
lea eax, [ebx - 0x20]
cmp al, 0x5e
jbe 0x402a28
mov al, byte [ebp - 0xc]
test al, 2
jne 0x402a28
test al, 0x10
je 0x4029ce
cmp bl, 0x20
jne 0x402a28
test al, 8
je 0x4029d7
cmp bl, 0x2e
je 0x402a28
test al, 0x40
jne 0x4029e0
cmp bl, 0x25
je 0x402a28
mov eax, dword [ebp + 0x14]
add eax, 0xfffffffd
cmp dword [ebp - 4], eax
jb 0x4029ef
and dword [ebp - 8], 0
cmp dword [ebp - 8], 0
je 0x402a22
mov byte [esi], 0x25
lea eax, [esi + 1]
cmp bl, 0x10
jae 0x402a04
mov byte [eax], 0x30
inc eax
mov edx, dword [ebp - 0x14]
push 0x10
sub edx, eax
push edx
push eax
push ecx
call fcn.0043626a
push eax
call fcn.00401018
add esp, 0x14
add esi, 3
mov dword [ebp + 0xc], esi
add dword [ebp - 4], 2
jmp 0x402a34
cmp dword [ebp - 8], 0
je 0x402a34
mov byte [esi], bl
inc esi
mov dword [ebp + 0xc], esi
inc dword [ebp - 4]
mov bl, byte [edi]
test bl, bl
je 0x402a4e
xor eax, eax
jmp 0x40282a
and dword [ebp - 8], 0
jmp 0x402a5f
and dword [ebp - 8], 0
cmp dword [ebp - 8], 0
je 0x402a5f
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 4], eax
jae 0x402a5f
mov byte [esi], 0
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
test eax, eax
je 0x402a6f
mov ecx, dword [ebp - 4]
inc ecx
mov dword [eax], ecx
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [ebp + 0x14]
jbe 0x402a7c
and dword [ebp - 8], 0
mov eax, dword [ebp - 8]
leave
ret