Function at 0x406630
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
xor eax, eax
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x1c], eax
mov ecx, dword [ebp + 8]
or edx, 0xffffffff
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
mov eax, dword [edi + 8]
mov dword [ecx + 4], eax
mov dword [ecx + 0xc], ebx
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 8]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], edx
lea ecx, [eax + ecx*2]
mov dword [esp + 0x18], ecx
xor ecx, ecx
mov eax, dword [esp + 0x18]
movzx esi, word [eax]
test esi, esi
jne 0x40672e
sub eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x1c]
sar eax, 1
mov dword [edi + 8], eax
test ecx, ecx
je 0x406e02
mov eax, dword [ecx + 0xa4]
mov dword [esp + 0x2c], eax
call fcn.00405d90
test al, al
je 0x40670d
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x1c]
mov esi, dword [edi + 8]
mov edx, dword [edx + 4]
sub esi, edx
mov ecx, dword [eax + 0xa4]
test ecx, ecx
je 0x4066f0
mov eax, dword [ebp + 8]
sub edx, ecx
mov dword [eax + 4], edx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4066e1
sub eax, ecx
mov dword [esp + 0x14], eax
jmp 0x4066ed
cmp dword [esp + 0x24], 0
je 0x4066ed
sub dword [edi], ecx
sub dword [edi + 4], ecx
sub dword [edi + 8], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov eax, dword [edi + 0x1c]
add ecx, esi
mov eax, dword [eax + 0x28]
mov eax, dword [eax]
mov dword [edi + 0xc], eax
lea eax, [eax + ecx*2]
movzx esi, word [eax]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x40671e
mov eax, dword [edi + 0x1c]
mov dword [eax + 0xa4], ecx
mov edx, dword [esp + 0xc]
test esi, esi
je 0x406e02
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x406776
lea eax, [esi - 9]
cmp eax, 0x35
ja 0x406847
movsx eax, byte [esi + 0x451c4b]
test eax, eax
je 0x406847
mov eax, dword [esp + 0x18]
sub eax, dword [edi + 0xc]
sar eax, 1
mov dword [esp + 0x24], eax
dec eax
sub dword [esp + 0x24], ecx
mov dword [edi], ecx
xor ecx, ecx
mov dword [edi + 4], eax
xor eax, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], eax
jmp 0x40677a
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x10], 0
je 0x406a4b
cmp esi, 0x3e
jne 0x40685f
test bl, 0xc0
jne 0x406876
mov ecx, dword [esp + 0x18]
mov eax, ecx
sub eax, dword [edi + 0xc]
mov esi, dword [esp + 0x1c]
sar eax, 1
inc eax
mov dword [edi + 8], eax
cmp esi, 1
jne 0x4067f7
mov dword [esp + 0x10], 0
cmp edx, esi
jne 0x4067ef
cmp dword [esp + 0x20], 0x2f
jne 0x4067ef
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x4067e5
test ebx, 0x200
je 0x4067e5
lea eax, [ecx - 9]
cmp eax, 0x1e
ja 0x4067ef
movsx eax, byte [ecx + 0x451c83]
test eax, eax
je 0x4067ef
mov eax, dword [ebp + 8]
or dword [eax + 0xc], 0x10000
and ebx, 0xfffffdff
jmp 0x40683a
dec eax
cmp eax, esi
jle 0x406828
lea eax, [esi + esi]
sub ecx, eax
mov eax, dword [esp + 0x10]
lea edx, [ecx + 2]
sub eax, edx
mov dword [esp + 0x2c], eax
nop
sub esi, 1
je 0x406857
mov ax, word [eax + edx]
mov cx, word [edx]
add edx, 2
cmp cx, ax
mov eax, dword [esp + 0x2c]
je 0x406810
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
and ebx, 0xfffffdff
test eax, eax
jne 0x406843
test bl, 0x20
je 0x406ebb
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add eax, 2
mov dword [esp + 0x18], eax
jmp 0x406680
xor eax, eax
mov dword [esp + 0x10], eax
jmp 0x40682c
cmp esi, 0x3c
jne 0x406876
cmp edx, 2
je 0x406eaf
cmp edx, 0xffffffff
je 0x406eaf
test dl, 1
je 0x4069fa
test ebx, 0x2c0
je 0x406928
cmp esi, 0x22
jne 0x4068b6
test bl, bl
jns 0x4068df
mov eax, dword [esp + 0x20]
xor ebx, 0x80
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
add eax, 2
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], eax
jmp 0x406680
cmp esi, 0x27
jne 0x4068df
test bl, 0x40
je 0x4068df
mov eax, dword [esp + 0x20]
xor ebx, 0x40
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
add eax, 2
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], eax
jmp 0x406680
test ebx, 0x200
je 0x4069de
lea eax, [esi - 9]
cmp eax, 0x17
ja 0x4069de
movsx eax, byte [esi + 0x4518ff]
test eax, eax
je 0x4069de
mov eax, dword [esp + 0x20]
xor ebx, 0x200
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
add eax, 2
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], eax
jmp 0x406680
cmp esi, 0x22
jne 0x40695b
test ebx, 0x100
je 0x4069de
mov eax, dword [esp + 0x20]
xor ebx, 0x180
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
add eax, 2
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], eax
jmp 0x406680
cmp esi, 0x27
jne 0x40698a
test ebx, 0x100
je 0x4069de
mov eax, dword [esp + 0x20]
xor ebx, 0x140
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
add eax, 2
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], eax
jmp 0x406680
cmp esi, 0x3d
jne 0x4069bd
cmp eax, esi
je 0x4069bd
test ebx, 0x100
jne 0x4069c5
mov eax, dword [esp + 0x20]
xor ebx, 0x100
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
add eax, 2
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], eax
jmp 0x406680
test ebx, 0x100
je 0x4069de
lea eax, [esi - 9]
cmp eax, 0x17
ja 0x4069d8
movsx eax, byte [esi + 0x4518ff]
test eax, eax
jne 0x4069de
xor ebx, 0x300
mov eax, dword [esp + 0x20]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
add eax, 2
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], eax
jmp 0x406680
test dl, 0x40
je 0x406847
cmp esi, 0x22
jne 0x406a27
test bl, 0x40
jne 0x406847
mov eax, dword [esp + 0x18]
xor ebx, 0x80
add eax, 2
mov dword [esp + 0x18], eax
jmp 0x406680
cmp esi, 0x27
jne 0x406847
test bl, bl
js 0x406847
mov eax, dword [esp + 0x18]
xor ebx, 0x40
add eax, 2
mov dword [esp + 0x18], eax
jmp 0x406680
test ebx, ebx
je 0x406db3
test bl, 0x10
je 0x406aa3
cmp esi, 0x3c
je 0x406ed8
lea eax, [esi - 9]
cmp eax, 0x17
ja 0x406a78
movsx eax, byte [esi + 0x4518ff]
test eax, eax
jne 0x406847
xor ebx, 0x10
mov eax, dword [esp + 0x18]
mov edx, 2
add eax, edx
mov dword [esp + 0x10], 0x451cac
mov dword [esp + 0x1c], 1
mov dword [esp + 0xc], edx
mov dword [esp + 0x18], eax
jmp 0x406680
test bl, 1
je 0x406bed
xor ebx, 1
cmp esi, 0x60
ja 0x406bb7
cmp esi, 0x40
jbe 0x406ac6
cmp esi, 0x5b
jb 0x406bb7
cmp esi, 0x5f
je 0x406bb7
cmp esi, 0x3a
je 0x406bb7
cmp esi, 0x2f
jne 0x406b11
mov ecx, dword [esp + 0x18]
xor edx, edx
sub ecx, dword [edi + 0xc]
mov eax, dword [esp + 0x18]
sar ecx, 1
inc ecx
mov dword [esp + 0x10], 0x451cb0
add eax, 2
mov dword [esp + 0x1c], 1
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
jmp 0x406680
cmp esi, 0x21
jne 0x406b29
mov eax, dword [esp + 0x18]
or ebx, 2
add eax, 2
mov dword [esp + 0x18], eax
jmp 0x406680
cmp esi, 0x3f
jne 0x406b65
mov ecx, dword [esp + 0x18]
mov edx, 0x10
sub ecx, dword [edi + 0xc]
mov eax, dword [esp + 0x18]
sar ecx, 1
inc ecx
mov dword [esp + 0x10], 0x451cb4
add eax, 2
mov dword [esp + 0x1c], 2
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
jmp 0x406680
push 0xffffffffffffffff
push dword [edi + 8]
push ecx
mov eax, esp
push ecx
mov dword [eax], 0
mov eax, esp
mov dword [eax], str.first_tag_syntax
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x20], 0x451cb0
lea ecx, [ecx + 0x10]
call fcn.00403650
mov eax, dword [esp + 0x28]
or edx, 0xffffffff
mov ecx, dword [esp + 0x24]
add esp, 0x10
add eax, 2
mov dword [esp + 0xc], edx
mov dword [esp + 0x18], eax
jmp 0x406680
mov ecx, dword [esp + 0x18]
mov edx, 1
sub ecx, dword [edi + 0xc]
mov eax, dword [esp + 0x18]
sar ecx, 1
add eax, 2
mov dword [esp + 0x10], 0x451cb0
mov dword [esp + 0x1c], 1
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
jmp 0x406680
test bl, 2
je 0x406cce
xor ebx, 2
cmp esi, 0x2d
jne 0x406c11
mov eax, dword [esp + 0x18]
or ebx, 4
add eax, 2
mov dword [esp + 0x18], eax
jmp 0x406680
test bl, 0x20
je 0x406c82
lea eax, [esi - 0x41]
cmp eax, 0xd
ja 0x406c30
movsx eax, byte [esi + 0x451c9f]
test eax, eax
je 0x406c30
mov edx, 0x40
jmp 0x406c5a
push 0xffffffffffffffff
push dword [edi + 8]
xor edx, edx
push ecx
mov eax, esp
push ecx
mov ecx, dword [ebp + 8]
mov dword [eax], 0
mov eax, esp
lea ecx, [ecx + 0x10]
mov dword [eax], str.doctype_tag_syntax
call fcn.00403650
add esp, 0x10
or edx, 0xffffffff
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
add eax, 2
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], 0x451cb0
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], eax
jmp 0x406680
cmp esi, 0x5b
jne 0x406c9a
mov eax, dword [esp + 0x18]
or ebx, 8
add eax, 2
mov dword [esp + 0x18], eax
jmp 0x406680
cmp esi, 0x44
jne 0x406cb2
mov eax, dword [esp + 0x18]
or ebx, 0x20
add eax, 2
mov dword [esp + 0x18], eax
jmp 0x406680
push 0xffffffffffffffff
push dword [edi + 8]
push ecx
mov eax, esp
push ecx
mov dword [eax], 0
mov eax, esp
mov dword [eax], str.exclamation_tag_syntax
jmp 0x406b7c
test bl, 4
je 0x406d20
xor ebx, 4
cmp esi, 0x2d
jne 0x406d04
mov eax, dword [esp + 0x18]
mov edx, 0x20
add eax, 2
mov dword [esp + 0x10], 0x451d48
mov dword [esp + 0x1c], 3
mov dword [esp + 0xc], edx
mov dword [esp + 0x18], eax
jmp 0x406680
push 0xffffffffffffffff
push dword [edi + 8]
push ecx
mov eax, esp
push ecx
mov dword [eax], 0
mov eax, esp
mov dword [eax], str.comment_tag_syntax
jmp 0x406b7c
test bl, 8
je 0x406d72
xor ebx, 8
cmp esi, 0x43
jne 0x406d56
mov eax, dword [esp + 0x18]
mov edx, 8
add eax, 2
mov dword [esp + 0x10], 0x451d78
mov dword [esp + 0x1c], 3
mov dword [esp + 0xc], edx
mov dword [esp + 0x18], eax
jmp 0x406680
push 0xffffffffffffffff
push dword [edi + 8]
push ecx
mov eax, esp
push ecx
mov dword [eax], 0
mov eax, esp
mov dword [eax], str.cdata_section_syntax
jmp 0x406b7c
test bl, 0x20
je 0x406847
cmp esi, 0x3c
jne 0x406d93
mov eax, dword [esp + 0x18]
or ebx, 1
add eax, 2
mov dword [esp + 0x18], eax
jmp 0x406680
cmp esi, 0x3e
jne 0x406847
mov eax, dword [esp + 0x18]
mov esi, 0x40
sub eax, dword [edi + 0xc]
sar eax, 1
inc eax
mov dword [edi + 8], eax
jmp 0x406ebf
cmp esi, 0x3c
jne 0x406dcb
mov eax, dword [esp + 0x18]
lea ebx, [esi - 0x3b]
add eax, 2
mov dword [esp + 0x18], eax
jmp 0x406680
lea eax, [esi - 9]
mov edx, 4
mov dword [esp + 0xc], edx
cmp eax, 0x17
ja 0x406a7b
movsx eax, byte [esi + 0x4518ff]
test eax, eax
je 0x406a7b
mov eax, dword [esp + 0x18]
lea ebx, [edx + 0xc]
add eax, 2
mov dword [esp + 0x18], eax
jmp 0x406680
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
cmp dword [edi + 8], eax
jne 0x406e28
mov dword [ecx + 8], 0
mov eax, 0xfffffffe
mov dword [ecx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp edx, 4
je 0x406ebb
cmp edx, 2
je 0x406ebb
mov ecx, 0x451b80
test bl, 0x20
jne 0x406e84
cmp edx, 0x40
je 0x406e84
cmp edx, 1
jne 0x406e55
mov ecx, str.start_tag
jmp 0x406e89
test edx, edx
jne 0x406e60
mov ecx, str.end_tag
jmp 0x406e89
cmp edx, 8
jne 0x406e6c
mov ecx, 0x451bc8
jmp 0x406e89
cmp edx, 0x10
jne 0x406e78
mov ecx, str.processing_instruction
jmp 0x406e89
cmp edx, 0x20
jne 0x406e89
mov ecx, str.comment
jmp 0x406e89
mov ecx, str.document_type
or esi, 0xffffffff
push esi
push eax
push ecx
mov eax, esp
lea edx, [esi + 3]
push ecx
mov dword [eax], ecx
mov eax, esp
mov ecx, dword [ebp + 8]
mov dword [eax], str.unterminated_tag_syntax
lea ecx, [ecx + 0x10]
call fcn.00403650
add esp, 0x10
jmp 0x406ebf
mov eax, dword [esp + 0x18]
sub eax, dword [edi + 0xc]
sar eax, 1
mov dword [edi + 8], eax
mov esi, dword [esp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [edi + 8]
pop edi
sub ecx, dword [eax + 4]
mov dword [eax], esi
mov dword [eax + 8], ecx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0x18]
mov esi, 4
sub eax, dword [edi + 0xc]
sar eax, 1
mov dword [edi + 8], eax
jmp 0x406ebf