Function at 0x40ce10
Capabilities:
Parse credit card information

Disassembly:
sub esp, 0x348
mov eax, dword [0x58c950]
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 0x40ce78
mov dword [edi + 8], esi
mov dword [edi], esi
lea eax, [esi - 2]
jmp 0x40d45f
movzx edi, ax
test edi, edi
je 0x40d169
test esi, esi
je 0x40cef1
push edi
push str.__t_n_r__
call fcn.00510a2e
add esp, 8
test eax, eax
je 0x40d14f
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 0x40cecd
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 0x40cef9
push eax
lea eax, [ecx + esi*2]
mov esi, dword [esp + 0x24]
add esi, 0x10
call fcn.00404060
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
xor esi, esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], esi
jmp 0x40cef9
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
cmp dword [esp + 0x14], 0
je 0x40d109
cmp edi, 0x3e
jne 0x40cfbb
mov eax, dword [esp + 0x10]
test al, 0xc0
jne 0x40cfd6
sub edx, dword [ecx + 0xc]
sar edx, 1
mov dword [esp + 0x1c], edx
cmp ebp, 1
jne 0x40cf68
mov dword [esp + 0x14], 0
cmp ebx, ebp
jne 0x40cfae
cmp dword [esp + 0x28], 0x2f
jne 0x40cfae
cmp dword [esp + 0x2c], 0
je 0x40cf5b
mov ecx, dword [esp + 0x2c]
push ecx
push 0x56a3bc
call fcn.00510a2e
add esp, 8
test eax, eax
mov eax, dword [esp + 0x10]
je 0x40cfae
mov ecx, dword [esp + 0x20]
or dword [ecx + 0xc], 0x10000
jmp 0x40cfae
cmp edx, ebp
jle 0x40d14f
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 0x40cfa2
mov dx, word [eax]
mov di, word [ecx + eax]
add eax, 2
cmp dx, di
je 0x40cf87
jmp 0x40d14f
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], 0
test al, 0x20
je 0x40d445
jmp 0x40d14f
cmp edi, 0x3c
jne 0x40cfd2
cmp ebx, 2
je 0x40d515
cmp ebx, 0xffffffff
je 0x40d515
mov eax, dword [esp + 0x10]
test bl, 1
je 0x40d0de
test al, 0xc0
je 0x40d033
cmp edi, 0x22
jne 0x40d00a
test al, al
jns 0x40d0d0
xor eax, 0x80
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edi
jmp 0x40d14f
cmp edi, 0x27
jne 0x40d0d0
test al, 0x40
je 0x40d0d0
xor eax, 0x40
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edi
jmp 0x40d14f
cmp edi, 0x22
jne 0x40d05d
test eax, 0x100
je 0x40d0d0
xor eax, 0x180
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edi
jmp 0x40d14f
cmp edi, 0x27
jne 0x40d083
test eax, 0x100
je 0x40d0d0
xor eax, 0x140
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edi
jmp 0x40d14f
cmp edi, 0x3d
jne 0x40d0af
cmp dword [esp + 0x28], edi
je 0x40d0af
test eax, 0x100
jne 0x40d0b6
xor eax, 0x100
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edi
jmp 0x40d14f
test eax, 0x100
je 0x40d0d0
push edi
push str.__t_n_r
call fcn.00510a2e
add esp, 8
test eax, eax
jne 0x40d0d0
xor dword [esp + 0x10], 0x100
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edi
jmp 0x40d14f
test bl, 0x40
je 0x40d14f
cmp edi, 0x22
jne 0x40d0f7
test al, 0x40
jne 0x40d14f
xor eax, 0x80
mov dword [esp + 0x10], eax
jmp 0x40d14f
cmp edi, 0x27
jne 0x40d14f
test al, al
js 0x40d14f
xor eax, 0x40
mov dword [esp + 0x10], eax
jmp 0x40d14f
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40d478
test al, 0x10
je 0x40d1b1
cmp edi, 0x3c
je 0x40d524
push edi
push str.__t_n_r
call fcn.00510a2e
add esp, 8
test eax, eax
jne 0x40d14f
xor dword [esp + 0x10], 0x10
mov ebx, 2
mov dword [esp + 0x14], 0x56a3cc
mov ebp, 1
add dword [esp + 0x18], 2
mov eax, dword [esp + 0x18]
movzx edi, word [eax]
test edi, edi
jne 0x40ce83
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 0x40d445
cmp ebx, 2
je 0x40d445
test byte [esp + 0x10], 0x20
mov eax, 0x56a2c4
jne 0x40d4e1
cmp ebx, 0x40
je 0x40d4e1
cmp ebx, 1
jne 0x40d4b2
mov eax, str.Element_tag
jmp 0x40d4e6
test al, 1
je 0x40d298
xor eax, 1
mov dword [esp + 0x10], eax
cmp edi, 0x60
ja 0x40d27d
cmp edi, 0x40
jbe 0x40d1d7
cmp edi, 0x5b
jb 0x40d27d
cmp edi, 0x5f
je 0x40d27d
cmp edi, 0x3a
je 0x40d27d
cmp edi, 0x2f
jne 0x40d205
mov esi, edx
sub esi, dword [ecx + 0xc]
xor ebx, ebx
sar esi, 1
mov dword [esp + 0x14], 0x56a3d0
inc esi
jmp 0x40d14a
cmp edi, 0x21
jne 0x40d216
or eax, 2
mov dword [esp + 0x10], eax
jmp 0x40d14f
cmp edi, 0x3f
jne 0x40d236
mov esi, edx
sub esi, dword [ecx + 0xc]
mov dword [esp + 0x14], 0x56a090
sar esi, 1
lea ebp, [edi - 0x3d]
lea ebx, [edi - 0x2f]
inc esi
jmp 0x40d14f
mov ecx, dword [esp + 0x1c]
push ecx
push 0x56a3d4
push str.Incorrect__s_at_offset__d
lea edx, [esp + 0x108]
mov dword [esp + 0x20], 0x56a3d0
mov ebp, 1
call fcn.0040b370
mov edx, dword [esp + 0x2c]
add esp, 0xc
add edx, 0x10
push edx
lea eax, [esp + 0x100]
call fcn.00408e40
or ebx, 0xffffffff
jmp 0x40d14f
mov esi, edx
sub esi, dword [ecx + 0xc]
mov ebp, 1
mov dword [esp + 0x14], 0x56a3d0
mov ebx, ebp
sar esi, 1
jmp 0x40d14f
test al, 2
je 0x40d343
xor eax, 2
mov dword [esp + 0x10], eax
cmp edi, 0x2d
jne 0x40d2b8
or eax, 4
mov dword [esp + 0x10], eax
jmp 0x40d14f
cmp edi, 0x5b
jne 0x40d2cd
test al, 0x20
jne 0x40d2e2
or eax, 8
mov dword [esp + 0x10], eax
jmp 0x40d14f
cmp edi, 0x44
jne 0x40d2e2
test al, 0x20
jne 0x40d2e2
or eax, 0x20
mov dword [esp + 0x10], eax
jmp 0x40d14f
push edi
push 0x56a430
call fcn.00510a2e
add esp, 8
mov dword [esp + 0x14], 0x56a3d0
mov ebp, 1
test eax, eax
je 0x40d309
lea ebx, [ebp + 0x3f]
jmp 0x40d14f
mov eax, dword [esp + 0x1c]
push eax
push str.__tag
push str.Incorrect__s_at_offset__d
lea edx, [esp + 0x298]
call fcn.0040b370
mov ecx, dword [esp + 0x2c]
add esp, 0xc
add ecx, 0x10
push ecx
lea eax, [esp + 0x290]
call fcn.00408e40
or ebx, 0xffffffff
jmp 0x40d14f
test al, 4
je 0x40d3ad
xor eax, 4
mov dword [esp + 0x10], eax
cmp edi, 0x2d
jne 0x40d366
mov dword [esp + 0x14], 0x56a444
lea ebp, [edi - 0x2a]
lea ebx, [edi - 0xd]
jmp 0x40d14f
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], 0x56a3d0
mov ebp, 1
call fcn.0040b370
mov eax, dword [esp + 0x2c]
add eax, 0x10
add esp, 0xc
push eax
lea eax, [esp + 0x1c8]
call fcn.00408e40
or ebx, 0xffffffff
jmp 0x40d14f
test al, 8
je 0x40d411
xor eax, 8
mov dword [esp + 0x10], eax
cmp edi, 0x43
jne 0x40d3d0
mov dword [esp + 0x14], 0x56a464
lea ebp, [edi - 0x40]
lea ebx, [edi - 0x3b]
jmp 0x40d14f
mov ecx, dword [esp + 0x1c]
push ecx
push 0x56a2c4
push str.Incorrect__s_at_offset__d
lea edx, [esp + 0x40]
mov dword [esp + 0x20], 0x56a3d0
mov ebp, 1
call fcn.0040b370
mov edx, dword [esp + 0x2c]
add esp, 0xc
add edx, 0x10
push edx
lea eax, [esp + 0x38]
call fcn.00408e40
or ebx, 0xffffffff
jmp 0x40d14f
test al, 0x20
je 0x40d14f
cmp edi, 0x3c
jne 0x40d428
or dword [esp + 0x10], 1
jmp 0x40d14f
cmp edi, 0x3e
jne 0x40d14f
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.0050e8a6
add esp, 0x348
ret
cmp edi, 0x3c
jne 0x40d48a
mov dword [esp + 0x10], 1
jmp 0x40d14f
push edi
push str.__t_n_r
mov ebx, 4
call fcn.00510a2e
add esp, 8
test eax, eax
je 0x40d13d
mov dword [esp + 0x10], 0x10
jmp 0x40d14f
test ebx, ebx
jne 0x40d4bd
mov eax, str.Element_end_tag
jmp 0x40d4e6
cmp ebx, 8
jne 0x40d4c9
mov eax, str.CDATA_Section
jmp 0x40d4e6
cmp ebx, 0x10
jne 0x40d4d5
mov eax, str.Processing_instruction
jmp 0x40d4e6
cmp ebx, 0x20
jne 0x40d4e6
mov eax, str.Comment
jmp 0x40d4e6
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.0040b370
add esp, 0xc
add esi, 0x10
push esi
lea eax, [esp + 0x38]
call fcn.00408e40
jmp 0x40d445
sub edx, dword [ecx + 0xc]
sar edx, 1
dec edx
mov dword [esp + 0x1c], edx
jmp 0x40d445
sub edx, dword [ecx + 0xc]
mov ebx, 4
sar edx, 1
dec edx
mov dword [esp + 0x1c], edx
jmp 0x40d445