Function at 0x405887
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, edx
push edi
mov dword [ebp - 0xc], esi
test ecx, ecx
je 0x405b4c
test esi, esi
je 0x405b4c
cmp ecx, esi
je 0x405b4c
mov ebx, dword [ebp + 0xc]
add ebx, esi
xor edi, edi
and dword [ebp - 0x20], edi
and dword [ebp - 8], edi
xor eax, eax
mov dword [ebp - 0x24], ebx
mov bl, byte [ecx]
xor edx, edx
inc eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x28], esi
test bl, bl
je 0x405b40
and dword [ebp - 4], 0
inc ecx
cmp edi, dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
cmove eax, dword [ebp - 4]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], eax
cmp bl, 0x3a
jne 0x405960
mov ecx, dword [ebp - 8]
test dl, dl
jns 0x4059bc
test ecx, ecx
jne 0x4059bc
test eax, eax
je 0x405958
mov byte [esi], cl
mov ecx, esi
sub ecx, edi
cmp ecx, dword [ebp - 0x28]
jb 0x405b4c
mov eax, dword [ebp - 0x24]
cmp ecx, eax
ja 0x405b4c
sub eax, ecx
inc eax
push eax
push ecx
call fcn.0041ca50
push eax
call fcn.00401290
add esp, 0xc
cmp edi, 4
jne 0x405958
push edi
lea eax, [esi - 4]
push eax
push 0x55830c
call fcn.0041c7f0
mov ecx, dword [ebp - 0x20]
add esp, 0xc
test eax, eax
push 1
pop eax
cmove ecx, eax
mov dword [ebp - 0x20], ecx
lea ecx, [edi + 1]
mov dword [ebp - 8], ecx
jmp 0x4059bc
cmp bl, 0x25
jne 0x4059ed
test dl, 4
je 0x4059b9
mov dl, byte [ecx]
test dl, dl
je 0x405b3c
inc ecx
mov dword [ebp - 0x10], ecx
mov cl, dl
call fcn.0040577b
movzx ebx, ax
test bx, bx
js 0x405b19
mov eax, dword [ebp - 0x10]
mov cl, byte [eax]
test cl, cl
je 0x405b39
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
call fcn.0040577b
movzx eax, ax
test ax, ax
js 0x405b15
shl bl, 4
add bl, al
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
test al, al
jns 0x405a3d
test al, 2
jne 0x405a3d
cmp bl, 0x5c
jne 0x405a07
test ecx, ecx
jne 0x4059d7
test eax, 0x100
je 0x405a3d
mov edx, dword [ebp - 4]
test edx, edx
je 0x405a40
cmp dword [ebp - 0x20], 0
je 0x4059e9
cmp edi, 7
jae 0x405a40
mov bl, 0x2f
jmp 0x405a40
cmp bl, 0x3f
je 0x4059f7
cmp bl, 0x23
jne 0x4059b9
mov ecx, dword [ebp - 8]
test dl, 0x20
je 0x4059bc
or edx, 2
mov dword [ebp - 0x1c], edx
jmp 0x4059bc
cmp bl, 0x2e
jne 0x405a3d
test edi, edi
je 0x405a3d
test al, 8
jne 0x405a3d
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
lea edx, [esi - 1]
lea ecx, [ebp - 0xc]
call fcn.004057a9
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x18]
add esp, 0x14
test eax, eax
jne 0x405a68
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 4]
movzx ecx, bl
cmp ecx, 0x40
jg 0x405a70
cmp ecx, 0x3b
jge 0x405a8e
cmp ecx, 0x20
je 0x405a8e
cmp ecx, 0x21
jle 0x405a87
cmp ecx, 0x26
jle 0x405a8e
cmp ecx, 0x2a
jle 0x405a87
cmp ecx, 0x2c
jle 0x405a8e
jmp 0x405a87
mov ecx, dword [ebp - 0x14]
jmp 0x405b04
cmp ecx, 0x5b
jl 0x405a87
cmp ecx, 0x5e
jle 0x405a8e
cmp ecx, 0x60
je 0x405a8e
lea eax, [ecx - 0x7b]
cmp eax, 2
jbe 0x405a8e
lea eax, [ebx - 0x20]
cmp al, 0x5e
jbe 0x405af3
mov eax, dword [ebp - 0x1c]
test al, 2
jne 0x405af3
test al, 0x10
je 0x405a9e
cmp bl, 0x20
jne 0x405af3
test al, 8
je 0x405aa7
cmp bl, 0x2e
je 0x405af3
test al, 0x40
jne 0x405ab0
cmp bl, 0x25
je 0x405af3
mov eax, dword [ebp + 0xc]
add eax, 0xfffffffd
cmp edi, eax
sbb eax, eax
and edx, eax
mov dword [ebp - 4], edx
je 0x405aee
mov byte [esi], 0x25
lea edx, [esi + 1]
cmp bl, 0x10
jae 0x405ad0
mov byte [edx], 0x30
inc edx
mov eax, dword [ebp - 0x24]
push 0x10
sub eax, edx
push eax
push edx
push ecx
call fcn.0041cb29
push eax
call fcn.00401290
add esp, 0x14
add esi, 3
mov dword [ebp - 0xc], esi
add edi, 2
jmp 0x405afd
test edx, edx
je 0x405afd
mov byte [esi], bl
inc esi
mov dword [ebp - 0xc], esi
mov ecx, dword [ebp - 0x10]
inc edi
mov dword [ebp - 0x18], edi
mov bl, byte [ecx]
mov eax, dword [ebp - 4]
test bl, bl
je 0x405b3c
mov edx, dword [ebp - 0x1c]
jmp 0x4058d5
xor eax, eax
jmp 0x405b3c
xor eax, eax
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
test edx, edx
je 0x405b2a
lea ecx, [edi + 1]
mov dword [edx], ecx
lea ecx, [edi + 1]
pop edi
xor edx, edx
cmp ecx, ebx
pop esi
cmova eax, edx
pop ebx
leave
ret
mov eax, dword [ebp - 4]
test eax, eax
je 0x405b1b
mov ebx, dword [ebp + 0xc]
cmp edi, ebx
jae 0x405b1e
mov byte [esi], 0
jmp 0x405b1e
push 0x80004005
call fcn.00401278
int3