Function at 0x40e390
Capabilities:
Parse credit card information

Disassembly:
sub esp, 0x348
mov eax, dword [0x4d01d4]
xor eax, esp
mov dword [esp + 0x344], eax
mov eax, dword [edx + 8]
push ebx
push ebp
push esi
xor esi, esi
push edi
mov edi, ecx
mov dword [edi + 4], eax
mov dword [edi + 0xc], esi
mov eax, dword [edx + 8]
mov ecx, dword [edx + 0xc]
lea ecx, [ecx + eax*2]
mov dword [esp + 0x1c], eax
movzx eax, word [ecx]
or ebx, 0xffffffff
xor ebp, ebp
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x18], ecx
test ax, ax
jne 0x40e3f8
mov dword [edi + 8], esi
mov dword [edi], esi
lea eax, [esi - 2]
jmp 0x40e9df
movzx edi, ax
test edi, edi
je 0x40e6e9
test esi, esi
je 0x40e471
push edi
push str.__t_n_r__
call fcn.00471e35
add esp, 8
test eax, eax
je 0x40e6cf
mov edx, dword [esp + 0x24]
mov ecx, dword [edx + 0xc]
mov edx, dword [esp + 0x18]
mov eax, edx
sub eax, ecx
sar eax, 1
sub eax, esi
test ebx, ebx
jne 0x40e44d
mov ecx, dword [esp + 0x24]
lea eax, [eax + esi - 1]
mov dword [ecx], esi
xor esi, esi
mov dword [ecx + 4], eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], esi
jmp 0x40e479
push eax
lea eax, [ecx + esi*2]
mov esi, dword [esp + 0x24]
add esi, 0x10
call fcn.00403b50
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
xor esi, esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], esi
jmp 0x40e479
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
cmp dword [esp + 0x14], 0
je 0x40e689
cmp edi, 0x3e
jne 0x40e53b
mov eax, dword [esp + 0x10]
test al, 0xc0
jne 0x40e556
sub edx, dword [ecx + 0xc]
sar edx, 1
mov dword [esp + 0x1c], edx
cmp ebp, 1
jne 0x40e4e8
mov dword [esp + 0x14], 0
cmp ebx, ebp
jne 0x40e52e
cmp dword [esp + 0x28], 0x2f
jne 0x40e52e
cmp dword [esp + 0x2c], 0
je 0x40e4db
mov ecx, dword [esp + 0x2c]
push ecx
push 0x4a3b94
call fcn.00471e35
add esp, 8
test eax, eax
mov eax, dword [esp + 0x10]
je 0x40e52e
mov ecx, dword [esp + 0x20]
or dword [ecx + 0xc], 0x10000
jmp 0x40e52e
cmp edx, ebp
jle 0x40e6cf
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
lea edx, [ebp + ebp]
sub eax, edx
add eax, 2
mov dword [esp + 0x30], ebp
sub ecx, eax
sub dword [esp + 0x30], 1
je 0x40e522
mov dx, word [eax]
mov di, word [ecx + eax]
add eax, 2
cmp dx, di
je 0x40e507
jmp 0x40e6cf
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], 0
test al, 0x20
je 0x40e9c5
jmp 0x40e6cf
cmp edi, 0x3c
jne 0x40e552
cmp ebx, 2
je 0x40ea95
cmp ebx, 0xffffffff
je 0x40ea95
mov eax, dword [esp + 0x10]
test bl, 1
je 0x40e65e
test al, 0xc0
je 0x40e5b3
cmp edi, 0x22
jne 0x40e58a
test al, al
jns 0x40e650
xor eax, 0x80
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edi
jmp 0x40e6cf
cmp edi, 0x27
jne 0x40e650
test al, 0x40
je 0x40e650
xor eax, 0x40
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edi
jmp 0x40e6cf
cmp edi, 0x22
jne 0x40e5dd
test eax, 0x100
je 0x40e650
xor eax, 0x180
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edi
jmp 0x40e6cf
cmp edi, 0x27
jne 0x40e603
test eax, 0x100
je 0x40e650
xor eax, 0x140
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edi
jmp 0x40e6cf
cmp edi, 0x3d
jne 0x40e62f
cmp dword [esp + 0x28], edi
je 0x40e62f
test eax, 0x100
jne 0x40e636
xor eax, 0x100
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edi
jmp 0x40e6cf
test eax, 0x100
je 0x40e650
push edi
push str.__t_n_r
call fcn.00471e35
add esp, 8
test eax, eax
jne 0x40e650
xor dword [esp + 0x10], 0x100
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edi
jmp 0x40e6cf
test bl, 0x40
je 0x40e6cf
cmp edi, 0x22
jne 0x40e677
test al, 0x40
jne 0x40e6cf
xor eax, 0x80
mov dword [esp + 0x10], eax
jmp 0x40e6cf
cmp edi, 0x27
jne 0x40e6cf
test al, al
js 0x40e6cf
xor eax, 0x40
mov dword [esp + 0x10], eax
jmp 0x40e6cf
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40e9f8
test al, 0x10
je 0x40e731
cmp edi, 0x3c
je 0x40eaa4
push edi
push str.__t_n_r
call fcn.00471e35
add esp, 8
test eax, eax
jne 0x40e6cf
xor dword [esp + 0x10], 0x10
mov ebx, 2
mov dword [esp + 0x14], 0x4a3ba4
mov ebp, 1
add dword [esp + 0x18], 2
mov eax, dword [esp + 0x18]
movzx edi, word [eax]
test edi, edi
jne 0x40e403
mov edx, dword [esp + 0x24]
mov ecx, eax
sub ecx, dword [edx + 0xc]
sar ecx, 1
dec ecx
mov dword [esp + 0x1c], ecx
cmp ebx, 4
je 0x40e9c5
cmp ebx, 2
je 0x40e9c5
test byte [esp + 0x10], 0x20
mov eax, 0x4a3a9c
jne 0x40ea61
cmp ebx, 0x40
je 0x40ea61
cmp ebx, 1
jne 0x40ea32
mov eax, str.Element_tag
jmp 0x40ea66
test al, 1
je 0x40e818
xor eax, 1
mov dword [esp + 0x10], eax
cmp edi, 0x60
ja 0x40e7fd
cmp edi, 0x40
jbe 0x40e757
cmp edi, 0x5b
jb 0x40e7fd
cmp edi, 0x5f
je 0x40e7fd
cmp edi, 0x3a
je 0x40e7fd
cmp edi, 0x2f
jne 0x40e785
mov esi, edx
sub esi, dword [ecx + 0xc]
xor ebx, ebx
sar esi, 1
mov dword [esp + 0x14], 0x4a3ba8
inc esi
jmp 0x40e6ca
cmp edi, 0x21
jne 0x40e796
or eax, 2
mov dword [esp + 0x10], eax
jmp 0x40e6cf
cmp edi, 0x3f
jne 0x40e7b6
mov esi, edx
sub esi, dword [ecx + 0xc]
mov dword [esp + 0x14], 0x4a3894
sar esi, 1
lea ebp, [edi - 0x3d]
lea ebx, [edi - 0x2f]
inc esi
jmp 0x40e6cf
mov ecx, dword [esp + 0x1c]
push ecx
push 0x4a3bac
push str.Incorrect__s_at_offset__d
lea edx, [esp + 0x108]
mov dword [esp + 0x20], 0x4a3ba8
mov ebp, 1
call fcn.0040f920
mov edx, dword [esp + 0x2c]
add esp, 0xc
add edx, 0x10
push edx
lea eax, [esp + 0x100]
call fcn.00403460
or ebx, 0xffffffff
jmp 0x40e6cf
mov esi, edx
sub esi, dword [ecx + 0xc]
mov ebp, 1
mov dword [esp + 0x14], 0x4a3ba8
mov ebx, ebp
sar esi, 1
jmp 0x40e6cf
test al, 2
je 0x40e8c3
xor eax, 2
mov dword [esp + 0x10], eax
cmp edi, 0x2d
jne 0x40e838
or eax, 4
mov dword [esp + 0x10], eax
jmp 0x40e6cf
cmp edi, 0x5b
jne 0x40e84d
test al, 0x20
jne 0x40e862
or eax, 8
mov dword [esp + 0x10], eax
jmp 0x40e6cf
cmp edi, 0x44
jne 0x40e862
test al, 0x20
jne 0x40e862
or eax, 0x20
mov dword [esp + 0x10], eax
jmp 0x40e6cf
push edi
push 0x4a3c08
call fcn.00471e35
add esp, 8
mov dword [esp + 0x14], 0x4a3ba8
mov ebp, 1
test eax, eax
je 0x40e889
lea ebx, [ebp + 0x3f]
jmp 0x40e6cf
mov eax, dword [esp + 0x1c]
push eax
push str.__tag
push str.Incorrect__s_at_offset__d
lea edx, [esp + 0x298]
call fcn.0040f920
mov ecx, dword [esp + 0x2c]
add esp, 0xc
add ecx, 0x10
push ecx
lea eax, [esp + 0x290]
call fcn.00403460
or ebx, 0xffffffff
jmp 0x40e6cf
test al, 4
je 0x40e92d
xor eax, 4
mov dword [esp + 0x10], eax
cmp edi, 0x2d
jne 0x40e8e6
mov dword [esp + 0x14], 0x4a3c1c
lea ebp, [edi - 0x2a]
lea ebx, [edi - 0xd]
jmp 0x40e6cf
mov edx, dword [esp + 0x1c]
push edx
push str.comment_tag
push str.Incorrect__s_at_offset__d
lea edx, [esp + 0x1d0]
mov dword [esp + 0x20], 0x4a3ba8
mov ebp, 1
call fcn.0040f920
mov eax, dword [esp + 0x2c]
add eax, 0x10
add esp, 0xc
push eax
lea eax, [esp + 0x1c8]
call fcn.00403460
or ebx, 0xffffffff
jmp 0x40e6cf
test al, 8
je 0x40e991
xor eax, 8
mov dword [esp + 0x10], eax
cmp edi, 0x43
jne 0x40e950
mov dword [esp + 0x14], 0x4a3c3c
lea ebp, [edi - 0x40]
lea ebx, [edi - 0x3b]
jmp 0x40e6cf
mov ecx, dword [esp + 0x1c]
push ecx
push 0x4a3a9c
push str.Incorrect__s_at_offset__d
lea edx, [esp + 0x40]
mov dword [esp + 0x20], 0x4a3ba8
mov ebp, 1
call fcn.0040f920
mov edx, dword [esp + 0x2c]
add esp, 0xc
add edx, 0x10
push edx
lea eax, [esp + 0x38]
call fcn.00403460
or ebx, 0xffffffff
jmp 0x40e6cf
test al, 0x20
je 0x40e6cf
cmp edi, 0x3c
jne 0x40e9a8
or dword [esp + 0x10], 1
jmp 0x40e6cf
cmp edi, 0x3e
jne 0x40e6cf
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
sub eax, dword [edx + 0xc]
lea ebx, [edi + 2]
sar eax, 1
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
inc eax
mov dword [ecx + 8], eax
mov ecx, dword [esp + 0x20]
sub eax, dword [ecx + 4]
mov dword [ecx], ebx
mov dword [ecx + 8], eax
mov eax, ebx
mov ecx, dword [esp + 0x354]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00470f4c
add esp, 0x348
ret
cmp edi, 0x3c
jne 0x40ea0a
mov dword [esp + 0x10], 1
jmp 0x40e6cf
push edi
push str.__t_n_r
mov ebx, 4
call fcn.00471e35
add esp, 8
test eax, eax
je 0x40e6bd
mov dword [esp + 0x10], 0x10
jmp 0x40e6cf
test ebx, ebx
jne 0x40ea3d
mov eax, str.Element_end_tag
jmp 0x40ea66
cmp ebx, 8
jne 0x40ea49
mov eax, str.CDATA_Section
jmp 0x40ea66
cmp ebx, 0x10
jne 0x40ea55
mov eax, str.Processing_instruction
jmp 0x40ea66
cmp ebx, 0x20
jne 0x40ea66
mov eax, str.Comment
jmp 0x40ea66
mov eax, str.Doctype
mov esi, dword [esp + 0x20]
mov ecx, dword [esi + 4]
push ecx
push eax
push str._s_at_offset__d_unterminated
lea edx, [esp + 0x40]
or ebx, 0xffffffff
call fcn.0040f920
add esp, 0xc
add esi, 0x10
push esi
lea eax, [esp + 0x38]
call fcn.00403460
jmp 0x40e9c5
sub edx, dword [ecx + 0xc]
sar edx, 1
dec edx
mov dword [esp + 0x1c], edx
jmp 0x40e9c5
sub edx, dword [ecx + 0xc]
mov ebx, 4
sar edx, 1
dec edx
mov dword [esp + 0x1c], edx
jmp 0x40e9c5