Function at 0x405060
Capabilities:
Parse credit card information

Disassembly:
sub esp, 0x20
mov eax, dword [esp + 0x24]
push ebx
push ebp
push esi
mov esi, ecx
xor edx, edx
push edi
xor ebp, ebp
mov ecx, dword [esi + 8]
mov dword [eax + 0xc], edx
mov dword [eax + 4], ecx
mov edi, dword [esi + 0xc]
mov eax, dword [esi + 8]
mov dword [esp + 0x10], edx
add edi, eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x1c], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], edi
movsx ebx, byte [edi]
cmp ebx, edx
jne 0x405147
mov ecx, dword [esi + 0xc]
sub edi, ecx
mov ecx, dword [esi + 0x1c]
cmp ecx, edx
mov dword [esi + 8], edi
je 0x4056fe
mov ebx, dword [ecx + 0xa4]
call fcn.00404a90
test al, al
je 0x4056fe
mov edi, dword [esp + 0x34]
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 8]
mov ecx, dword [edi + 4]
mov eax, dword [eax + 0xa4]
sub edx, ecx
sub eax, ebx
je 0x40511e
sub ecx, eax
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x405105
sub ecx, eax
mov dword [esp + 0x1c], ecx
jmp 0x40511b
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x40511b
mov edi, dword [esi]
mov ecx, dword [esi + 4]
sub edi, eax
sub ecx, eax
mov dword [esi], edi
mov dword [esi + 4], ecx
sub dword [esi + 8], eax
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + 4]
add eax, edx
mov edx, dword [esi + 0x1c]
mov ecx, dword [edx + 0x28]
mov ecx, dword [ecx]
mov dword [esi + 0xc], ecx
movsx ebx, byte [ecx + eax]
lea edi, [ecx + eax]
test ebx, ebx
mov dword [esp + 0x24], edi
je 0x4056fe
xor edx, edx
cmp dword [esp + 0x1c], edx
je 0x405191
movsx edx, bl
push edx
push str.__t_n_r__
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
test eax, eax
je 0x405400
mov eax, dword [esi + 0xc]
mov ecx, edi
sub ecx, eax
mov eax, dword [esp + 0x1c]
sub ecx, eax
mov dword [esi], eax
mov dword [esp + 0x2c], ecx
lea eax, [ecx + eax - 1]
mov dword [esi + 4], eax
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], eax
xor edx, edx
cmp dword [esp + 0x18], edx
je 0x4053b3
cmp ebx, 0x3e
jne 0x405253
mov ecx, dword [esp + 0x10]
test cl, 0xc0
jne 0x4052ac
mov ebx, dword [esi + 0xc]
sub edi, ebx
cmp ebp, 1
lea eax, [edi + 1]
mov dword [esi + 8], eax
jne 0x405203
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], edx
cmp eax, ebp
jne 0x405245
cmp dword [esp + 0x20], 0x2f
jne 0x405245
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4051f6
movsx ecx, al
push ecx
push str.__t_n_r_
call dword [sym.imp.MSVCRT.dll_strchr]
mov ecx, dword [esp + 0x18]
add esp, 8
test eax, eax
je 0x405245
mov eax, dword [esp + 0x34]
or dword [eax + 0xc], 0x10000
jmp 0x405245
dec eax
cmp eax, ebp
jle 0x4053fc
mov edx, dword [esp + 0x24]
lea edi, [ebp - 1]
sub edx, ebp
test edi, edi
lea eax, [edx + 1]
je 0x405239
mov ecx, dword [esp + 0x18]
sub ecx, eax
mov dl, byte [eax]
mov bl, byte [ecx + eax]
inc eax
cmp dl, bl
jne 0x405231
dec edi
jne 0x405222
jmp 0x405239
test edi, edi
jne 0x4053fc
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], 0
test cl, 0x20
je 0x4057f4
jmp 0x4053fc
cmp ebx, 0x3c
jne 0x4052a8
mov eax, dword [esp + 0x14]
cmp eax, 2
je 0x4057c9
cmp eax, 0xffffffff
je 0x4057c9
mov ecx, dword [esp + 0x10]
test al, 1
je 0x405386
test cl, 0xc0
je 0x4052dc
cmp ebx, 0x22
jne 0x4052b2
test cl, 0x80
je 0x405378
xor ecx, 0x80
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], ebx
jmp 0x4053fc
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
jmp 0x405272
cmp ebx, 0x27
jne 0x405378
test cl, 0x40
je 0x405378
xor ecx, 0x40
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], ebx
jmp 0x4053fc
cmp ebx, 0x22
jne 0x405305
test ch, 1
je 0x405378
xor ecx, 0x180
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], ebx
jmp 0x4053fc
cmp ebx, 0x27
jne 0x40532a
test ch, 1
je 0x405378
xor ecx, 0x140
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], ebx
jmp 0x4053fc
cmp ebx, 0x3d
jne 0x405355
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x405355
test ch, 1
jne 0x40535a
xor ecx, 0x100
mov dword [esp + 0x20], ebx
mov dword [esp + 0x10], ecx
mov ecx, eax
mov dword [esp + 0x28], ecx
jmp 0x4053fc
test ch, 1
je 0x405378
movsx eax, bl
push eax
push str.__t_n_r
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
test eax, eax
jne 0x405378
xor dword [esp + 0x10], 0x100
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ecx
jmp 0x4053fc
test al, 0x40
je 0x4053fc
cmp ebx, 0x22
jne 0x4053a0
test byte [esp + 0x10], 0x40
jne 0x4053fc
xor dword [esp + 0x10], 0x80
jmp 0x4053fc
cmp ebx, 0x27
jne 0x4053fc
test byte [esp + 0x10], 0x80
jne 0x4053fc
xor dword [esp + 0x10], 0x40
jmp 0x4053fc
mov eax, dword [esp + 0x10]
cmp eax, edx
je 0x4056bd
test al, 0x10
je 0x405417
cmp ebx, 0x3c
je 0x4057d1
movsx edx, bl
push edx
push str.__t_n_r
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
test eax, eax
jne 0x4053fc
xor dword [esp + 0x10], 0x10
mov dword [esp + 0x18], 0x426b80
mov ebp, 1
mov dword [esp + 0x14], 2
mov edi, dword [esp + 0x24]
push edi
call dword [sym.imp.MSVCRT.dll__mbclen]
add edi, eax
add esp, 4
mov dword [esp + 0x24], edi
xor edx, edx
jmp 0x4050a6
test al, 1
je 0x4054f5
xor eax, 1
cmp ebx, 0x60
mov dword [esp + 0x10], eax
ja 0x4054d6
cmp ebx, 0x40
jbe 0x40543d
cmp ebx, 0x5b
jb 0x4054d6
cmp ebx, 0x5f
je 0x4054d6
cmp ebx, 0x3a
je 0x4054d6
cmp ebx, 0x2f
jne 0x405471
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x18], 0x426b7c
sub edi, ecx
mov ebp, 1
inc edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], edi
jmp 0x4053fc
cmp ebx, 0x21
jne 0x405481
or al, 2
mov dword [esp + 0x10], eax
jmp 0x4053fc
cmp ebx, 0x3f
jne 0x4054aa
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x18], 0x426b78
sub edi, ecx
mov ebp, 2
inc edi
mov dword [esp + 0x14], 0x10
mov dword [esp + 0x1c], edi
jmp 0x4053fc
mov eax, dword [esi + 8]
push 0xffffffffffffffff
push eax
push 0
push ecx
mov dword [esp + 0x28], 0x426b7c
mov ecx, esp
push 0
mov ebp, 1
call fcn.00402430
push ecx
mov ecx, esp
push str.first_tag_syntax
jmp 0x405671
mov eax, dword [esi + 0xc]
mov ebp, 1
sub edi, eax
mov dword [esp + 0x18], 0x426b7c
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], edi
jmp 0x4053fc
test al, 2
je 0x4055c0
xor eax, 2
cmp ebx, 0x2d
mov dword [esp + 0x10], eax
jne 0x405514
or al, 4
mov dword [esp + 0x10], eax
jmp 0x4053fc
test al, 0x20
je 0x405567
movsx edx, bl
push edx
push 0x426b60
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
mov dword [esp + 0x18], 0x426b7c
test eax, eax
mov ebp, 1
je 0x405548
mov dword [esp + 0x14], 0x40
jmp 0x4053fc
mov eax, dword [esi + 8]
push 0xffffffffffffffff
push eax
push 0
push ecx
mov ecx, esp
push 0
call fcn.00402430
push ecx
mov ecx, esp
push str.doctype_tag_syntax
jmp 0x405671
cmp ebx, 0x5b
jne 0x405577
or al, 8
mov dword [esp + 0x10], eax
jmp 0x4053fc
cmp ebx, 0x44
jne 0x405587
or al, 0x20
mov dword [esp + 0x10], eax
jmp 0x4053fc
mov edx, dword [esi + 8]
push 0xffffffffffffffff
push edx
push 0
push ecx
mov dword [esp + 0x28], 0x426b7c
mov ecx, esp
push 0
mov ebp, 1
call fcn.00402430
push ecx
mov ecx, esp
push str.exclamation_tag_syntax
call fcn.00402430
mov eax, dword [esp + 0x48]
add eax, 0x10
push eax
jmp 0x40567e
test al, 4
je 0x405620
xor eax, 4
cmp ebx, 0x2d
mov dword [esp + 0x10], eax
jne 0x4055ea
mov dword [esp + 0x18], 0x426b30
mov ebp, 3
mov dword [esp + 0x14], 0x20
jmp 0x4053fc
mov ecx, dword [esi + 8]
push 0xffffffffffffffff
push ecx
push 0
push ecx
mov dword [esp + 0x28], 0x426b7c
mov ecx, esp
push 0
mov ebp, 1
call fcn.00402430
push ecx
mov ecx, esp
push str.comment_tag_syntax
call fcn.00402430
mov edx, dword [esp + 0x48]
add edx, 0x10
push edx
jmp 0x40567e
test al, 8
je 0x405693
xor eax, 8
cmp ebx, 0x43
mov dword [esp + 0x10], eax
jne 0x40564a
mov dword [esp + 0x18], 0x426b18
mov ebp, 3
mov dword [esp + 0x14], 8
jmp 0x4053fc
mov eax, dword [esi + 8]
push 0xffffffffffffffff
push eax
push 0
push ecx
mov dword [esp + 0x28], 0x426b7c
mov ecx, esp
push 0
mov ebp, 1
call fcn.00402430
push ecx
mov ecx, esp
push str.cdata_section_syntax
call fcn.00402430
mov ecx, dword [esp + 0x48]
add ecx, 0x10
push ecx
call fcn.00402280
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
jmp 0x4053fc
test al, 0x20
je 0x4053fc
cmp ebx, 0x3c
jne 0x4056af
mov eax, dword [esp + 0x10]
or al, 1
mov dword [esp + 0x10], eax
jmp 0x4053fc
cmp ebx, 0x3e
je 0x4057e3
jmp 0x4053fc
cmp ebx, 0x3c
jne 0x4056cf
mov dword [esp + 0x10], 1
jmp 0x4053fc
movsx edx, bl
push edx
push str.__t_n_r
mov dword [esp + 0x1c], 4
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
test eax, eax
je 0x4053e7
mov dword [esp + 0x10], 0x10
jmp 0x4053fc
mov eax, dword [esp + 0x34]
mov edx, dword [esi + 8]
mov ecx, dword [eax + 4]
cmp edx, ecx
jne 0x405728
mov dword [eax + 8], 0
mov dword [eax], 0
mov eax, 0xfffffffe
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
mov eax, dword [esp + 0x14]
cmp eax, 4
je 0x4057f4
cmp eax, 2
je 0x4057f4
mov al, byte [esp + 0x10]
mov edx, 0x426afc
test al, 0x20
jne 0x40578f
mov eax, dword [esp + 0x14]
cmp eax, 0x40
je 0x40578f
cmp eax, 1
jne 0x405760
mov edx, str.start_tag
jmp 0x405794
test eax, eax
jne 0x40576b
mov edx, str.end_tag
jmp 0x405794
cmp eax, 8
jne 0x405777
mov edx, str.cdata_section
jmp 0x405794
cmp eax, 0x10
jne 0x405783
mov edx, str.processing_instruction
jmp 0x405794
cmp eax, 0x20
jne 0x405794
mov edx, str.comment
jmp 0x405794
mov edx, str.document_type
push 0xffffffffffffffff
push ecx
push 2
push ecx
mov ecx, esp
push edx
mov dword [esp + 0x28], 0xffffffff
call fcn.00402430
push ecx
mov ecx, esp
push str.unterminated_tag_syntax
call fcn.00402430
mov eax, dword [esp + 0x48]
add eax, 0x10
push eax
call fcn.00402280
add esp, 0x18
jmp 0x4057f4
sub edi, dword [esi + 0xc]
mov dword [esi + 8], edi
jmp 0x4057f4
mov eax, dword [esi + 0xc]
mov dword [esp + 0x14], 4
sub edi, eax
mov dword [esi + 8], edi
jmp 0x4057f4
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x14], 0x40
sub edi, ecx
inc edi
mov dword [esi + 8], edi
mov ecx, dword [esp + 0x34]
mov edx, dword [esi + 8]
pop edi
pop esi
mov eax, dword [ecx + 4]
pop ebp
sub edx, eax
mov eax, dword [esp + 8]
mov dword [ecx + 8], edx
mov dword [ecx], eax
pop ebx
add esp, 0x20
ret 4