Function at 0x418020
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
xor eax, eax
xor ebx, ebx
push esi
mov esi, ecx
mov dword [esp + 0x14], eax
mov ecx, dword [ebp + 8]
or edx, 0xffffffff
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 8]
mov dword [ecx + 4], eax
mov dword [ecx + 0xc], ebx
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0xc]
push edi
xor edi, edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edx
lea ecx, [eax + ecx*2]
mov dword [esp + 0x24], edi
movzx esi, word [ecx]
mov dword [esp + 0x1c], ecx
test esi, esi
jne 0x41813c
mov eax, ecx
mov ecx, dword [esp + 0x20]
sub eax, dword [ecx + 0xc]
sar eax, 1
mov dword [ecx + 8], eax
mov ecx, dword [ecx + 0x1c]
test ecx, ecx
je 0x4187b2
mov eax, dword [ecx + 0xcc]
mov dword [esp + 0x34], eax
call fcn.00417780
test al, al
je 0x418117
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x20]
mov edx, dword [eax + 0x1c]
mov esi, dword [eax + 8]
sub esi, ecx
mov eax, dword [edx + 0xcc]
test eax, eax
je 0x4180df
mov edx, dword [ebp + 8]
sub ecx, eax
mov dword [edx + 4], ecx
test edi, edi
je 0x418105
sub edi, eax
mov dword [esp + 0x24], edi
mov ecx, dword [esp + 0x20]
sub dword [ecx + 8], eax
mov edx, dword [ecx + 0x1c]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov eax, dword [edx + 0x50]
add ecx, esi
cmp dword [eax + 0x14], 8
jb 0x4180f2
mov eax, dword [eax]
mov edx, dword [esp + 0x20]
mov dword [edx + 0xc], eax
lea eax, [eax + ecx*2]
movzx esi, word [eax]
mov dword [esp + 0x1c], eax
jmp 0x41811b
cmp dword [esp + 0x2c], 0
je 0x4180d5
mov ecx, dword [esp + 0x20]
sub dword [ecx], eax
sub dword [ecx + 4], eax
jmp 0x4180d9
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x41812c
mov eax, dword [edx + 0x1c]
mov dword [eax + 0xcc], ecx
mov edx, dword [esp + 0x10]
test esi, esi
je 0x4187b2
mov ecx, dword [esp + 0x1c]
test edi, edi
je 0x418184
lea eax, [esi - 9]
cmp eax, 0x35
ja 0x4187aa
cmp byte [esi + 0x5d9f93], 0
je 0x4187aa
mov eax, ecx
mov ecx, dword [esp + 0x20]
sub eax, dword [ecx + 0xc]
sar eax, 1
mov dword [esp + 0x2c], eax
dec eax
sub dword [esp + 0x2c], edi
mov dword [ecx], edi
xor edi, edi
mov dword [ecx + 4], eax
xor eax, eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], eax
jmp 0x418188
mov ecx, dword [esp + 0x20]
cmp dword [esp + 0x14], 0
je 0x418450
cmp esi, 0x3e
jne 0x418295
test bl, 0xc0
jne 0x4182ac
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
sub ecx, dword [esi + 0xc]
sar ecx, 1
lea eax, [ecx + 1]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x18]
cmp eax, 1
jne 0x418209
mov dword [esp + 0x14], 0
cmp edx, eax
jne 0x41825c
cmp dword [esp + 0x28], 0x2f
jne 0x41825c
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x4181fd
test ebx, 0x200
je 0x4181fd
lea eax, [ecx - 9]
cmp eax, 0x1e
ja 0x41825c
cmp byte [ecx + 0x5d9fcb], 0
je 0x41825c
mov eax, dword [ebp + 8]
or dword [eax + 0xc], 0x10000
jmp 0x41825c
cmp ecx, eax
jle 0x41827b
mov edx, dword [esp + 0x1c]
add eax, eax
mov edi, dword [esp + 0x14]
sub edx, eax
mov esi, dword [esp + 0x18]
add edx, 2
sub edi, edx
sub esi, 1
je 0x418250
movzx ecx, word [edx]
mov ax, word [edi + edx]
add edx, 2
cmp cx, ax
je 0x418222
mov ecx, dword [esp + 0x1c]
and ebx, 0xfffffdff
mov edx, dword [esp + 0x10]
add ecx, 2
mov edi, dword [esp + 0x24]
jmp 0x41806c
mov edx, dword [esp + 0x10]
mov dword [esp + 0x14], 0
and ebx, 0xfffffdff
test bl, 0x20
je 0x418885
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
add ecx, 2
jmp 0x41806c
mov ecx, dword [esp + 0x1c]
and ebx, 0xfffffdff
mov esi, dword [esp + 0x14]
add ecx, 2
mov dword [esp + 0x14], esi
jmp 0x41806c
cmp esi, 0x3c
jne 0x4182ac
cmp edx, 2
je 0x418860
cmp edx, 0xffffffff
je 0x418860
test dl, 1
je 0x418407
test ebx, 0x2c0
je 0x418350
cmp esi, 0x22
jne 0x4182e8
test bl, bl
jns 0x41830d
mov eax, dword [esp + 0x28]
xor ebx, 0x80
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x30], eax
add ecx, 2
mov dword [esp + 0x28], esi
jmp 0x41806c
cmp esi, 0x27
jne 0x41830d
test bl, 0x40
je 0x41830d
mov eax, dword [esp + 0x28]
xor ebx, 0x40
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x30], eax
add ecx, 2
mov dword [esp + 0x28], esi
jmp 0x41806c
test ebx, 0x200
je 0x4183ef
lea eax, [esi - 9]
cmp eax, 0x17
ja 0x4183ef
cmp byte [esi + 0x5d9c27], 0
je 0x4183ef
mov eax, dword [esp + 0x28]
xor ebx, 0x200
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x30], eax
add ecx, 2
mov dword [esp + 0x28], esi
jmp 0x41806c
mov eax, ebx
and eax, 0x100
cmp esi, 0x22
jne 0x41837e
test eax, eax
je 0x41837e
mov eax, dword [esp + 0x28]
xor ebx, 0x180
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x30], eax
add ecx, 2
mov dword [esp + 0x28], esi
jmp 0x41806c
cmp esi, 0x27
jne 0x4183a5
test eax, eax
je 0x4183ef
mov eax, dword [esp + 0x28]
xor ebx, 0x140
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x30], eax
add ecx, 2
mov dword [esp + 0x28], esi
jmp 0x41806c
cmp esi, 0x3d
jne 0x4183d2
cmp dword [esp + 0x28], esi
je 0x4183d2
test eax, eax
jne 0x4183e9
mov eax, dword [esp + 0x28]
xor ebx, 0x100
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x30], eax
add ecx, 2
mov dword [esp + 0x28], esi
jmp 0x41806c
test eax, eax
je 0x4183ef
cmp esi, 9
jb 0x4183e9
cmp esi, 0x20
ja 0x4183e9
cmp byte [esi + 0x5d9c27], 0
jne 0x4183ef
xor ebx, 0x300
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x30], eax
add ecx, 2
mov dword [esp + 0x28], esi
jmp 0x41806c
test dl, 0x40
je 0x4187a6
cmp esi, 0x22
jne 0x418430
test bl, 0x40
jne 0x4187a6
mov ecx, dword [esp + 0x1c]
xor ebx, 0x80
add ecx, 2
jmp 0x41806c
cmp esi, 0x27
jne 0x4187a6
test bl, bl
js 0x4187a6
mov ecx, dword [esp + 0x1c]
xor ebx, 0x40
add ecx, 2
jmp 0x41806c
test ebx, ebx
je 0x418750
test bl, 0x10
je 0x4184ae
cmp esi, 0x3c
je 0x418872
lea eax, [esi - 9]
cmp eax, 0x17
ja 0x41847b
movsx ecx, byte [esi + 0x5d9c27]
test ecx, ecx
jne 0x418496
jmp 0x41847d
xor ecx, ecx
mov edx, 2
mov dword [esp + 0x14], 0x5d9ff4
mov dword [esp + 0x18], 1
mov dword [esp + 0x10], edx
mov eax, ebx
xor eax, 0x10
test ecx, ecx
mov ecx, dword [esp + 0x1c]
cmovne eax, ebx
add ecx, 2
mov ebx, eax
jmp 0x41806c
test bl, 1
je 0x4185b8
xor ebx, 1
cmp esi, 0x60
ja 0x418599
cmp esi, 0x40
jbe 0x4184d1
cmp esi, 0x5b
jb 0x418599
cmp esi, 0x5f
je 0x418599
cmp esi, 0x3a
je 0x418599
cmp esi, 0x2f
jne 0x418505
mov edi, dword [esp + 0x1c]
xor edx, edx
sub edi, dword [ecx + 0xc]
sar edi, 1
inc edi
mov dword [esp + 0x14], 0x5d9ff8
mov dword [esp + 0x24], edi
jmp 0x41879a
cmp esi, 0x21
jne 0x418519
mov ecx, dword [esp + 0x1c]
or ebx, 2
add ecx, 2
jmp 0x41806c
cmp esi, 0x3f
jne 0x41854f
mov edi, dword [esp + 0x1c]
lea edx, [esi - 0x2f]
sub edi, dword [ecx + 0xc]
mov ecx, dword [esp + 0x1c]
sar edi, 1
inc edi
mov dword [esp + 0x14], 0x5d9ffc
mov dword [esp + 0x18], 2
add ecx, 2
mov dword [esp + 0x24], edi
mov dword [esp + 0x10], edx
jmp 0x41806c
push 0xffffffffffffffff
push dword [ecx + 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 + 0x28], 1
mov dword [esp + 0x24], 0x5d9ff8
lea ecx, [ecx + 0x10]
call fcn.00414d30
mov ecx, dword [esp + 0x2c]
or edx, 0xffffffff
add esp, 0x10
mov dword [esp + 0x10], edx
add ecx, 2
jmp 0x41806c
mov edi, dword [esp + 0x1c]
mov edx, 1
sub edi, dword [ecx + 0xc]
sar edi, 1
mov dword [esp + 0x14], 0x5d9ff8
mov dword [esp + 0x24], edi
jmp 0x41879a
test bl, 2
je 0x41867b
xor ebx, 2
cmp esi, 0x2d
jne 0x4185d8
mov ecx, dword [esp + 0x1c]
or ebx, 4
add ecx, 2
jmp 0x41806c
test bl, 0x20
je 0x418637
lea eax, [esi - 0x41]
cmp eax, 0xd
ja 0x418600
cmp byte [esi + 0x5d9fe7], 0
je 0x418600
mov edx, 0x40
mov dword [esp + 0x14], 0x5d9ff8
jmp 0x41879a
push 0xffffffffffffffff
push dword [ecx + 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.00414d30
add esp, 0x10
mov dword [esp + 0x14], 0x5d9ff8
or edx, 0xffffffff
jmp 0x41879a
cmp esi, 0x5b
jne 0x41864b
mov ecx, dword [esp + 0x1c]
or ebx, 8
add ecx, 2
jmp 0x41806c
cmp esi, 0x44
jne 0x41865f
mov ecx, dword [esp + 0x1c]
or ebx, 0x20
add ecx, 2
jmp 0x41806c
push 0xffffffffffffffff
push dword [ecx + 8]
push ecx
mov eax, esp
push ecx
mov dword [eax], 0
mov eax, esp
mov dword [eax], str.exclamation_tag_syntax
jmp 0x418566
test bl, 4
je 0x4186c9
xor ebx, 4
cmp esi, 0x2d
jne 0x4186ad
mov ecx, dword [esp + 0x1c]
mov edx, 0x20
mov dword [esp + 0x14], 0x5da090
add ecx, 2
mov dword [esp + 0x18], 3
mov dword [esp + 0x10], edx
jmp 0x41806c
push 0xffffffffffffffff
push dword [ecx + 8]
push ecx
mov eax, esp
push ecx
mov dword [eax], 0
mov eax, esp
mov dword [eax], str.comment_tag_syntax
jmp 0x418566
test bl, 8
je 0x418717
xor ebx, 8
cmp esi, 0x43
jne 0x4186fb
mov ecx, dword [esp + 0x1c]
mov edx, 8
mov dword [esp + 0x14], 0x5da0c0
add ecx, 2
mov dword [esp + 0x18], 3
mov dword [esp + 0x10], edx
jmp 0x41806c
push 0xffffffffffffffff
push dword [ecx + 8]
push ecx
mov eax, esp
push ecx
mov dword [eax], 0
mov eax, esp
mov dword [eax], str.cdata_section_syntax
jmp 0x418566
test bl, 0x20
je 0x4187a6
cmp esi, 0x3c
jne 0x418734
mov ecx, dword [esp + 0x1c]
or ebx, 1
add ecx, 2
jmp 0x41806c
cmp esi, 0x3e
jne 0x4187a6
mov eax, dword [esp + 0x1c]
mov esi, 0x40
sub eax, dword [ecx + 0xc]
sar eax, 1
inc eax
mov dword [ecx + 8], eax
jmp 0x41888d
cmp esi, 0x3c
jne 0x418764
mov ecx, dword [esp + 0x1c]
lea ebx, [esi - 0x3b]
add ecx, 2
jmp 0x41806c
lea eax, [esi - 9]
mov edx, 4
mov dword [esp + 0x10], edx
cmp eax, 0x17
ja 0x41878d
cmp byte [esi + 0x5d9c27], 0
je 0x41878d
mov ecx, dword [esp + 0x1c]
lea ebx, [edx + 0xc]
add ecx, 2
jmp 0x41806c
mov dword [esp + 0x14], 0x5d9ff4
mov edx, 2
mov dword [esp + 0x18], 1
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0x1c]
add ecx, 2
jmp 0x41806c
mov edi, dword [ebp + 8]
mov ecx, dword [esp + 0x20]
mov eax, dword [edi + 4]
cmp dword [ecx + 8], eax
jne 0x4187dc
mov dword [edi + 8], 0
mov eax, 0xfffffffe
mov dword [edi], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp edx, 4
je 0x41886c
cmp edx, 2
je 0x41886c
mov ecx, 0x5d9ec8
test bl, 0x20
jne 0x418838
cmp edx, 0x40
je 0x418838
cmp edx, 1
jne 0x418809
mov ecx, str.start_tag
jmp 0x41883d
test edx, edx
jne 0x418814
mov ecx, str.end_tag
jmp 0x41883d
cmp edx, 8
jne 0x418820
mov ecx, str.cdata_section
jmp 0x41883d
cmp edx, 0x10
jne 0x41882c
mov ecx, str.processing_instruction
jmp 0x41883d
cmp edx, 0x20
jne 0x41883d
mov ecx, str.comment
jmp 0x41883d
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
lea ecx, [edi + 0x10]
mov dword [eax], str.unterminated_tag_syntax
call fcn.00414d30
add esp, 0x10
jmp 0x418889
mov eax, dword [esp + 0x1c]
sub eax, dword [ecx + 0xc]
sar eax, 1
mov dword [ecx + 8], eax
mov esi, dword [esp + 0x10]
jmp 0x41888d
mov eax, dword [esp + 0x1c]
mov esi, 4
sub eax, dword [ecx + 0xc]
sar eax, 1
mov dword [ecx + 8], eax
jmp 0x41888d
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov eax, dword [ebp + 8]
mov ecx, dword [ecx + 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