Function at 0x407d67
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 0x407d86
push 0x80004005
call fcn.00401000
cmp esi, eax
je 0x407d7c
cmp edi, esi
je 0x407d7c
mov bl, byte [edi]
lea ecx, [esi + 0x823]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 1
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0x20
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], ecx
test bl, bl
je 0x407fef
inc edi
cmp dword [ebp - 4], 0x823
mov dword [ebp + 8], edi
jne 0x407dcb
mov dword [ebp - 8], eax
cmp bl, 0x3a
jne 0x407e3d
test byte [ebp - 0xc], 0x80
je 0x407e9e
cmp dword [ebp - 0x10], eax
jne 0x407e9e
cmp dword [ebp - 8], eax
je 0x407e34
mov eax, esi
sub eax, dword [ebp - 4]
mov byte [esi], 0
cmp eax, dword [ebp - 0x1c]
jb 0x407d7c
cmp eax, dword [ebp - 0x14]
ja 0x407d7c
mov ecx, dword [ebp - 0x14]
sub ecx, eax
inc ecx
push ecx
push eax
call fcn.0042ef9f
push eax
call fcn.00403f85
add esp, 0xc
cmp dword [ebp - 4], 4
jne 0x407e34
push 4
lea eax, [esi - 4]
push eax
push 0x449fc8
call fcn.0042eade
add esp, 0xc
test eax, eax
jne 0x407e34
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 0x10], eax
jmp 0x407e9e
cmp bl, 0x25
jne 0x407e8a
test byte [ebp - 0xc], 4
je 0x407e9e
mov al, byte [edi]
test al, al
je 0x407fe0
inc edi
call fcn.00407c3d
movzx ebx, ax
test bx, bx
jl 0x407fd6
mov al, byte [edi]
test al, al
je 0x407fe0
inc edi
mov dword [ebp + 8], edi
call fcn.00407c3d
movzx eax, ax
test ax, ax
jl 0x407fdc
shl bl, 4
add bl, al
jmp 0x407e9e
cmp bl, 0x3f
je 0x407e94
cmp bl, 0x23
jne 0x407e9e
test byte [ebp - 0xc], 0x20
je 0x407e9e
or dword [ebp - 0xc], 2
mov eax, dword [ebp - 0xc]
test al, al
jns 0x407f09
test al, 2
jne 0x407f09
cmp bl, 0x5c
jne 0x407ed0
xor ecx, ecx
cmp dword [ebp - 0x10], ecx
jne 0x407ebc
test eax, 0x100
je 0x407f09
cmp dword [ebp - 8], ecx
je 0x407f09
cmp dword [ebp - 0x18], ecx
je 0x407ecc
cmp dword [ebp - 4], 7
jae 0x407f09
mov bl, 0x2f
jmp 0x407f09
cmp bl, 0x2e
jne 0x407f09
mov ecx, dword [ebp - 4]
test ecx, ecx
jbe 0x407f09
test al, 8
jne 0x407f09
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.00407c9c
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
add esp, 0x14
test eax, eax
jne 0x407fc9
movzx ecx, bl
cmp ecx, 0x40
jg 0x407f31
cmp ecx, 0x3b
jge 0x407f52
cmp ecx, 0x20
je 0x407f52
cmp ecx, 0x21
jle 0x407f48
cmp ecx, 0x26
jle 0x407f52
cmp ecx, 0x2a
jle 0x407f48
cmp ecx, 0x2c
jle 0x407f52
jmp 0x407f48
cmp ecx, 0x5b
jl 0x407f48
cmp ecx, 0x5e
jle 0x407f52
cmp ecx, 0x60
je 0x407f52
lea eax, [ecx - 0x7b]
cmp eax, 2
jbe 0x407f52
cmp bl, 0x20
jb 0x407f52
cmp bl, 0x7e
jbe 0x407fba
mov al, byte [ebp - 0xc]
test al, 2
jne 0x407fba
test al, 0x10
je 0x407f62
cmp bl, 0x20
jne 0x407fba
test al, 8
je 0x407f6b
cmp bl, 0x2e
je 0x407fba
test al, 0x40
jne 0x407f74
cmp bl, 0x25
je 0x407fba
cmp dword [ebp - 4], 0x820
jb 0x407f81
and dword [ebp - 8], 0
cmp dword [ebp - 8], 0
je 0x407fb4
mov byte [esi], 0x25
lea eax, [esi + 1]
cmp bl, 0x10
jae 0x407f96
mov byte [eax], 0x30
inc eax
mov edx, dword [ebp - 0x14]
push 0x10
sub edx, eax
push edx
push eax
push ecx
call fcn.0042eab9
push eax
call fcn.00403f85
add esp, 0x14
add esi, 3
mov dword [ebp + 0xc], esi
add dword [ebp - 4], 2
jmp 0x407fc6
cmp dword [ebp - 8], 0
je 0x407fc6
mov byte [esi], bl
inc esi
mov dword [ebp + 0xc], esi
inc dword [ebp - 4]
mov bl, byte [edi]
test bl, bl
je 0x407fe0
xor eax, eax
jmp 0x407dbb
and dword [ebp - 8], 0
jmp 0x407ff2
and dword [ebp - 8], 0
cmp dword [ebp - 8], 0
je 0x407ff2
cmp dword [ebp - 4], 0x823
jae 0x407ff2
mov byte [esi], 0
mov eax, dword [ebp - 4]
pop edi
inc eax
pop esi
pop ebx
cmp eax, 0x823
jbe 0x408004
and dword [ebp - 8], 0
mov eax, dword [ebp - 8]
leave
ret