Function at 0x40d620
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
xor edx, edx
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebx + 8]
mov dword [ecx + 4], esi
mov dword [ecx + 0xc], edx
mov ecx, dword [ebx + 0xc]
xor eax, eax
add ecx, dword [ebx + 8]
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x20], ecx
lea esp, [esp]
movsx edi, byte [ecx]
cmp edi, edx
jne 0x40d70e
sub ecx, dword [ebx + 0xc]
mov esi, dword [ebx + 0x1c]
mov dword [ebx + 8], ecx
cmp esi, edx
je 0x40dd43
mov eax, dword [esi + 0xa4]
mov dword [esp + 0x34], eax
call fcn.0040cff0
test al, al
je 0x40d6f1
mov esi, dword [ebp + 8]
mov ecx, dword [ebx + 0x1c]
mov eax, dword [esi + 4]
mov edx, dword [ebx + 8]
mov ecx, dword [ecx + 0xa4]
sub edx, eax
test ecx, ecx
je 0x40d6d8
sub eax, ecx
cmp dword [esp + 0x24], 0
mov dword [esi + 4], eax
je 0x40d6c9
sub dword [esp + 0x24], ecx
jmp 0x40d6d5
cmp dword [esp + 0x30], 0
je 0x40d6d5
sub dword [ebx], ecx
sub dword [ebx + 4], ecx
sub dword [ebx + 8], ecx
mov eax, dword [esi + 4]
add eax, edx
mov edx, dword [ebx + 0x1c]
mov ecx, dword [edx + 0x28]
mov ecx, dword [ecx]
add eax, ecx
mov dword [ebx + 0xc], ecx
movsx edi, byte [eax]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x34]
test eax, eax
je 0x40d702
mov ecx, dword [ebx + 0x1c]
mov dword [ecx + 0xa4], eax
mov eax, dword [esp + 0x10]
test edi, edi
je 0x40dd43
mov edx, dword [esp + 0x24]
test edx, edx
je 0x40d757
lea ecx, [edi - 9]
cmp ecx, 0x35
ja 0x40d9f2
movsx ecx, byte [edi + 0x4530eb]
test ecx, ecx
je 0x40d9f2
mov ecx, dword [esp + 0x20]
sub ecx, dword [ebx + 0xc]
mov dword [ebx], edx
sub ecx, edx
xor esi, esi
lea edx, [ecx + edx - 1]
mov dword [esp + 0x30], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], esi
jmp 0x40d75b
mov esi, dword [esp + 0x2c]
cmp dword [esp + 0x18], 0
mov edx, dword [esp + 0x20]
je 0x40d9ab
cmp edi, 0x3e
jne 0x40d81c
test al, 0xc0
jne 0x40d837
sub edx, dword [ebx + 0xc]
mov ecx, dword [esp + 0x1c]
inc edx
mov dword [ebx + 8], edx
cmp ecx, 1
jne 0x40d7ca
mov dword [esp + 0x18], 0
cmp dword [esp + 0x14], ecx
jne 0x40d7fb
cmp dword [esp + 0x28], 0x2f
jne 0x40d7fb
test esi, esi
je 0x40d7be
test eax, 0x200
je 0x40d7be
lea ecx, [esi - 9]
cmp ecx, 0x1e
ja 0x40d7fb
movsx ecx, byte [esi + 0x453123]
test ecx, ecx
je 0x40d7fb
mov ecx, dword [ebp + 8]
or dword [ecx + 0xc], 0x10000
jmp 0x40d7fb
dec edx
cmp edx, ecx
jle 0x40d7fb
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
sub edi, ecx
inc edi
mov dword [esp + 0x10], ecx
sub esi, edi
sub dword [esp + 0x10], 1
je 0x40d7f3
mov dl, byte [edi]
mov cl, byte [esi + edi]
inc edi
cmp dl, cl
je 0x40d7e0
jmp 0x40d7fb
mov dword [esp + 0x18], 0
and eax, 0xfffffdff
cmp dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jne 0x40d9f2
test al, 0x20
je 0x40dce4
jmp 0x40d9f2
cmp edi, 0x3c
jne 0x40d837
cmp dword [esp + 0x14], 2
je 0x40ddfd
cmp dword [esp + 0x14], 0xffffffff
je 0x40ddfd
mov cl, byte [esp + 0x14]
test cl, 1
je 0x40d980
test eax, 0x2c0
je 0x40d8d3
cmp edi, 0x22
jne 0x40d872
test al, al
jns 0x40d893
mov edx, dword [esp + 0x28]
xor eax, 0x80
mov dword [esp + 0x10], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], edi
jmp 0x40d9f2
cmp edi, 0x27
jne 0x40d893
test al, 0x40
je 0x40d893
mov edx, dword [esp + 0x28]
xor eax, 0x40
mov dword [esp + 0x10], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], edi
jmp 0x40d9f2
test eax, 0x200
je 0x40d972
lea edx, [edi - 9]
cmp edx, 0x17
ja 0x40d972
movsx ecx, byte [edi + 0x452eb3]
test ecx, ecx
je 0x40d972
mov edx, dword [esp + 0x28]
xor eax, 0x200
mov dword [esp + 0x10], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], edi
jmp 0x40d9f2
cmp edi, 0x22
jne 0x40d8fd
test eax, 0x100
je 0x40d972
mov edx, dword [esp + 0x28]
xor eax, 0x180
mov dword [esp + 0x10], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], edi
jmp 0x40d9f2
cmp edi, 0x27
jne 0x40d923
test eax, 0x100
je 0x40d972
mov edx, dword [esp + 0x28]
xor eax, 0x140
mov dword [esp + 0x10], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], edi
jmp 0x40d9f2
cmp edi, 0x3d
jne 0x40d94f
cmp dword [esp + 0x28], edi
je 0x40d94f
test eax, 0x100
jne 0x40d956
mov edx, dword [esp + 0x28]
xor eax, 0x100
mov dword [esp + 0x10], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], edi
jmp 0x40d9f2
test eax, 0x100
je 0x40d972
lea ecx, [edi - 9]
cmp ecx, 0x17
ja 0x40d969
movsx ecx, byte [edi + 0x452eb3]
test ecx, ecx
jne 0x40d972
xor eax, 0x300
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x28]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], edi
jmp 0x40d9f2
test cl, 0x40
je 0x40d9f2
cmp edi, 0x22
jne 0x40d999
test al, 0x40
jne 0x40d9f2
xor eax, 0x80
mov dword [esp + 0x10], eax
jmp 0x40d9f2
cmp edi, 0x27
jne 0x40d9f2
test al, al
js 0x40d9f2
xor eax, 0x40
mov dword [esp + 0x10], eax
jmp 0x40d9f2
test eax, eax
je 0x40dd01
test al, 0x10
je 0x40da12
cmp edi, 0x3c
je 0x40de08
lea ecx, [edi - 9]
cmp ecx, 0x17
ja 0x40d9d3
movsx ecx, byte [edi + 0x452eb3]
test ecx, ecx
jne 0x40d9f2
xor eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 0x45314c
mov dword [esp + 0x1c], 1
mov esi, dword [esp + 0x20]
push esi
call fcn.0043127b
add esi, eax
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [esp + 0x20], esi
xor edx, edx
mov ecx, esi
jmp 0x40d670
test al, 1
je 0x40daf6
mov ecx, 1
xor eax, ecx
mov dword [esp + 0x10], eax
cmp edi, 0x60
ja 0x40dad8
cmp edi, 0x40
jbe 0x40da3c
cmp edi, 0x5b
jb 0x40dad8
cmp edi, 0x5f
je 0x40dad8
cmp edi, 0x3a
je 0x40dad8
cmp edi, 0x2f
jne 0x40da77
mov eax, edx
sub eax, dword [ebx + 0xc]
mov dword [esp + 0x18], 0x453150
add eax, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x24], eax
jmp 0x40d9f2
cmp edi, 0x21
jne 0x40da88
or eax, 2
mov dword [esp + 0x10], eax
jmp 0x40d9f2
cmp edi, 0x3f
jne 0x40dab5
mov eax, edx
sub eax, dword [ebx + 0xc]
mov dword [esp + 0x18], 0x453154
add eax, ecx
mov dword [esp + 0x1c], 2
mov dword [esp + 0x14], 0x10
mov dword [esp + 0x24], eax
jmp 0x40d9f2
mov edx, dword [ebx + 8]
push 0xffffffffffffffff
push edx
push 0
push ecx
mov eax, esp
mov dword [eax], 0
push ecx
mov eax, esp
mov dword [esp + 0x30], ecx
mov dword [eax], str.first_tag_syntax
jmp 0x40dc8b
mov eax, edx
sub eax, dword [ebx + 0xc]
mov dword [esp + 0x18], 0x453150
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], eax
jmp 0x40d9f2
test al, 2
je 0x40dbc9
xor eax, 2
mov dword [esp + 0x10], eax
cmp edi, 0x2d
jne 0x40db16
or eax, 4
mov dword [esp + 0x10], eax
jmp 0x40d9f2
test al, 0x20
je 0x40db61
lea ecx, [edi - 0x41]
cmp ecx, 0xd
ja 0x40db42
movsx eax, byte [edi + 0x45312b]
test eax, eax
je 0x40db42
mov dword [esp + 0x18], 0x453150
mov dword [esp + 0x14], 0x40
jmp 0x40d9ea
mov edx, dword [ebx + 8]
push 0xffffffffffffffff
push edx
push 0
push ecx
mov eax, esp
mov dword [eax], 0
push ecx
mov eax, esp
mov dword [eax], str.doctype_tag_syntax
jmp 0x40dc83
cmp edi, 0x5b
jne 0x40db72
or eax, 8
mov dword [esp + 0x10], eax
jmp 0x40d9f2
cmp edi, 0x44
jne 0x40db83
or eax, 0x20
mov dword [esp + 0x10], eax
jmp 0x40d9f2
mov ecx, dword [ebx + 8]
mov edx, dword [ebp + 8]
push 0xffffffffffffffff
push ecx
push 0
push ecx
mov eax, esp
push ecx
mov dword [eax], 0
mov eax, esp
add edx, 0x10
push edx
mov dword [esp + 0x30], 0x453150
mov dword [esp + 0x34], 1
mov dword [eax], str.exclamation_tag_syntax
call fcn.0040a2e0
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
jmp 0x40d9f2
test al, 4
je 0x40dc3c
xor eax, 4
mov dword [esp + 0x10], eax
cmp edi, 0x2d
jne 0x40dbf6
mov dword [esp + 0x18], 0x4531a8
mov dword [esp + 0x1c], 3
mov dword [esp + 0x14], 0x20
jmp 0x40d9f2
mov eax, dword [ebx + 8]
push 0xffffffffffffffff
push eax
push 0
push ecx
mov eax, esp
push ecx
mov ecx, dword [ebp + 8]
mov dword [eax], 0
mov eax, esp
add ecx, 0x10
push ecx
mov dword [esp + 0x30], 0x453150
mov dword [esp + 0x34], 1
mov dword [eax], str.comment_tag_syntax
call fcn.0040a2e0
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
jmp 0x40d9f2
test al, 8
je 0x40dcaf
xor eax, 8
mov dword [esp + 0x10], eax
cmp edi, 0x43
jne 0x40dc69
mov dword [esp + 0x18], 0x4531c0
mov dword [esp + 0x1c], 3
mov dword [esp + 0x14], 8
jmp 0x40d9f2
mov edx, dword [ebx + 8]
push 0xffffffffffffffff
push edx
push 0
push ecx
mov eax, esp
mov dword [eax], 0
push ecx
mov eax, esp
mov dword [eax], str.cdata_section_syntax
mov dword [esp + 0x30], 1
mov eax, dword [ebp + 8]
add eax, 0x10
push eax
mov dword [esp + 0x30], 0x453150
call fcn.0040a2e0
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
jmp 0x40d9f2
test al, 0x20
je 0x40d9f2
cmp edi, 0x3c
jne 0x40dcc8
or eax, 1
mov dword [esp + 0x10], eax
jmp 0x40d9f2
cmp edi, 0x3e
jne 0x40d9f2
mov eax, dword [esp + 0x20]
sub eax, dword [ebx + 0xc]
mov dword [esp + 0x14], 0x40
inc eax
mov dword [ebx + 8], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebx + 8]
sub edx, dword [eax + 4]
mov ecx, dword [esp + 0x14]
mov dword [eax + 8], edx
mov dword [eax], ecx
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp edi, 0x3c
jne 0x40dd13
mov dword [esp + 0x10], 1
jmp 0x40d9f2
lea ecx, [edi - 9]
mov dword [esp + 0x14], 4
cmp ecx, 0x17
ja 0x40d9da
movsx eax, byte [edi + 0x452eb3]
test eax, eax
je 0x40d9da
mov dword [esp + 0x10], 0x10
jmp 0x40d9f2
mov edx, dword [ebp + 8]
mov esi, dword [edx + 4]
cmp dword [ebx + 8], esi
jne 0x40dd69
pop edi
pop esi
mov dword [edx + 8], 0
mov dword [edx], 0
mov eax, 0xfffffffe
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [esp + 0x14], 4
je 0x40dce4
cmp dword [esp + 0x14], 2
je 0x40dce4
mov ecx, 0x453084
test al, 0x20
jne 0x40ddcc
mov eax, dword [esp + 0x14]
cmp eax, 0x40
je 0x40ddcc
cmp eax, 1
jne 0x40dd9d
mov ecx, str.start_tag
jmp 0x40ddd1
test eax, eax
jne 0x40dda8
mov ecx, str.end_tag
jmp 0x40ddd1
cmp eax, 8
jne 0x40ddb4
mov ecx, str.cdata_section
jmp 0x40ddd1
cmp eax, 0x10
jne 0x40ddc0
mov ecx, str.processing_instruction
jmp 0x40ddd1
cmp eax, 0x20
jne 0x40ddd1
mov ecx, str.comment
jmp 0x40ddd1
mov ecx, str.document_type
push 0xffffffffffffffff
push esi
push 2
push ecx
mov eax, esp
push ecx
mov dword [eax], ecx
mov eax, esp
add edx, 0x10
push edx
mov dword [esp + 0x2c], 0xffffffff
mov dword [eax], str.unterminated_tag_syntax
call fcn.0040a2e0
add esp, 0x18
jmp 0x40dce4
sub edx, dword [ebx + 0xc]
mov dword [ebx + 8], edx
jmp 0x40dce4
sub edx, dword [ebx + 0xc]
mov dword [esp + 0x14], 4
mov dword [ebx + 8], edx
jmp 0x40dce4