Function at 0x4039d0
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 0x403a4c
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 0x40406b
cmp edi, ecx
je 0x403b10
movsx eax, bl
push eax
push str.__t_n_r__
call dword [sym.imp.MSVCRT.dll__mbschr]
add esp, 8
test eax, eax
je 0x403afb
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 0x403a9f
lea eax, [edi + ebp - 1]
mov dword [edx], edi
mov dword [edx + 4], eax
jmp 0x403ae0
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 esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
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 0x403b14
push ebp
call dword [sym.imp.MSVCRT.dll__mbclen]
add esp, 4
add ebp, eax
mov dword [esp + 0x24], ebp
jmp 0x403a43
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x403cd7
cmp ebx, 0x3e
jne 0x403be0
mov eax, dword [esp + 0x10]
test al, 0xc0
jne 0x403bfb
mov ebx, dword [edx + 0xc]
sub ebp, ebx
cmp esi, 1
mov dword [esp + 0x28], ebp
jne 0x403b8c
cmp ecx, esi
mov dword [esp + 0x18], 0
jne 0x403bd3
cmp dword [esp + 0x2c], 0x2f
jne 0x403bd3
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x403b7c
movsx edx, cl
push edx
push 0x444050
call dword [sym.imp.MSVCRT.dll__mbschr]
add esp, 8
test eax, eax
mov eax, dword [esp + 0x10]
je 0x403bd3
mov ecx, dword [esp + 0x1cc]
or dword [ecx + 0xc], 0x10000
jmp 0x403bd3
cmp ebp, esi
jle 0x404050
mov eax, dword [esp + 0x24]
lea ebp, [esi - 1]
sub eax, esi
inc eax
test ebp, ebp
je 0x403bc3
mov edi, dword [esp + 0x18]
sub edi, eax
mov cl, byte [eax]
mov dl, byte [edi + eax]
inc eax
cmp cl, dl
jne 0x403bb7
dec ebp
jne 0x403ba8
jmp 0x403bbf
test ebp, ebp
jne 0x40404c
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x18], 0
test al, 0x20
je 0x40413f
jmp 0x404050
cmp ebx, 0x3c
jne 0x403bf7
cmp ecx, 2
je 0x404113
cmp ecx, 0xffffffff
je 0x404113
mov eax, dword [esp + 0x10]
test cl, 1
je 0x403c93
test al, 0xc0
je 0x403c26
cmp ebx, 0x22
jne 0x403c18
test al, 0x80
je 0x403c82
xor eax, 0x80
jmp 0x403c7e
cmp ebx, 0x27
jne 0x403c82
test al, 0x40
je 0x403c82
xor eax, 0x40
jmp 0x403c7e
cmp ebx, 0x22
jne 0x403c37
test ah, 1
je 0x403c82
xor eax, 0x180
jmp 0x403c7e
cmp ebx, 0x27
jne 0x403c48
test ah, 1
je 0x403c82
xor eax, 0x140
jmp 0x403c7e
cmp ebx, 0x3d
jne 0x403c5a
cmp dword [esp + 0x2c], ebx
je 0x403c5a
test ah, 1
jne 0x403c5f
jmp 0x403c79
test ah, 1
je 0x403c82
movsx eax, bl
push eax
push str.__t_n_r
call dword [sym.imp.MSVCRT.dll__mbschr]
add esp, 8
test eax, eax
jne 0x403c82
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 0x404050
test cl, 0x40
je 0x404050
cmp ebx, 0x22
jne 0x403cb9
test byte [esp + 0x10], 0x40
jne 0x404050
xor dword [esp + 0x10], 0x80
jmp 0x404050
cmp ebx, 0x27
jne 0x404050
test byte [esp + 0x10], 0x80
jne 0x404050
xor dword [esp + 0x10], 0x40
jmp 0x404050
mov eax, dword [esp + 0x10]
test eax, eax
je 0x404011
test al, 0x10
je 0x403d2d
cmp ebx, 0x3c
je 0x404119
movsx edx, bl
push edx
push str.__t_n_r
call dword [sym.imp.MSVCRT.dll__mbschr]
add esp, 8
test eax, eax
jne 0x404050
xor dword [esp + 0x10], 0x10
mov esi, 1
mov dword [esp + 0x18], 0x44404c
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], 2
jmp 0x404050
test al, 1
je 0x403e35
xor eax, 1
cmp ebx, 0x60
mov dword [esp + 0x10], eax
ja 0x403e10
cmp ebx, 0x40
jbe 0x403d53
cmp ebx, 0x5b
jb 0x403e10
cmp ebx, 0x5f
je 0x403e10
cmp ebx, 0x3a
je 0x403e10
cmp ebx, 0x2f
jne 0x403d94
mov ecx, dword [edx + 0xc]
mov edi, ebp
sub edi, ecx
mov esi, 1
inc edi
mov dword [esp + 0x18], 0x444048
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], edi
jmp 0x404050
cmp ebx, 0x21
jne 0x403da4
or al, 2
mov dword [esp + 0x10], eax
jmp 0x404050
cmp ebx, 0x3f
jne 0x403dd3
mov ecx, dword [edx + 0xc]
mov edi, ebp
sub edi, ecx
mov esi, 2
inc edi
mov dword [esp + 0x18], 0x443e88
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], 0x10
mov dword [esp + 0x20], edi
jmp 0x404050
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], 0x444048
mov dword [esp + 0x2c], esi
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea edx, [esp + 0x98]
jmp 0x403f5a
mov eax, dword [edx + 0xc]
mov edi, ebp
mov esi, 1
sub edi, eax
mov dword [esp + 0x18], 0x444048
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], edi
jmp 0x404050
test al, 2
je 0x403ef4
xor eax, 2
cmp ebx, 0x2d
mov dword [esp + 0x10], eax
jne 0x403e54
or al, 4
mov dword [esp + 0x10], eax
jmp 0x404050
cmp ebx, 0x5b
jne 0x403e68
test al, 0x20
jne 0x403e7c
or al, 8
mov dword [esp + 0x10], eax
jmp 0x404050
cmp ebx, 0x44
jne 0x403e7c
test al, 0x20
jne 0x403e7c
or al, 0x20
mov dword [esp + 0x10], eax
jmp 0x404050
movsx ecx, bl
push ecx
push 0x444014
call dword [sym.imp.MSVCRT.dll__mbschr]
add esp, 8
mov esi, 1
test eax, eax
mov dword [esp + 0x18], 0x444048
mov dword [esp + 0x1c], esi
je 0x403eb0
mov dword [esp + 0x14], 0x40
jmp 0x404050
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 fcn.004086f2
mov dword [esp + 0x14], 0xffffffff
jmp 0x404050
test al, 4
je 0x403f77
xor eax, 4
cmp ebx, 0x2d
mov dword [esp + 0x10], eax
jne 0x403f22
mov esi, 3
mov dword [esp + 0x18], 0x444008
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], 0x20
jmp 0x404050
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], 0x444048
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 fcn.004086f2
mov dword [esp + 0x14], 0xffffffff
jmp 0x404050
test al, 8
je 0x403ff1
xor eax, 8
cmp ebx, 0x43
mov dword [esp + 0x10], eax
jne 0x403fa5
mov esi, 3
mov dword [esp + 0x18], 0x443ff8
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], 8
jmp 0x404050
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x34]
push ecx
push 0x443ff4
mov esi, 1
push str.Incorrect__s_at_offset__d
push edx
mov dword [esp + 0x28], 0x444048
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 fcn.004086f2
mov dword [esp + 0x14], 0xffffffff
jmp 0x404050
test al, 0x20
je 0x404050
cmp ebx, 0x3c
jne 0x404006
mov eax, dword [esp + 0x10]
or al, 1
mov dword [esp + 0x10], eax
jmp 0x404050
cmp ebx, 0x3e
je 0x404129
jmp 0x404050
cmp ebx, 0x3c
jne 0x404020
mov dword [esp + 0x10], 1
jmp 0x404050
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 0x403d0f
mov dword [esp + 0x10], 0x10
jmp 0x404050
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 0x403a43
mov esi, dword [edx + 0xc]
mov eax, dword [esp + 0x14]
sub ebp, esi
dec ebp
cmp eax, 4
je 0x40413f
cmp eax, 2
je 0x40413f
mov al, byte [esp + 0x10]
mov ecx, 0x443ff4
test al, 0x20
jne 0x4040d8
mov eax, dword [esp + 0x14]
cmp eax, 0x40
je 0x4040d8
cmp eax, 1
jne 0x4040a9
mov ecx, str.Element_tag
jmp 0x4040dd
test eax, eax
jne 0x4040b4
mov ecx, str.Element_end_tag
jmp 0x4040dd
cmp eax, 8
jne 0x4040c0
mov ecx, str.CDATA_Section
jmp 0x4040dd
cmp eax, 0x10
jne 0x4040cc
mov ecx, str.Processing_instruction
jmp 0x4040dd
cmp eax, 0x20
jne 0x4040dd
mov ecx, str.Comment
jmp 0x4040dd
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 fcn.004086f2
jmp 0x40413f
sub ebp, dword [edx + 0xc]
dec ebp
jmp 0x40413f
mov ecx, dword [edx + 0xc]
mov dword [esp + 0x14], 4
sub ebp, ecx
dec ebp
jmp 0x40413f
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