Function at 0x415940
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push ebx
xor edx, edx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 8]
mov dword [eax + 4], ecx
mov dword [eax + 0xc], edx
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0xc]
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
or ebx, 0xffffffff
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], edx
lea eax, [ecx + eax*2]
mov dword [ebp - 0x10], eax
lea ecx, [ecx]
movzx esi, word [eax]
cmp esi, edx
jne 0x415a18
sub eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x1c]
sar eax, 1
cmp ecx, edx
mov dword [edi + 8], eax
je 0x41609e
mov edx, dword [ecx + 0xd4]
mov dword [ebp - 0x24], edx
call fcn.004157b0
test al, al
je 0x41609e
mov esi, dword [ebp + 8]
mov eax, dword [edi + 0x1c]
mov ecx, dword [esi + 4]
mov edx, dword [edi + 8]
mov eax, dword [eax + 0xd4]
sub edx, ecx
sub eax, dword [ebp - 0x24]
je 0x4159eb
sub ecx, eax
cmp dword [ebp - 0x14], 0
mov dword [esi + 4], ecx
je 0x4159dd
sub dword [ebp - 0x14], eax
jmp 0x4159e8
cmp dword [ebp - 0x20], 0
je 0x4159e8
sub dword [edi], eax
sub dword [edi + 4], eax
sub dword [edi + 8], eax
mov ecx, dword [edi + 0x1c]
mov eax, dword [esi + 4]
mov ecx, dword [ecx + 0x58]
add eax, edx
cmp dword [ecx + 0x18], 8
jb 0x415a01
mov ecx, dword [ecx + 4]
jmp 0x415a04
add ecx, 4
lea eax, [ecx + eax*2]
mov dword [edi + 0xc], ecx
movzx esi, word [eax]
test esi, esi
mov dword [ebp - 0x10], eax
je 0x41609e
cmp dword [ebp - 0x14], 0
je 0x415a66
push esi
push str.__t_n_r__
call dword [sym.imp.MSVCR80.dll_wcschr]
add esp, 8
test eax, eax
je 0x415a59
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov eax, ecx
sub eax, dword [edi + 0xc]
mov dword [edi], edx
sar eax, 1
sub eax, edx
lea edx, [eax + edx - 1]
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [edi + 4], edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
jmp 0x415a69
mov eax, dword [ebp - 0x10]
add eax, 2
xor edx, edx
jmp 0x41597a
mov ecx, dword [ebp - 0x10]
cmp dword [ebp - 8], 0
je 0x415cda
cmp esi, 0x3e
jne 0x415b46
mov edx, dword [ebp - 4]
test dl, 0xc0
jne 0x415b60
sub ecx, dword [edi + 0xc]
sar ecx, 1
lea eax, [ecx + 1]
mov ecx, dword [ebp - 0xc]
cmp ecx, 1
mov dword [edi + 8], eax
jne 0x415adf
cmp ebx, ecx
mov dword [ebp - 8], 0
jne 0x415b2f
cmp dword [ebp - 0x18], 0x2f
jne 0x415b2f
cmp dword [ebp - 0x1c], 0
je 0x415ad3
mov eax, dword [ebp - 0x1c]
push eax
push str.__t_n_r_
call dword [sym.imp.MSVCR80.dll_wcschr]
mov edx, dword [ebp - 4]
add esp, 8
test eax, eax
je 0x415b2f
mov eax, dword [ebp + 8]
or dword [eax + 0xc], 0x10000
jmp 0x415b2f
add eax, 0xffffffff
cmp eax, ecx
jle 0x415d1c
mov ecx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
lea eax, [ecx + ecx]
sub esi, eax
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 8]
lea eax, [esi + 2]
sub ecx, eax
jmp 0x415b05
mov edx, dword [ebp - 4]
sub dword [ebp - 0x24], 1
je 0x415b28
mov dx, word [eax]
mov si, word [eax + ecx]
add eax, 2
cmp dx, si
je 0x415b02
add dword [ebp - 0x10], 2
mov eax, dword [ebp - 0x10]
xor edx, edx
jmp 0x415980
mov dword [ebp - 8], 0
test dl, 0x20
je 0x41603a
add dword [ebp - 0x10], 2
mov eax, dword [ebp - 0x10]
xor edx, edx
jmp 0x415980
cmp esi, 0x3c
jne 0x415b5d
cmp ebx, 2
je 0x41614f
cmp ebx, 0xffffffff
je 0x41614f
mov edx, dword [ebp - 4]
test bl, 1
je 0x415c93
test dl, 0xc0
je 0x415bca
cmp esi, 0x22
jne 0x415b9b
test dl, dl
jns 0x415c7c
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], 2
xor edx, 0x80
mov dword [ebp - 4], edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], esi
xor edx, edx
jmp 0x415980
cmp esi, 0x27
jne 0x415c7c
test dl, 0x40
je 0x415c7c
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], 2
xor edx, 0x40
mov dword [ebp - 4], edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], esi
xor edx, edx
jmp 0x415980
cmp esi, 0x22
jne 0x415bfb
test edx, 0x100
je 0x415c7c
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], 2
xor edx, 0x180
mov dword [ebp - 4], edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], esi
xor edx, edx
jmp 0x415980
cmp esi, 0x27
jne 0x415c28
test edx, 0x100
je 0x415c7c
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], 2
xor edx, 0x140
mov dword [ebp - 4], edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], esi
xor edx, edx
jmp 0x415980
cmp esi, 0x3d
jne 0x415c5a
cmp dword [ebp - 0x18], esi
je 0x415c5a
test edx, 0x100
jne 0x415c62
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], 2
xor edx, 0x100
mov dword [ebp - 4], edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], esi
xor edx, edx
jmp 0x415980
test edx, 0x100
je 0x415c7c
push esi
push str.__t_n_r
call dword [sym.imp.MSVCR80.dll_wcschr]
add esp, 8
test eax, eax
jne 0x415c7c
xor dword [ebp - 4], 0x100
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], 2
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], esi
xor edx, edx
jmp 0x415980
test bl, 0x40
je 0x415d1c
cmp esi, 0x22
jne 0x415cbd
test dl, 0x40
jne 0x415d1c
add dword [ebp - 0x10], 2
mov eax, dword [ebp - 0x10]
xor edx, 0x80
mov dword [ebp - 4], edx
xor edx, edx
jmp 0x415980
cmp esi, 0x27
jne 0x415d1c
test dl, dl
js 0x415d1c
add dword [ebp - 0x10], 2
mov eax, dword [ebp - 0x10]
xor edx, 0x40
mov dword [ebp - 4], edx
xor edx, edx
jmp 0x415980
mov eax, dword [ebp - 4]
test eax, eax
je 0x416053
test al, 0x10
je 0x415d2a
cmp esi, 0x3c
je 0x41615c
push esi
push str.__t_n_r
call dword [sym.imp.MSVCR80.dll_wcschr]
add esp, 8
test eax, eax
jne 0x415d1c
xor dword [ebp - 4], 0x10
mov ebx, 2
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 0x421ac4
add dword [ebp - 0x10], 2
mov eax, dword [ebp - 0x10]
xor edx, edx
jmp 0x415980
test al, 1
je 0x415e1d
mov edx, 1
xor eax, edx
cmp esi, 0x60
mov dword [ebp - 4], eax
ja 0x415dfb
cmp esi, 0x40
jbe 0x415d53
cmp esi, 0x5b
jb 0x415dfb
cmp esi, 0x5f
je 0x415dfb
cmp esi, 0x3a
je 0x415dfb
cmp esi, 0x2f
jne 0x415d90
add dword [ebp - 0x10], 2
mov eax, ecx
sub eax, dword [edi + 0xc]
mov dword [ebp - 0xc], edx
sar eax, 1
add eax, edx
xor ebx, ebx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], 0x421ab0
xor edx, edx
jmp 0x415980
cmp esi, 0x21
jne 0x415da9
add dword [ebp - 0x10], 2
or eax, 2
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
xor edx, edx
jmp 0x415980
cmp esi, 0x3f
jne 0x415dd9
add dword [ebp - 0x10], 2
mov eax, ecx
sub eax, dword [edi + 0xc]
mov dword [ebp - 8], 0x421ad0
sar eax, 1
add eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], 2
lea ebx, [esi - 0x2f]
xor edx, edx
jmp 0x415980
mov ecx, dword [edi + 8]
push 0xffffffffffffffff
push ecx
push 0
push ecx
mov eax, esp
mov dword [eax], 0
push ecx
mov eax, esp
mov dword [ebp - 0xc], edx
mov dword [eax], str.first_tag_syntax
jmp 0x415f64
sub ecx, dword [edi + 0xc]
add dword [ebp - 0x10], 2
mov eax, dword [ebp - 0x10]
sar ecx, 1
mov dword [ebp - 0xc], edx
mov ebx, edx
mov dword [ebp - 8], 0x421ab0
mov dword [ebp - 0x14], ecx
xor edx, edx
jmp 0x415980
test al, 2
je 0x415f15
xor eax, 2
cmp esi, 0x2d
mov dword [ebp - 4], eax
jne 0x415e44
add dword [ebp - 0x10], 2
or eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
xor edx, edx
jmp 0x415980
test al, 0x20
je 0x415e9b
push esi
push 0x421f14
call dword [sym.imp.MSVCR80.dll_wcschr]
add esp, 8
test eax, eax
mov dword [ebp - 8], 0x421ab0
mov dword [ebp - 0xc], 1
je 0x415e7c
add dword [ebp - 0x10], 2
mov eax, dword [ebp - 0x10]
mov ebx, 0x40
xor edx, edx
jmp 0x415980
mov eax, dword [edi + 8]
push 0xffffffffffffffff
push eax
push 0
push ecx
mov eax, esp
mov dword [eax], 0
push ecx
mov eax, esp
mov dword [eax], str.doctype_tag_syntax
jmp 0x415fe1
cmp esi, 0x5b
jne 0x415eb4
add dword [ebp - 0x10], 2
or eax, 8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
xor edx, edx
jmp 0x415980
cmp esi, 0x44
jne 0x415ecd
add dword [ebp - 0x10], 2
or eax, 0x20
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
xor edx, edx
jmp 0x415980
mov edx, dword [edi + 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.exclamation_tag_syntax
mov eax, dword [ebp + 8]
add eax, 0x10
push eax
mov dword [ebp - 8], 0x421ab0
mov dword [ebp - 0xc], 1
call fcn.00414c60
add dword [ebp - 0x10], 2
mov eax, dword [ebp - 0x10]
add esp, 0x18
or ebx, 0xffffffff
xor edx, edx
jmp 0x415980
test al, 4
je 0x415f8b
xor eax, 4
cmp esi, 0x2d
mov dword [ebp - 4], eax
jne 0x415f43
add dword [ebp - 0x10], 2
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], 0x421ac8
mov dword [ebp - 0xc], 3
lea ebx, [esi - 0xd]
xor edx, edx
jmp 0x415980
mov ecx, dword [edi + 8]
push 0xffffffffffffffff
push ecx
push 0
push ecx
mov eax, esp
mov dword [eax], 0
push ecx
mov eax, esp
mov dword [ebp - 0xc], 1
mov dword [eax], str.comment_tag_syntax
mov edx, dword [ebp + 8]
add edx, 0x10
push edx
mov dword [ebp - 8], 0x421ab0
call fcn.00414c60
add dword [ebp - 0x10], 2
mov eax, dword [ebp - 0x10]
add esp, 0x18
or ebx, 0xffffffff
xor edx, edx
jmp 0x415980
test al, 8
je 0x416001
xor eax, 8
cmp esi, 0x43
mov dword [ebp - 4], eax
jne 0x415fb9
add dword [ebp - 0x10], 2
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], 0x421aa8
mov dword [ebp - 0xc], 3
lea ebx, [esi - 0x3b]
xor edx, edx
jmp 0x415980
mov eax, dword [edi + 8]
push 0xffffffffffffffff
push eax
push 0
push ecx
mov eax, esp
mov dword [eax], 0
push ecx
mov eax, esp
mov dword [ebp - 8], 0x421ab0
mov dword [ebp - 0xc], 1
mov dword [eax], str.cdata_section_syntax
mov ecx, dword [ebp + 8]
add ecx, 0x10
push ecx
call fcn.00414c60
add dword [ebp - 0x10], 2
mov eax, dword [ebp - 0x10]
add esp, 0x18
or ebx, 0xffffffff
xor edx, edx
jmp 0x415980
test al, 0x20
je 0x415d1c
cmp esi, 0x3c
jne 0x416020
add dword [ebp - 0x10], 2
or dword [ebp - 4], 1
mov eax, dword [ebp - 0x10]
xor edx, edx
jmp 0x415980
cmp esi, 0x3e
jne 0x415d1c
mov eax, dword [ebp - 0x10]
sub eax, dword [edi + 0xc]
lea ebx, [esi + 2]
sar eax, 1
add eax, 1
mov dword [edi + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [edi + 8]
sub ecx, dword [eax + 4]
mov dword [eax], ebx
mov dword [eax + 8], ecx
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp esi, 0x3c
jne 0x41606d
add dword [ebp - 0x10], 2
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 1
xor edx, edx
jmp 0x415980
push esi
push str.__t_n_r
mov ebx, 4
call dword [sym.imp.MSVCR80.dll_wcschr]
add esp, 8
test eax, eax
je 0x415d09
add dword [ebp - 0x10], 2
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 0x10
xor edx, edx
jmp 0x415980
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
cmp dword [edi + 8], edx
jne 0x4160c4
pop edi
pop esi
mov dword [eax + 8], 0
mov dword [eax], 0
mov eax, 0xfffffffe
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp ebx, 4
je 0x41603a
cmp ebx, 2
je 0x41603a
test byte [ebp - 4], 0x20
mov ecx, 0x421e60
jne 0x416121
cmp ebx, 0x40
je 0x416121
cmp ebx, 1
jne 0x4160f2
mov ecx, str.start_tag
jmp 0x416126
test ebx, ebx
jne 0x4160fd
mov ecx, str.end_tag
jmp 0x416126
cmp ebx, 8
jne 0x416109
mov ecx, str.cdata_section
jmp 0x416126
cmp ebx, 0x10
jne 0x416115
mov ecx, str.processing_instruction
jmp 0x416126
cmp ebx, 0x20
jne 0x416126
mov ecx, str.comment
jmp 0x416126
mov ecx, str.document_type
or ebx, 0xffffffff
push ebx
push edx
mov edx, dword [ebp + 8]
push 2
push ecx
mov eax, esp
push ecx
mov dword [eax], ecx
mov eax, esp
add edx, 0x10
push edx
mov dword [eax], str.unterminated_tag_syntax
call fcn.00414c60
add esp, 0x18
jmp 0x41603a
sub ecx, dword [edi + 0xc]
sar ecx, 1
mov dword [edi + 8], ecx
jmp 0x41603a
sub ecx, dword [edi + 0xc]
mov ebx, 4
sar ecx, 1
mov dword [edi + 8], ecx
jmp 0x41603a