Function at 0x40ce90
Capabilities:
Parse credit card information

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x7c
mov dword [esp + 0x48], eax
mov byte [esp + 0x3f], 0
mov byte [esp + 0x30], 0
mov byte [esp + 0x3e], 1
mov byte [esp + 0x28], 0
mov byte [esp + 0x38], 0
mov byte [esp + 0x20], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x34], 0
mov byte [esp + 0x6f], 0
movzx eax, byte [ebx]
cmp al, 9
je 0x40cef0
cmp al, 0x20
jne 0x40cefe
nop
lea esi, [esi]
add ebx, 1
movzx eax, byte [ebx]
cmp al, 0x20
je 0x40cef0
cmp al, 9
je 0x40cef0
cmp al, 0x21
jne 0x40d428
movzx eax, byte [ebx + 1]
lea esi, [ebx + 1]
cmp al, 9
setne cl
cmp al, 0x20
setne dl
and cl, dl
mov byte [esp + 0x3d], cl
jne 0x40cf38
nop
add esi, 1
movzx eax, byte [esi]
cmp al, 9
setne dl
cmp al, 0x20
setne cl
and dl, cl
je 0x40cf20
mov byte [esp + 0x3d], dl
cmp al, 0x25
je 0x40d2bc
cmp al, 0x2e
je 0x40d2aa
cmp al, 0x2c
mov byte [esp + 0x24], 0
mov byte [esp + 0x1c], 0
jne 0x40cf5e
add esi, 1
mov byte [esp + 0x24], 1
mov ebx, esi
xor edi, edi
mov ebp, 0x24000b
jmp 0x40cf73
add ebx, 1
movzx edx, byte [ebx]
test word [edx + edx + 0x4d7540], 0x204
mov eax, edx
jne 0x40cfa6
cmp dl, 0x2d
je 0x40cf70
lea ecx, [edx - 0x2b]
mov edx, ebp
shr edx, cl
cmp cl, 0x15
mov ecx, 1
not edx
cmova edx, ecx
cmp al, 0x5c
setne cl
and dl, cl
jne 0x40cfc0
cmp al, 0x5c
jne 0x40cf70
cmp byte [ebx + 1], 0
lea eax, [ebx + 1]
je 0x40d4d7
add edi, 1
mov ebx, eax
jmp 0x40cf70
test edi, edi
mov ecx, edx
mov byte [esp + 0x18], al
mov ebp, ebx
je 0x40d057
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x40cff1
mov edx, dword [esp + 0x44]
cmp eax, edx
je 0x40cff1
mov dword [esp], eax
mov byte [esp + 0x18], cl
call sub.msvcrt.dll_free
movzx ecx, byte [esp + 0x18]
mov eax, ebx
mov byte [esp + 0x18], cl
sub eax, esi
sub eax, edi
add eax, 1
mov dword [esp], eax
call fcn.0046ea40
cmp esi, ebx
mov dword [esp + 0x2c], eax
movzx ecx, byte [esp + 0x18]
je 0x40d49f
mov edx, eax
jmp 0x40d02c
add esi, 1
mov byte [edx], al
add edx, 1
cmp ebx, esi
je 0x40d047
movzx eax, byte [esi]
cmp al, 0x5c
jne 0x40d020
movzx eax, byte [esi + 1]
add esi, 1
add edx, 1
add esi, 1
mov byte [edx - 1], al
cmp ebx, esi
jne 0x40d02c
mov byte [edx], 0
movzx eax, byte [ebx]
mov ebp, edx
mov esi, dword [esp + 0x2c]
mov byte [esp + 0x18], al
cmp byte [esp + 0x18], 0x2a
je 0x40d29a
xor ecx, ecx
movzx eax, byte [esp + 0x18]
cmp al, 0x20
je 0x40d071
cmp al, 9
jne 0x40d083
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x40d071
cmp al, 0x20
je 0x40d071
mov byte [esp + 0x18], al
movzx eax, byte [esp + 0x18]
cmp al, 0x3a
je 0x40d20f
jle 0x40d1e3
movzx eax, byte [esp + 0x18]
cmp al, 0x7c
je 0x40d20f
cmp al, 0x7d
jne 0x40d1eb
cmp byte [esp + 0x38], 0
jne 0x40d1eb
cmp byte [esp + 0x30], 0
jne 0x40d1eb
cmp byte [esp + 0x1c], 0
jne 0x40d1eb
cmp byte [esp + 0x3d], 0
jne 0x40d1eb
cmp esi, ebp
sete al
or al, byte [esp + 0x24]
mov byte [esp + 0x38], al
jne 0x40d1eb
sub ebp, esi
mov eax, 0xffffffff
test cl, cl
cmovne eax, ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], eax
mov eax, dword [0x4dc0dc]
test eax, eax
mov dword [esp + 0x1c], eax
jle 0x40d4b8
mov eax, dword [0x4dc0e0]
xor ebp, ebp
mov byte [esp + 0x3d], cl
mov dword [esp + 0x30], ebx
mov dword [esp + 0x24], eax
mov edi, eax
mov ebx, dword [edi]
mov eax, dword [esp + 0x18]
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp], ebx
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x40d162
cmp byte [esp + 0x3d], 0
jne 0x40d14f
mov eax, dword [esp + 0x18]
cmp byte [ebx + eax], 0
jne 0x40d162
mov edx, dword [esp + 0x20]
mov eax, ebp
call fcn.004018c0
test eax, eax
je 0x40d162
mov byte [edi + 0xe], 1
add ebp, 1
add edi, 0x10
cmp ebp, dword [esp + 0x1c]
jne 0x40d124
mov ebx, dword [esp + 0x30]
xor esi, esi
cmp byte [ebx], 0x7d
je 0x40d1ac
add ebx, 1
mov byte [esp + 0x30], 0
mov byte [esp + 0x20], 1
jmp 0x40cedb
mov byte [eax + 0xe], 0
xor edx, edx
mov eax, esi
call fcn.0040c9d0
add esi, 1
cmp dword [0x4dc0dc], esi
jle 0x40d1c6
mov eax, dword [0x4dc0e0]
mov dword [esp + 0x24], eax
mov eax, esi
shl eax, 4
add eax, dword [esp + 0x24]
cmp byte [eax + 0xe], 0
jne 0x40d18b
add esi, 1
cmp dword [0x4dc0dc], esi
jg 0x40d1a3
cmp byte [ebx], 0x7d
lea eax, [ebx + 1]
je 0x40d6a5
mov byte [esp + 0x30], 0
mov ebx, eax
mov byte [esp + 0x20], 1
jmp 0x40cedb
cmp al, 0x26
je 0x40d0ab
movsx eax, byte [ebx]
mov dword [esp + 4], str.braced_spec__qs_is_invalid_at__qc
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 8], eax
mov eax, dword [0x4dded0]
mov dword [esp], eax
call fcn.00426430
cmp byte [esp + 0x20], 0
jne 0x40d1eb
test esi, esi
setne al
cmp esi, ebp
sete dl
and al, dl
mov byte [esp + 0x38], al
je 0x40d2f0
movzx edx, byte [esp + 0x30]
movzx eax, byte [esp + 0x28]
xor edx, 1
or al, dl
jne 0x40d1eb
cmp byte [esp + 0x18], 0x7c
je 0x40d1eb
cmp byte [esp + 0x1c], 0
jne 0x40d1eb
cmp byte [esp + 0x3d], 0
jne 0x40d1eb
or cl, byte [esp + 0x24]
mov byte [esp + 0x3e], cl
jne 0x40d1eb
movzx eax, byte [esp + 0x3f]
xor eax, 1
mov byte [esp + 0x28], al
movzx edx, byte [ebx]
cmp dl, 0x3a
je 0x40d3c5
add ebx, 1
cmp dl, 0x7d
je 0x40d673
cmp byte [esp + 0x38], 0
jne 0x40d1eb
mov byte [esp + 0x20], 0
mov byte [esp + 0x38], 1
jmp 0x40cedb
movzx eax, byte [ebx + 1]
add ebx, 1
mov byte [esp + 0x18], al
jmp 0x40d064
add esi, 1
mov byte [esp + 0x24], 0
mov byte [esp + 0x1c], 1
jmp 0x40cf5e
cmp byte [esi + 1], 0x3a
mov byte [esp + 0x24], 0
mov byte [esp + 0x1c], 0
jne 0x40cf5e
lea eax, [esi + 2]
lea edx, [esp + 0x6f]
xor ebp, ebp
xor esi, esi
call fcn.0040cae0
mov ebx, eax
movzx eax, byte [eax]
xor ecx, ecx
mov byte [esp + 0x18], al
jmp 0x40d064
cmp byte [esp + 0x1c], 0
jne 0x40d437
cmp byte [esp + 0x24], 0
jne 0x40d437
movzx eax, byte [esp + 0x3e]
movzx edi, byte [esp + 0x24]
test cl, cl
cmove eax, edi
mov byte [esp + 0x3e], al
movzx eax, byte [esp + 0x28]
or al, byte [esp + 0x3f]
jne 0x40d268
test esi, esi
je 0x40d6c9
cmp byte [esp + 0x1c], 0
jne 0x40d449
cmp byte [esp + 0x24], 0
je 0x40d6e5
mov eax, dword [0x4dc084]
test eax, eax
je 0x40d387
mov edi, dword [eax]
test edi, edi
je 0x40d387
cmp byte [edi], 0
je 0x40d387
lea eax, [edi + 1]
mov edx, ebp
mov dword [esp + 4], esi
sub edx, esi
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 0x18], edx
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x40d387
mov edx, dword [esp + 0x18]
cmp byte [edi + edx + 1], 0
sete byte [esp + 0x1c]
movzx eax, byte [esp + 0x1c]
mov byte [esp + 0x6f], al
movzx ecx, byte [esp + 0x1c]
cmp byte [esp + 0x3d], cl
je 0x40d490
movzx edx, byte [ebx]
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x38], 0
mov dword [esp + 0x40], ebp
mov dword [esp + 0x34], esi
mov byte [esp + 0x28], 1
mov dword [esp + 0x44], eax
cmp dl, 0x3a
jne 0x40d274
movzx edi, byte [esp + 0x3f]
movzx eax, byte [esp + 0x28]
lea ebp, [ebx + 1]
movzx edx, byte [ebx + 1]
mov ecx, 1
movzx esi, byte [esp + 0x20]
mov ebx, ebp
xor edi, 1
and edi, eax
jmp 0x40d41a
cmp dl, 0x7d
je 0x40d4f4
cmp dl, 0x3b
je 0x40d580
cmp dl, 0x25
je 0x40d590
test dl, dl
je 0x40d6a9
movzx edx, byte [ebx + 1]
add ebx, 1
cmp dl, 0x7b
jne 0x40d3f0
add ecx, 1
movzx edx, byte [ebx + 1]
jmp 0x40d417
movzx eax, byte [ebx]
mov esi, ebx
mov byte [esp + 0x3d], 0
jmp 0x40cf38
test cl, cl
jne 0x40d1eb
mov byte [esp + 0x3e], 0
jmp 0x40d319
mov edi, dword [0x4dc088]
test edi, edi
je 0x40d6db
mov edx, ebp
mov dword [esp + 4], esi
mov dword [esp], edi
sub edx, esi
mov dword [esp + 8], edx
mov dword [esp + 0x18], edx
call sub.msvcrt.dll_strncmp
test eax, eax
mov byte [esp + 0x1c], 0
jne 0x40d387
mov edx, dword [esp + 0x18]
cmp byte [edi + edx], 0
sete byte [esp + 0x1c]
jmp 0x40d387
mov byte [esp + 0x28], 0
mov byte [esp + 0x38], 0
jmp 0x40d268
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x2c]
mov byte [edx], 0
movzx eax, byte [ebx]
mov ebp, edx
mov byte [esp + 0x18], al
jmp 0x40d057
cmp byte [ebx], 0x7d
je 0x40d81e
movzx eax, byte [esp + 0x38]
add ebx, 1
mov byte [esp + 0x20], 1
mov byte [esp + 0x30], al
jmp 0x40cedb
mov eax, dword [esp + 0x48]
mov dword [esp + 4], str.braced_spec__qs_ends_in_escape
mov dword [esp + 8], eax
mov eax, dword [0x4dded0]
mov dword [esp], eax
call fcn.00426430
sub ecx, 1
jne 0x40d413
mov eax, esi
mov byte [esp + 0x20], al
movzx eax, byte [ebx - 1]
cmp al, 9
je 0x40d513
cmp al, 0x20
jne 0x40d6c2
mov eax, ebx
sub eax, 1
movzx ecx, byte [eax - 1]
cmp cl, 9
je 0x40d515
cmp cl, 0x20
je 0x40d515
movzx ecx, byte [esp + 0x3e]
xor ecx, 1
test byte [esp + 0x20], cl
jne 0x40d6a9
mov ecx, edi
test cl, cl
jne 0x40d5ae
cmp dl, 0x3b
jne 0x40d274
movzx eax, byte [esp + 0x28]
add ebx, 1
mov byte [esp + 0x28], 0
or byte [esp + 0x3f], al
mov byte [esp + 0x30], 1
mov byte [esp + 0x3e], 1
mov dword [esp + 0x40], 0
mov dword [esp + 0x34], 0
jmp 0x40d280
cmp ecx, 1
jne 0x40d413
jmp 0x40d4fd
movzx edx, byte [ebx + 1]
cmp dl, 0x2a
sete al
cmp ecx, 1
sete byte [esp + 0x18]
and al, byte [esp + 0x18]
cmovne esi, eax
jmp 0x40d417
sub eax, ebp
mov edx, eax
mov eax, ebp
call fcn.00401760
cmp byte [esp + 0x20], 0
mov ebp, eax
je 0x40d65c
mov eax, dword [0x4dc0dc]
mov edi, dword [esp + 0x40]
sub edi, dword [esp + 0x34]
test eax, eax
jle 0x40d64c
xor esi, esi
mov dword [esp + 0x18], ebx
jmp 0x40d5eb
add esi, 1
cmp dword [0x4dc0dc], esi
jle 0x40d648
mov ecx, esi
mov eax, dword [esp + 0x34]
mov dword [esp + 8], edi
shl ecx, 4
add ecx, dword [0x4dc0e0]
mov dword [esp + 4], eax
mov eax, dword [ecx]
mov ebx, ecx
mov dword [esp], eax
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x40d5e0
mov edx, edi
mov eax, esi
call fcn.004018c0
test eax, eax
je 0x40d5e0
mov ecx, dword [ebx]
xor edx, edx
mov eax, ebp
add ecx, edi
call fcn.0040aea0
test eax, eax
js 0x40d669
mov edx, 1
mov eax, esi
call fcn.0040c9d0
mov dword [0x4dc068], 0
jmp 0x40d5e0
mov ebx, dword [esp + 0x18]
mov dword [esp], ebp
call sub.msvcrt.dll_free
movzx edx, byte [ebx]
jmp 0x40d53e
xor ecx, ecx
xor edx, edx
call fcn.0040aea0
test eax, eax
jns 0x40d64c
mov dword [esp], ebp
xor ebx, ebx
call sub.msvcrt.dll_free
mov eax, dword [esp + 0x44]
test eax, eax
je 0x40d68b
mov esi, dword [esp + 0x2c]
cmp eax, esi
je 0x40d68b
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x40d69b
mov dword [esp], eax
call sub.msvcrt.dll_free
add esp, 0x7c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, eax
jmp 0x40d673
mov eax, dword [0x4dded0]
mov dword [esp + 8], ebp
mov dword [esp + 4], str.braced_spec_body__qs_is_invalid
mov dword [esp], eax
call fcn.00426430
mov eax, ebx
jmp 0x40d526
movzx eax, byte [esp + 0x6f]
mov byte [esp + 0x1c], al
jmp 0x40d390
mov ebx, dword [esp + 0x24]
mov byte [esp + 0x1c], 0
jmp 0x40d387
mov eax, ebp
sub eax, esi
test cl, cl
mov edi, eax
mov dword [esp + 0x1c], eax
mov eax, 0xffffffff
mov edx, eax
mov eax, dword [0x4dc0dc]
cmovne edx, edi
mov dword [esp + 0x28], edx
test eax, eax
mov dword [esp + 0x38], eax
jle 0x40d6db
cmp cl, 1
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x24], ebx
sbb eax, eax
mov dword [esp + 0x18], 0
mov ebx, ecx
or eax, 1
sub edi, 1
mov dword [esp + 0x4c], eax
mov eax, dword [0x4dc0e0]
mov dword [esp + 0x50], edi
lea edi, [esi + 1]
mov dword [esp + 0x54], edi
mov edi, eax
jmp 0x40d757
cmp al, 0x55
je 0x40d7a8
add dword [esp + 0x18], 1
add edi, 0x10
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x38]
je 0x40d6d7
mov edx, dword [edi]
mov eax, dword [esp + 0x1c]
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp], edx
mov dword [esp + 0x58], edx
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x40d798
test bl, bl
jne 0x40d787
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x58]
cmp byte [edx + eax], 0
jne 0x40d798
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
call fcn.004018c0
test eax, eax
jne 0x40d810
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x40d745
mov edx, dword [edi]
movzx eax, byte [edx]
cmp al, 0x44
jne 0x40d741
cmp al, byte [esi]
jne 0x40d745
mov eax, dword [esp + 0x50]
mov ecx, dword [ecx]
mov dword [esp + 0x5c], edx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x54]
mov dword [esp], ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 4], eax
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x40d745
test bl, bl
jne 0x40d7fb
mov edx, dword [esp + 0x5c]
cmp byte [edx + 1], 0
jne 0x40d745
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x58]
cmp byte [ecx + eax - 1], 0
jne 0x40d745
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x18]
call fcn.004018c0
test eax, eax
je 0x40d745
mov ebx, dword [esp + 0x24]
mov byte [esp + 0x1c], 1
jmp 0x40d387
add ebx, 1
jmp 0x40d673