Function at 0x417840
Capabilities:
Parse credit card information

Disassembly:
sub esp, 0x1b4
mov edx, dword [esp + 0x1b8]
mov eax, dword [esp + 0x1bc]
push ebx
xor ecx, ecx
mov ebx, dword [edx + 8]
push ebp
mov dword [eax + 4], ebx
mov dword [eax + 0xc], ecx
mov ebx, dword [edx + 8]
mov ebp, dword [edx + 0xc]
add ebp, ebx
push esi
mov dword [esp + 0x24], ebx
push edi
mov bl, byte [ebp]
xor esi, esi
xor edi, edi
mov dword [esp + 0x10], ecx
test bl, bl
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x24], ebp
jne 0x4178bc
pop edi
pop esi
mov dword [eax + 8], ecx
mov dword [eax], ecx
pop ebp
mov eax, 0xfffffffe
pop ebx
add esp, 0x1b4
ret
mov edx, dword [esp + 0x1c8]
xor ecx, ecx
movsx ebx, byte [ebp]
cmp ebx, ecx
je 0x417edb
cmp edi, ecx
je 0x417980
movsx eax, bl
push eax
push str.__t_n_r__
call dword [sym.imp.MSVCRT.dll__mbschr]
add esp, 8
test eax, eax
je 0x41796b
mov edx, dword [esp + 0x1c8]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
mov eax, dword [edx + 0xc]
sub ebp, eax
sub ebp, edi
test ecx, ecx
jne 0x41790f
lea eax, [edi + ebp - 1]
mov dword [edx], edi
mov dword [edx + 4], eax
jmp 0x417950
mov ecx, dword [esp + 0x1cc]
mov edx, dword [esp + 0x20]
add ecx, 0x10
push ebp
lea esi, [eax + edx]
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, ebp
mov edi, eax
mov eax, ecx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1d0]
add ecx, 0x10
call sub.MFC42.DLL_CString::ReleaseBuffer
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x24]
mov edx, dword [esp + 0x1c8]
xor edi, edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], edi
jmp 0x417984
push ebp
call dword [sym.imp.MSVCRT.dll__mbclen]
add esp, 4
add ebp, eax
mov dword [esp + 0x24], ebp
jmp 0x4178b3
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x417b47
cmp ebx, 0x3e
jne 0x417a50
mov eax, dword [esp + 0x10]
test al, 0xc0
jne 0x417a6b
mov ebx, dword [edx + 0xc]
sub ebp, ebx
cmp esi, 1
mov dword [esp + 0x28], ebp
jne 0x4179fc
cmp ecx, esi
mov dword [esp + 0x18], 0
jne 0x417a43
cmp dword [esp + 0x2c], 0x2f
jne 0x417a43
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x4179ec
movsx edx, cl
push edx
push 0x42ddd8
call dword [sym.imp.MSVCRT.dll__mbschr]
add esp, 8
test eax, eax
mov eax, dword [esp + 0x10]
je 0x417a43
mov ecx, dword [esp + 0x1cc]
or dword [ecx + 0xc], 0x10000
jmp 0x417a43
cmp ebp, esi
jle 0x417ec0
mov eax, dword [esp + 0x24]
lea ebp, [esi - 1]
sub eax, esi
inc eax
test ebp, ebp
je 0x417a33
mov edi, dword [esp + 0x18]
sub edi, eax
mov cl, byte [eax]
mov dl, byte [edi + eax]
inc eax
cmp cl, dl
jne 0x417a27
dec ebp
jne 0x417a18
jmp 0x417a2f
test ebp, ebp
jne 0x417ebc
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x18], 0
test al, 0x20
je 0x417faf
jmp 0x417ec0
cmp ebx, 0x3c
jne 0x417a67
cmp ecx, 2
je 0x417f83
cmp ecx, 0xffffffff
je 0x417f83
mov eax, dword [esp + 0x10]
test cl, 1
je 0x417b03
test al, 0xc0
je 0x417a96
cmp ebx, 0x22
jne 0x417a88
test al, 0x80
je 0x417af2
xor eax, 0x80
jmp 0x417aee
cmp ebx, 0x27
jne 0x417af2
test al, 0x40
je 0x417af2
xor eax, 0x40
jmp 0x417aee
cmp ebx, 0x22
jne 0x417aa7
test ah, 1
je 0x417af2
xor eax, 0x180
jmp 0x417aee
cmp ebx, 0x27
jne 0x417ab8
test ah, 1
je 0x417af2
xor eax, 0x140
jmp 0x417aee
cmp ebx, 0x3d
jne 0x417aca
cmp dword [esp + 0x2c], ebx
je 0x417aca
test ah, 1
jne 0x417acf
jmp 0x417ae9
test ah, 1
je 0x417af2
movsx eax, bl
push eax
push str.__t_n_r
call dword [sym.imp.MSVCRT.dll__mbschr]
add esp, 8
test eax, eax
jne 0x417af2
mov eax, dword [esp + 0x10]
xor eax, 0x100
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ecx
jmp 0x417ec0
test cl, 0x40
je 0x417ec0
cmp ebx, 0x22
jne 0x417b29
test byte [esp + 0x10], 0x40
jne 0x417ec0
xor dword [esp + 0x10], 0x80
jmp 0x417ec0
cmp ebx, 0x27
jne 0x417ec0
test byte [esp + 0x10], 0x80
jne 0x417ec0
xor dword [esp + 0x10], 0x40
jmp 0x417ec0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x417e81
test al, 0x10
je 0x417b9d
cmp ebx, 0x3c
je 0x417f89
movsx edx, bl
push edx
push str.__t_n_r
call dword [sym.imp.MSVCRT.dll__mbschr]
add esp, 8
test eax, eax
jne 0x417ec0
xor dword [esp + 0x10], 0x10
mov esi, 1
mov dword [esp + 0x18], 0x42da3c
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], 2
jmp 0x417ec0
test al, 1
je 0x417ca5
xor eax, 1
cmp ebx, 0x60
mov dword [esp + 0x10], eax
ja 0x417c80
cmp ebx, 0x40
jbe 0x417bc3
cmp ebx, 0x5b
jb 0x417c80
cmp ebx, 0x5f
je 0x417c80
cmp ebx, 0x3a
je 0x417c80
cmp ebx, 0x2f
jne 0x417c04
mov ecx, dword [edx + 0xc]
mov edi, ebp
sub edi, ecx
mov esi, 1
inc edi
mov dword [esp + 0x18], 0x42da38
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], edi
jmp 0x417ec0
cmp ebx, 0x21
jne 0x417c14
or al, 2
mov dword [esp + 0x10], eax
jmp 0x417ec0
cmp ebx, 0x3f
jne 0x417c43
mov ecx, dword [edx + 0xc]
mov edi, ebp
sub edi, ecx
mov esi, 2
inc edi
mov dword [esp + 0x18], 0x42dbf4
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], 0x10
mov dword [esp + 0x20], edi
jmp 0x417ec0
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x98]
push eax
push str.tag_name_character
mov esi, 1
push str.Incorrect__s_at_offset__d
push ecx
mov dword [esp + 0x28], 0x42da38
mov dword [esp + 0x2c], esi
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea edx, [esp + 0x98]
jmp 0x417dca
mov eax, dword [edx + 0xc]
mov edi, ebp
mov esi, 1
sub edi, eax
mov dword [esp + 0x18], 0x42da38
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], edi
jmp 0x417ec0
test al, 2
je 0x417d64
xor eax, 2
cmp ebx, 0x2d
mov dword [esp + 0x10], eax
jne 0x417cc4
or al, 4
mov dword [esp + 0x10], eax
jmp 0x417ec0
cmp ebx, 0x5b
jne 0x417cd8
test al, 0x20
jne 0x417cec
or al, 8
mov dword [esp + 0x10], eax
jmp 0x417ec0
cmp ebx, 0x44
jne 0x417cec
test al, 0x20
jne 0x417cec
or al, 0x20
mov dword [esp + 0x10], eax
jmp 0x417ec0
movsx ecx, bl
push ecx
push 0x42dda4
call dword [sym.imp.MSVCRT.dll__mbschr]
add esp, 8
mov esi, 1
test eax, eax
mov dword [esp + 0x18], 0x42da38
mov dword [esp + 0x1c], esi
je 0x417d20
mov dword [esp + 0x14], 0x40
jmp 0x417ec0
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x160]
push edx
push str.__tag
push str.Incorrect__s_at_offset__d
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edx, dword [esp + 0x1dc]
add esp, 0x10
lea ecx, [esp + 0x160]
push ecx
lea ecx, [edx + 0x10]
call sub.MFC42.DLL_CString::operator
mov dword [esp + 0x14], 0xffffffff
jmp 0x417ec0
test al, 4
je 0x417de7
xor eax, 4
cmp ebx, 0x2d
mov dword [esp + 0x10], eax
jne 0x417d92
mov esi, 3
mov dword [esp + 0x18], 0x42dd98
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], 0x20
jmp 0x417ec0
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0xfc]
push eax
push str.comment_tag
mov esi, 1
push str.Incorrect__s_at_offset__d
push ecx
mov dword [esp + 0x28], 0x42da38
mov dword [esp + 0x2c], esi
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea edx, [esp + 0xfc]
mov eax, dword [esp + 0x1cc]
push edx
lea ecx, [eax + 0x10]
call sub.MFC42.DLL_CString::operator
mov dword [esp + 0x14], 0xffffffff
jmp 0x417ec0
test al, 8
je 0x417e61
xor eax, 8
cmp ebx, 0x43
mov dword [esp + 0x10], eax
jne 0x417e15
mov esi, 3
mov dword [esp + 0x18], 0x42dd88
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], 8
jmp 0x417ec0
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x34]
push ecx
push 0x42dd84
mov esi, 1
push str.Incorrect__s_at_offset__d
push edx
mov dword [esp + 0x28], 0x42da38
mov dword [esp + 0x2c], esi
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [esp + 0x1dc]
add esp, 0x10
lea eax, [esp + 0x34]
add ecx, 0x10
push eax
call sub.MFC42.DLL_CString::operator
mov dword [esp + 0x14], 0xffffffff
jmp 0x417ec0
test al, 0x20
je 0x417ec0
cmp ebx, 0x3c
jne 0x417e76
mov eax, dword [esp + 0x10]
or al, 1
mov dword [esp + 0x10], eax
jmp 0x417ec0
cmp ebx, 0x3e
je 0x417f99
jmp 0x417ec0
cmp ebx, 0x3c
jne 0x417e90
mov dword [esp + 0x10], 1
jmp 0x417ec0
movsx edx, bl
push edx
push str.__t_n_r
mov dword [esp + 0x1c], 4
call dword [sym.imp.MSVCRT.dll__mbschr]
add esp, 8
test eax, eax
je 0x417b7f
mov dword [esp + 0x10], 0x10
jmp 0x417ec0
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
push ebx
call dword [sym.imp.MSVCRT.dll__mbclen]
add esp, 4
add ebx, eax
mov dword [esp + 0x24], ebx
mov ebp, ebx
jmp 0x4178b3
mov esi, dword [edx + 0xc]
mov eax, dword [esp + 0x14]
sub ebp, esi
dec ebp
cmp eax, 4
je 0x417faf
cmp eax, 2
je 0x417faf
mov al, byte [esp + 0x10]
mov ecx, 0x42dd84
test al, 0x20
jne 0x417f48
mov eax, dword [esp + 0x14]
cmp eax, 0x40
je 0x417f48
cmp eax, 1
jne 0x417f19
mov ecx, str.Element_tag
jmp 0x417f4d
test eax, eax
jne 0x417f24
mov ecx, str.Element_end_tag
jmp 0x417f4d
cmp eax, 8
jne 0x417f30
mov ecx, str.CDATA_Section
jmp 0x417f4d
cmp eax, 0x10
jne 0x417f3c
mov ecx, str.Processing_instruction
jmp 0x417f4d
cmp eax, 0x20
jne 0x417f4d
mov ecx, str.Comment
jmp 0x417f4d
mov ecx, str.Doctype
mov esi, dword [esp + 0x1cc]
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [esi + 4]
push eax
push ecx
lea ecx, [esp + 0x3c]
push str._s_at_offset__d_unterminated
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea edx, [esp + 0x34]
lea ecx, [esi + 0x10]
push edx
call sub.MFC42.DLL_CString::operator
jmp 0x417faf
sub ebp, dword [edx + 0xc]
dec ebp
jmp 0x417faf
mov ecx, dword [edx + 0xc]
mov dword [esp + 0x14], 4
sub ebp, ecx
dec ebp
jmp 0x417faf
mov eax, dword [esp + 0x1c8]
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x14], 0x40
sub ebp, dword [eax + 0xc]
mov ecx, dword [esp + 0x1c8]
lea eax, [ebp + 1]
pop edi
pop esi
mov dword [ecx + 8], eax
mov ecx, dword [esp + 0x1c4]
pop ebp
pop ebx
sub eax, dword [ecx + 4]
mov dword [ecx + 8], eax
mov eax, dword [esp + 4]
mov dword [ecx], eax
add esp, 0x1b4
ret